mentortools/libs/: openai-connector-1.2.0+2253692934 metadata and description

Homepage Simple index

OpenAI Connector server

author OpenAPI Generator Community
author_email team@openapitools.org
classifiers
  • License :: OSI Approved
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.8
  • Programming Language :: Python :: 3.9
  • Programming Language :: Python :: 3.10
  • Programming Language :: Python :: 3.11
  • Programming Language :: Python :: 3.12
  • Programming Language :: Python :: 3.13
  • Programming Language :: Python :: 3.14
description_content_type text/markdown
keywords OpenAPI,OpenAPI-Generator,OpenAI Connector server
license Unlicense
project_urls
  • Repository, https://github.com/GIT_USER_ID/GIT_REPO_ID
requires_dist
  • urllib3 (>=1.25.3)
  • python-dateutil (>=2.8.2)
  • aiohttp (>=3.8.4)
  • pydantic (>=1.10.5,<2.0.0)
  • aenum (>=3.1.11)
requires_python >=3.8,<4.0
File Tox results History
openai_connector-1.2.0+2253692934-py3-none-any.whl
Size
53 KB
Type
Python Wheel
Python
3
openai_connector-1.2.0+2253692934.tar.gz
Size
30 KB
Type
Source

openai-connector

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Python package is automatically generated by the OpenAPI Generator project:

Requirements.

Python 3.7+

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

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

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import time
import openai_connector
from openai_connector.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.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
async with openai_connector.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openai_connector.OpenaiApi(api_client)
    prompt_bundle_for_generate_image = openai_connector.PromptBundleForGenerateImage() # PromptBundleForGenerateImage | 

    try:
        # Generate image
        api_response = await api_instance.generate_image_v1_openai_image_generate_post(prompt_bundle_for_generate_image)
        print("The response of OpenaiApi->generate_image_v1_openai_image_generate_post:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling OpenaiApi->generate_image_v1_openai_image_generate_post: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
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 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

Documentation For Authorization

Endpoints do not require authorization.

Author