Skip to content

gofixpoint/python-openapi-client

Repository files navigation

fixpoint-openapi

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: version not set
  • Package version: 0.1.0
  • Generator version: 7.4.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

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 fixpoint_openapi

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 fixpoint_openapi

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

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



# Enter a context with an instance of the API client
with fixpoint_openapi.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = fixpoint_openapi.FixpointApi(api_client)
    body = fixpoint_openapi.V1BatchCreateFineTuneJobsRequest() # V1BatchCreateFineTuneJobsRequest | 

    try:
        api_response = api_instance.fixpoint_batch_create_fine_tune_jobs(body)
        print("The response of FixpointApi->fixpoint_batch_create_fine_tune_jobs:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling FixpointApi->fixpoint_batch_create_fine_tune_jobs: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
FixpointApi fixpoint_batch_create_fine_tune_jobs POST /v1/fine_tune_jobs:batchCreate
FixpointApi fixpoint_batch_delete_dataset_logs POST /v1/datasets/{datasetId}/logs:deleteLogs
FixpointApi fixpoint_create_ab_chat_completion POST /v1/chat/completions/ab Create A/B routed chat completion
FixpointApi fixpoint_create_api_secret POST /v1/api_secrets Store LLM inference API secret
FixpointApi fixpoint_create_app_logs POST /v1/app_logs Create application logs
FixpointApi fixpoint_create_dataset POST /v1/datasets Create LLM dataset
FixpointApi fixpoint_create_likes POST /v1/likes Add LLM log feedback ("likes")
FixpointApi fixpoint_create_log_attribute POST /v1/attributes Attach attribute to LLM log
FixpointApi fixpoint_create_multi_llm_chat_completion POST /v1/chat/completions/multi_llm
FixpointApi fixpoint_create_open_ai_chat_input_log POST /v1/openai_chats/{modelName}/input_logs Create an LLM input log
FixpointApi fixpoint_create_open_ai_chat_output_log POST /v1/openai_chats/{modelName}/output_logs Create an LLM output log
FixpointApi fixpoint_create_routing_config POST /v1/routing_configs Create LLM routing config
FixpointApi fixpoint_delete_dataset DELETE /v1/datasets/{datasetId}
FixpointApi fixpoint_delete_log_attribute DELETE /v1/attributes/{name} Remove LLM log attribute
FixpointApi fixpoint_list_api_secrets GET /v1/api_secrets List LLM inference API secrets
FixpointApi fixpoint_list_app_logs GET /v1/app_logs List application logs
FixpointApi fixpoint_list_datasets GET /v1/datasets List LLM datasets
FixpointApi fixpoint_list_fine_tune_jobs GET /v1/fine_tune_jobs
FixpointApi fixpoint_list_likes GET /v1/likes List LLM log feedback ("likes")
FixpointApi fixpoint_list_log_attributes GET /v1/attributes List attributes on an LLM log
FixpointApi fixpoint_list_open_ai_chat_logs GET /v1/{parent}/logs DEPRECATED: List LLM logs
FixpointApi fixpoint_list_routing_configs GET /v1/routing_configs List LLM routing configs
FixpointApi fixpoint_post_dataset_logs POST /v1/datasets/{name}/logs Add logs to a dataset
FixpointApi fixpoint_update_spending_totals PATCH /v1/routing_configs/{routingConfigId} Update routing config spending totals

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published