Skip to main content

OpenAPI client for Fixpoint - Auto-improvement to make your LLM apps smarter

Project description

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.V1CreateApiSecretRequest() # V1CreateApiSecretRequest | 

    try:
        # Store LLM inference API secret
        api_response = api_instance.fixpoint_create_api_secret(body)
        print("The response of FixpointApi->fixpoint_create_api_secret:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling FixpointApi->fixpoint_create_api_secret: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
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_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_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 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/{routeConfigId} Update routing config spending totals

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fixpoint_openapi-0.2.0.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

fixpoint_openapi-0.2.0-py3-none-any.whl (119.2 kB view details)

Uploaded Python 3

File details

Details for the file fixpoint_openapi-0.2.0.tar.gz.

File metadata

  • Download URL: fixpoint_openapi-0.2.0.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1017-azure

File hashes

Hashes for fixpoint_openapi-0.2.0.tar.gz
Algorithm Hash digest
SHA256 afdd8d5bda743632f5e17ca30fc4ee0f53775d25575c2ff28fe66f765f7c978c
MD5 b4f0c2417506e878b759abc767d233b8
BLAKE2b-256 4a0696e5cd9f0ab1ad1037d50d73f8cb66b9ae52b3a66d33353242cc7c78347e

See more details on using hashes here.

File details

Details for the file fixpoint_openapi-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: fixpoint_openapi-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 119.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1017-azure

File hashes

Hashes for fixpoint_openapi-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b12f794098aba097d2e8984485a6bc6ead1064d13b2768711ea7862444d814e
MD5 b852e30e135390f762cc31986b5d10dd
BLAKE2b-256 039a75c4d86b50685d5c92701273c3180df8c5455f592fb0c5502ea7f3fa4652

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page