mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
38 KiB
38 KiB
Hanzo
Methods:
client.get_home() -> object
Models
Methods:
OpenAI
Methods:
client.openai.create(endpoint) -> objectclient.openai.retrieve(endpoint) -> objectclient.openai.update(endpoint) -> objectclient.openai.delete(endpoint) -> objectclient.openai.patch(endpoint) -> object
Deployments
Methods:
client.openai.deployments.complete(model) -> objectclient.openai.deployments.embed(model) -> object
Chat
Methods:
client.openai.deployments.chat.complete(model) -> object
Engines
Methods:
Chat
Methods:
client.engines.chat.complete(model) -> object
Chat
Completions
Methods:
Completions
Methods:
Embeddings
Methods:
Images
Generations
Methods:
client.images.generations.create() -> object
Audio
Speech
Methods:
client.audio.speech.create() -> object
Transcriptions
Methods:
Assistants
Methods:
client.assistants.create() -> objectclient.assistants.list() -> objectclient.assistants.delete(assistant_id) -> object
Threads
Methods:
Messages
Methods:
client.threads.messages.create(thread_id) -> objectclient.threads.messages.list(thread_id) -> object
Runs
Methods:
client.threads.runs.create(thread_id) -> object
Moderations
Methods:
client.moderations.create() -> object
Utils
Types:
from hanzoai.types import UtilTokenCounterResponse, UtilTransformRequestResponse
Methods:
client.utils.get_supported_openai_params(**params) -> objectclient.utils.token_counter(**params) -> UtilTokenCounterResponseclient.utils.transform_request(**params) -> UtilTransformRequestResponse
Model
Types:
from hanzoai.types import ConfigurableClientsideParamsCustomAuth, ModelInfo
Methods:
Info
Methods:
Update
Types:
from hanzoai.types.model import UpdateDeployment
Methods:
client.model.update.full(**params) -> objectclient.model.update.partial(model_id, **params) -> object
ModelGroup
Methods:
client.model_group.retrieve_info(**params) -> object
Routes
Methods:
client.routes.list() -> object
Responses
Methods:
client.responses.create() -> objectclient.responses.retrieve(response_id) -> objectclient.responses.delete(response_id) -> object
InputItems
Methods:
client.responses.input_items.list(response_id) -> object
Batches
Methods:
client.batches.create(**params) -> objectclient.batches.retrieve(batch_id, **params) -> objectclient.batches.list(**params) -> objectclient.batches.cancel_with_provider(batch_id, *, provider) -> objectclient.batches.create_with_provider(provider) -> objectclient.batches.list_with_provider(provider, **params) -> objectclient.batches.retrieve_with_provider(batch_id, *, provider) -> object
Cancel
Methods:
Rerank
Methods:
client.rerank.create() -> objectclient.rerank.create_v1() -> objectclient.rerank.create_v2() -> object
FineTuning
Jobs
Methods:
client.fine_tuning.jobs.create(**params) -> objectclient.fine_tuning.jobs.retrieve(fine_tuning_job_id, **params) -> objectclient.fine_tuning.jobs.list(**params) -> object
Cancel
Methods:
client.fine_tuning.jobs.cancel.create(fine_tuning_job_id) -> object
Credentials
Types:
from hanzoai.types import CredentialItem
Methods:
client.credentials.create(**params) -> objectclient.credentials.list() -> objectclient.credentials.delete(credential_name) -> object
VertexAI
Methods:
client.vertex_ai.create(endpoint) -> objectclient.vertex_ai.retrieve(endpoint) -> objectclient.vertex_ai.update(endpoint) -> objectclient.vertex_ai.delete(endpoint) -> objectclient.vertex_ai.patch(endpoint) -> object
Gemini
Methods:
client.gemini.create(endpoint) -> objectclient.gemini.retrieve(endpoint) -> objectclient.gemini.update(endpoint) -> objectclient.gemini.delete(endpoint) -> objectclient.gemini.patch(endpoint) -> object
Cohere
Methods:
client.cohere.create(endpoint) -> objectclient.cohere.retrieve(endpoint) -> objectclient.cohere.update(endpoint) -> objectclient.cohere.delete(endpoint) -> objectclient.cohere.modify(endpoint) -> object
Anthropic
Methods:
client.anthropic.create(endpoint) -> objectclient.anthropic.retrieve(endpoint) -> objectclient.anthropic.update(endpoint) -> objectclient.anthropic.delete(endpoint) -> objectclient.anthropic.modify(endpoint) -> object
Bedrock
Methods:
client.bedrock.create(endpoint) -> objectclient.bedrock.retrieve(endpoint) -> objectclient.bedrock.update(endpoint) -> objectclient.bedrock.delete(endpoint) -> objectclient.bedrock.patch(endpoint) -> object
EuAssemblyai
Methods:
client.eu_assemblyai.create(endpoint) -> objectclient.eu_assemblyai.retrieve(endpoint) -> objectclient.eu_assemblyai.update(endpoint) -> objectclient.eu_assemblyai.delete(endpoint) -> objectclient.eu_assemblyai.patch(endpoint) -> object
Assemblyai
Methods:
client.assemblyai.create(endpoint) -> objectclient.assemblyai.retrieve(endpoint) -> objectclient.assemblyai.update(endpoint) -> objectclient.assemblyai.delete(endpoint) -> objectclient.assemblyai.patch(endpoint) -> object
Azure
Methods:
client.azure.create(endpoint) -> objectclient.azure.update(endpoint) -> objectclient.azure.delete(endpoint) -> objectclient.azure.call(endpoint) -> objectclient.azure.patch(endpoint) -> object
Langfuse
Methods:
client.langfuse.create(endpoint) -> objectclient.langfuse.retrieve(endpoint) -> objectclient.langfuse.update(endpoint) -> objectclient.langfuse.delete(endpoint) -> objectclient.langfuse.patch(endpoint) -> object
Config
PassThroughEndpoint
Types:
from hanzoai.types.config import PassThroughEndpointResponse, PassThroughGenericEndpoint
Methods:
client.config.pass_through_endpoint.create(**params) -> objectclient.config.pass_through_endpoint.update(endpoint_id) -> objectclient.config.pass_through_endpoint.list(**params) -> PassThroughEndpointResponseclient.config.pass_through_endpoint.delete(**params) -> PassThroughEndpointResponse
Test
Methods:
client.test.ping() -> object
Health
Methods:
client.health.check_all(**params) -> objectclient.health.check_liveliness() -> objectclient.health.check_liveness() -> objectclient.health.check_readiness() -> objectclient.health.check_services(**params) -> object
Active
Methods:
client.active.list_callbacks() -> object
Settings
Methods:
client.settings.retrieve() -> object
Key
Types:
from hanzoai.types import (
BlockKeyRequest,
GenerateKeyResponse,
KeyListResponse,
KeyBlockResponse,
KeyCheckHealthResponse,
)
Methods:
client.key.update(**params) -> objectclient.key.list(**params) -> KeyListResponseclient.key.delete(**params) -> objectclient.key.block(**params) -> Optional[KeyBlockResponse]client.key.check_health() -> KeyCheckHealthResponseclient.key.generate(**params) -> GenerateKeyResponseclient.key.regenerate_by_key(path_key, **params) -> Optional[GenerateKeyResponse]client.key.retrieve_info(**params) -> objectclient.key.unblock(**params) -> object
Regenerate
Types:
from hanzoai.types.key import RegenerateKeyRequest
User
Types:
from hanzoai.types import UserCreateResponse
Methods:
client.user.create(**params) -> UserCreateResponseclient.user.update(**params) -> objectclient.user.list(**params) -> objectclient.user.delete(**params) -> objectclient.user.retrieve_info(**params) -> object
Team
Types:
from hanzoai.types import (
BlockTeamRequest,
Member,
TeamCreateResponse,
TeamAddMemberResponse,
TeamUpdateMemberResponse,
)
Methods:
client.team.create(**params) -> TeamCreateResponseclient.team.update(**params) -> objectclient.team.list(**params) -> objectclient.team.delete(**params) -> objectclient.team.add_member(**params) -> TeamAddMemberResponseclient.team.block(**params) -> objectclient.team.disable_logging(team_id) -> objectclient.team.list_available(**params) -> objectclient.team.remove_member(**params) -> objectclient.team.retrieve_info(**params) -> objectclient.team.unblock(**params) -> objectclient.team.update_member(**params) -> TeamUpdateMemberResponse
Model
Methods:
Callback
Methods:
client.team.callback.retrieve(team_id) -> objectclient.team.callback.add(team_id, **params) -> object
Organization
Types:
from hanzoai.types import (
OrgMember,
OrganizationCreateResponse,
OrganizationUpdateResponse,
OrganizationListResponse,
OrganizationDeleteResponse,
OrganizationAddMemberResponse,
OrganizationUpdateMemberResponse,
)
Methods:
client.organization.create(**params) -> OrganizationCreateResponseclient.organization.update(**params) -> OrganizationUpdateResponseclient.organization.list() -> OrganizationListResponseclient.organization.delete(**params) -> OrganizationDeleteResponseclient.organization.add_member(**params) -> OrganizationAddMemberResponseclient.organization.delete_member(**params) -> objectclient.organization.update_member(**params) -> OrganizationUpdateMemberResponse
Info
Types:
from hanzoai.types.organization import InfoRetrieveResponse
Methods:
client.organization.info.retrieve(**params) -> InfoRetrieveResponseclient.organization.info.deprecated(**params) -> object
Customer
Types:
from hanzoai.types import BlockUsers, CustomerListResponse, CustomerRetrieveInfoResponse
Methods:
client.customer.create(**params) -> objectclient.customer.update(**params) -> objectclient.customer.list() -> CustomerListResponseclient.customer.delete(**params) -> objectclient.customer.block(**params) -> objectclient.customer.retrieve_info(**params) -> CustomerRetrieveInfoResponseclient.customer.unblock(**params) -> object
Spend
Types:
from hanzoai.types import SpendListLogsResponse, SpendListTagsResponse
Methods:
client.spend.calculate_spend(**params) -> objectclient.spend.list_logs(**params) -> SpendListLogsResponseclient.spend.list_tags(**params) -> SpendListTagsResponse
Global
Spend
Types:
from hanzoai.types.global_ import SpendListTagsResponse, SpendRetrieveReportResponse
Methods:
client.global*.spend.list*tags(**params) -> SpendListTagsResponseclient.global*.spend.reset() -> objectclient.global*.spend.retrieve*report(**params) -> SpendRetrieveReportResponse
Provider
Types:
from hanzoai.types import ProviderListBudgetsResponse
Methods:
client.provider.list_budgets() -> ProviderListBudgetsResponse
Cache
Types:
from hanzoai.types import CachePingResponse
Methods:
client.cache.delete() -> objectclient.cache.flush_all() -> objectclient.cache.ping() -> CachePingResponse
Redis
Methods:
client.cache.redis.retrieve_info() -> object
Guardrails
Types:
from hanzoai.types import GuardrailListResponse
Methods:
client.guardrails.list() -> GuardrailListResponse
Add
Types:
from hanzoai.types import IPAddress
Methods:
client.add.add_allowed_ip(**params) -> object
Delete
Methods:
client.delete.create_allowed_ip(**params) -> object
Files
Methods:
client.files.create(provider, **params) -> objectclient.files.retrieve(file_id, *, provider) -> objectclient.files.list(provider, **params) -> objectclient.files.delete(file_id, *, provider) -> object
Content
Methods:
client.files.content.retrieve(file_id, *, provider) -> object
Budget
Types:
from hanzoai.types import BudgetNew
Methods: