mentortools/libs/: openai-connector-v2-1.2.0+2611430737 metadata and description
OpenAI Connector server
| author | OpenAPI Generator community |
| author_email | OpenAPI Generator Community <team@openapitools.org> |
| description_content_type | text/markdown |
| keywords | OpenAPI, OpenAPI-Generator, OpenAI Connector server |
| project_urls |
|
| requires_dist |
|
| requires_python | >=3.9 |
| File | Tox results | History |
|---|---|---|
openai_connector_v2-1.2.0+2611430737-py3-none-any.whl
|
|
|
openai_connector_v2-1.2.0+2611430737.tar.gz
|
|
openai-connector-v2
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.1.0
- Package version: 1.2.0+2611430737
- Generator version: 7.23.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.10+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import openai_connector_v2
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import openai_connector_v2
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import openai_connector_v2
from openai_connector_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = openai_connector_v2.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
async with openai_connector_v2.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openai_connector_v2.OpenaiApi(api_client)
embeddings_request = openai_connector_v2.EmbeddingsRequest() # EmbeddingsRequest |
try:
# Create embeddings
api_response = await api_instance.create_embeddings_v1_openai_embeddings_create_post(embeddings_request)
print("The response of OpenaiApi->create_embeddings_v1_openai_embeddings_create_post:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling OpenaiApi->create_embeddings_v1_openai_embeddings_create_post: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| OpenaiApi | create_embeddings_v1_openai_embeddings_create_post | POST /v1/openai/embeddings/create | Create embeddings |
| OpenaiApi | generate_image_v1_openai_image_generate_post | POST /v1/openai/image/generate | Generate image |
| OpenaiApi | generate_response_v1_openai_response_generate_post | POST /v1/openai/response/generate | Generate response |
| OpenaiApi | stream_response_v1_openai_response_stream_post | POST /v1/openai/response/stream | Stream response |
| OpenaiConnectorApi | create_embeddings_v1_openai_embeddings_create_post | POST /v1/openai/embeddings/create | Create embeddings |
| OpenaiConnectorApi | generate_image_v1_openai_image_generate_post | POST /v1/openai/image/generate | Generate image |
| OpenaiConnectorApi | generate_response_v1_openai_response_generate_post | POST /v1/openai/response/generate | Generate response |
| OpenaiConnectorApi | stream_response_v1_openai_response_stream_post | POST /v1/openai/response/stream | Stream response |
Documentation For Models
- ChatHistoryChatContent
- ChatHistoryItem
- ChatRole
- EmbeddingsRequest
- EmbeddingsResponse
- FilePayload
- HTTPValidationError
- ImageResponse
- ImageSettings
- InputTokensDetails
- LocationInner
- OutputTokensDetails
- PromptBundle
- PromptBundleForGenerateImage
- ResponseChunk
- ResponseChunkType
- ResponseSchemaPayload
- ResponseUsage
- TextResponse
- Usage
- UsageDetails
- UsageInputTokensDetails
- ValidationError
- WrappedResponseEmbeddingsResponse
- WrappedResponseImageResponse
- WrappedResponseTextResponse
Documentation For Authorization
Endpoints do not require authorization.