ogx-client
This is the specification of the OGX that provides
a set of endpoints and their corresponding interfaces that are
tailored to
best leverage Llama Models.
**🔗 COMBINED**: This specification includes both stable production-ready APIs
and experimental pre-release APIs. Use stable APIs for production deployments
and experimental APIs for testing new features.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: v1
- Package version: 2.0.0
- Generator version: 7.19.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.9+
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 ogx_client
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 ogx_client
Tests
Execute pytest to run the tests.
Migrating from ogx_client \<= 1.1.3
If you are upgrading from ogx_client \<= 1.1.3, see the
Migration Guide
for a full list of changes. For most codebases the migration is a
search-and-replace of ogx_client.types to ogx_client.models.
Getting Started
Please follow the installation procedure and then run the following:
import ogx_client
from ogx_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://any-hosted-ogx.com
# See configuration.py for a list of all supported configuration parameters.
configuration = ogx_client.Configuration(
host = "http://any-hosted-ogx.com"
)
# Enter a context with an instance of the API client
with ogx_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ogx_client.AdminApi(api_client)
provider_id = 'provider_id_example' # str | The ID of the provider to inspect.
try:
# Get provider details
api_response = api_instance.inspect_provider(provider_id)
print("The response of AdminApi->inspect_provider:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AdminApi->inspect_provider: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://any-hosted-ogx.com