55 KiB
Hanzo
Types:
from hanzoai.types import GetHomeResponse
Methods:
Models
Types:
from hanzoai.types import ModelListResponse
Methods:
OpenAI
Types:
from hanzoai.types import (
OpenAICreateResponse,
OpenAIRetrieveResponse,
OpenAIUpdateResponse,
OpenAIDeleteResponse,
OpenAIPatchResponse,
)
Methods:
client.openai.create(endpoint) -> objectclient.openai.retrieve(endpoint) -> objectclient.openai.update(endpoint) -> objectclient.openai.delete(endpoint) -> objectclient.openai.patch(endpoint) -> object
Deployments
Types:
from hanzoai.types.openai import DeploymentCompleteResponse, DeploymentEmbedResponse
Methods:
client.openai.deployments.complete(model) -> objectclient.openai.deployments.embed(model) -> object
Chat
Types:
from hanzoai.types.openai.deployments import ChatCompleteResponse
Methods:
Engines
Types:
from hanzoai.types import EngineCompleteResponse, EngineEmbedResponse
Methods:
Chat
Types:
from hanzoai.types.engines import ChatCompleteResponse
Methods:
Chat
Completions
Types:
from hanzoai.types.chat import CompletionCreateResponse
Methods:
Completions
Types:
from hanzoai.types import CompletionCreateResponse
Methods:
Embeddings
Types:
from hanzoai.types import EmbeddingCreateResponse
Methods:
Images
Generations
Types:
from hanzoai.types.images import GenerationCreateResponse
Methods:
Audio
Speech
Types:
from hanzoai.types.audio import SpeechCreateResponse
Methods:
Transcriptions
Types:
from hanzoai.types.audio import TranscriptionCreateResponse
Methods:
Assistants
Types:
from hanzoai.types import AssistantCreateResponse, AssistantListResponse, AssistantDeleteResponse
Methods:
client.assistants.create() -> objectclient.assistants.list() -> objectclient.assistants.delete(assistant_id) -> object
Threads
Types:
from hanzoai.types import ThreadCreateResponse, ThreadRetrieveResponse
Methods:
Messages
Types:
from hanzoai.types.threads import MessageCreateResponse, MessageListResponse
Methods:
client.threads.messages.create(thread_id) -> objectclient.threads.messages.list(thread_id) -> object
Runs
Types:
from hanzoai.types.threads import RunCreateResponse
Methods:
Moderations
Types:
from hanzoai.types import ModerationCreateResponse
Methods:
Utils
Types:
from hanzoai.types import (
UtilGetSupportedOpenAIParamsResponse,
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,
ModelCreateResponse,
ModelDeleteResponse,
)
Methods:
Info
Types:
from hanzoai.types.model import InfoListResponse
Methods:
Update
Types:
from hanzoai.types.model import UpdateDeployment, UpdateFullResponse, UpdatePartialResponse
Methods:
client.model.update.full(**params) -> objectclient.model.update.partial(model_id, **params) -> object
ModelGroup
Types:
from hanzoai.types import ModelGroupRetrieveInfoResponse
Methods:
client.model_group.retrieve_info(**params) -> object
Routes
Types:
from hanzoai.types import RouteListResponse
Methods:
Responses
Types:
from hanzoai.types import ResponseCreateResponse, ResponseRetrieveResponse, ResponseDeleteResponse
Methods:
client.responses.create() -> objectclient.responses.retrieve(response_id) -> objectclient.responses.delete(response_id) -> object
InputItems
Types:
from hanzoai.types.responses import InputItemListResponse
Methods:
Batches
Types:
from hanzoai.types import (
BatchCreateResponse,
BatchRetrieveResponse,
BatchListResponse,
BatchCancelWithProviderResponse,
BatchCreateWithProviderResponse,
BatchListWithProviderResponse,
BatchRetrieveWithProviderResponse,
)
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
Types:
from hanzoai.types.batches import CancelCancelResponse
Methods:
Rerank
Types:
from hanzoai.types import RerankCreateResponse, RerankCreateV1Response, RerankCreateV2Response
Methods:
client.rerank.create() -> objectclient.rerank.create_v1() -> objectclient.rerank.create_v2() -> object
FineTuning
Jobs
Types:
from hanzoai.types.fine_tuning import (
HanzoFineTuningJobCreate,
JobCreateResponse,
JobRetrieveResponse,
JobListResponse,
)
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
Types:
from hanzoai.types.fine_tuning.jobs import CancelCreateResponse
Methods:
Credentials
Types:
from hanzoai.types import (
CredentialItem,
CredentialCreateResponse,
CredentialRetrieveResponse,
CredentialUpdateResponse,
CredentialListResponse,
CredentialDeleteResponse,
)
Methods:
client.credentials.create(**params) -> objectclient.credentials.retrieve(credential_name) -> objectclient.credentials.update(path_credential_name, **params) -> objectclient.credentials.list() -> objectclient.credentials.delete(credential_name) -> object
VertexAI
Types:
from hanzoai.types import (
VertexAICreateResponse,
VertexAIRetrieveResponse,
VertexAIUpdateResponse,
VertexAIDeleteResponse,
VertexAIPatchResponse,
)
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
Types:
from hanzoai.types import (
GeminiCreateResponse,
GeminiRetrieveResponse,
GeminiUpdateResponse,
GeminiDeleteResponse,
GeminiPatchResponse,
)
Methods:
client.gemini.create(endpoint) -> objectclient.gemini.retrieve(endpoint) -> objectclient.gemini.update(endpoint) -> objectclient.gemini.delete(endpoint) -> objectclient.gemini.patch(endpoint) -> object
Cohere
Types:
from hanzoai.types import (
CohereCreateResponse,
CohereRetrieveResponse,
CohereUpdateResponse,
CohereDeleteResponse,
CohereModifyResponse,
)
Methods:
client.cohere.create(endpoint) -> objectclient.cohere.retrieve(endpoint) -> objectclient.cohere.update(endpoint) -> objectclient.cohere.delete(endpoint) -> objectclient.cohere.modify(endpoint) -> object
Anthropic
Types:
from hanzoai.types import (
AnthropicCreateResponse,
AnthropicRetrieveResponse,
AnthropicUpdateResponse,
AnthropicDeleteResponse,
AnthropicModifyResponse,
)
Methods:
client.anthropic.create(endpoint) -> objectclient.anthropic.retrieve(endpoint) -> objectclient.anthropic.update(endpoint) -> objectclient.anthropic.delete(endpoint) -> objectclient.anthropic.modify(endpoint) -> object
Bedrock
Types:
from hanzoai.types import (
BedrockCreateResponse,
BedrockRetrieveResponse,
BedrockUpdateResponse,
BedrockDeleteResponse,
BedrockPatchResponse,
)
Methods:
client.bedrock.create(endpoint) -> objectclient.bedrock.retrieve(endpoint) -> objectclient.bedrock.update(endpoint) -> objectclient.bedrock.delete(endpoint) -> objectclient.bedrock.patch(endpoint) -> object
EuAssemblyai
Types:
from hanzoai.types import (
EuAssemblyaiCreateResponse,
EuAssemblyaiRetrieveResponse,
EuAssemblyaiUpdateResponse,
EuAssemblyaiDeleteResponse,
EuAssemblyaiPatchResponse,
)
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
Types:
from hanzoai.types import (
AssemblyaiCreateResponse,
AssemblyaiRetrieveResponse,
AssemblyaiUpdateResponse,
AssemblyaiDeleteResponse,
AssemblyaiPatchResponse,
)
Methods:
client.assemblyai.create(endpoint) -> objectclient.assemblyai.retrieve(endpoint) -> objectclient.assemblyai.update(endpoint) -> objectclient.assemblyai.delete(endpoint) -> objectclient.assemblyai.patch(endpoint) -> object
Azure
Types:
from hanzoai.types import (
AzureCreateResponse,
AzureUpdateResponse,
AzureDeleteResponse,
AzureCallResponse,
AzurePatchResponse,
)
Methods:
client.azure.create(endpoint) -> objectclient.azure.update(endpoint) -> objectclient.azure.delete(endpoint) -> objectclient.azure.call(endpoint) -> objectclient.azure.patch(endpoint) -> object
Langfuse
Types:
from hanzoai.types import (
LangfuseCreateResponse,
LangfuseRetrieveResponse,
LangfuseUpdateResponse,
LangfuseDeleteResponse,
LangfusePatchResponse,
)
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,
PassThroughEndpointCreateResponse,
PassThroughEndpointUpdateResponse,
)
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
Types:
from hanzoai.types import TestPingResponse
Methods:
Health
Types:
from hanzoai.types import (
HealthCheckAllResponse,
HealthCheckLivelinessResponse,
HealthCheckLivenessResponse,
HealthCheckReadinessResponse,
HealthCheckServicesResponse,
)
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
Types:
from hanzoai.types import ActiveListCallbacksResponse
Methods:
client.active.list_callbacks() -> object
Settings
Types:
from hanzoai.types import SettingRetrieveResponse
Methods:
Key
Types:
from hanzoai.types import (
BlockKeyRequest,
GenerateKeyResponse,
KeyUpdateResponse,
KeyListResponse,
KeyDeleteResponse,
KeyBlockResponse,
KeyCheckHealthResponse,
KeyRetrieveInfoResponse,
KeyUnblockResponse,
)
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,
UserUpdateResponse,
UserListResponse,
UserDeleteResponse,
UserRetrieveInfoResponse,
)
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,
HanzoModelTable,
HanzoTeamTable,
HanzoUserTable,
Member,
TeamUpdateResponse,
TeamListResponse,
TeamDeleteResponse,
TeamAddMemberResponse,
TeamBlockResponse,
TeamDisableLoggingResponse,
TeamListAvailableResponse,
TeamRemoveMemberResponse,
TeamRetrieveInfoResponse,
TeamUnblockResponse,
TeamUpdateMemberResponse,
)
Methods:
client.team.create(**params) -> HanzoTeamTableclient.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
Types:
from hanzoai.types.team import ModelAddResponse, ModelRemoveResponse
Methods:
Callback
Types:
from hanzoai.types.team import CallbackRetrieveResponse, CallbackAddResponse
Methods:
client.team.callback.retrieve(team_id) -> objectclient.team.callback.add(team_id, **params) -> object
Organization
Types:
from hanzoai.types import (
BudgetTable,
OrgMember,
OrganizationMembershipTable,
OrganizationTableWithMembers,
UserRoles,
OrganizationCreateResponse,
OrganizationListResponse,
OrganizationDeleteResponse,
OrganizationAddMemberResponse,
OrganizationDeleteMemberResponse,
)
Methods:
client.organization.create(**params) -> OrganizationCreateResponseclient.organization.update(**params) -> OrganizationTableWithMembersclient.organization.list() -> OrganizationListResponseclient.organization.delete(**params) -> OrganizationDeleteResponseclient.organization.add_member(**params) -> OrganizationAddMemberResponseclient.organization.delete_member(**params) -> objectclient.organization.update_member(**params) -> OrganizationMembershipTable
Info
Types:
from hanzoai.types.organization import InfoDeprecatedResponse
Methods:
client.organization.info.retrieve(**params) -> OrganizationTableWithMembersclient.organization.info.deprecated(**params) -> object
Customer
Types:
from hanzoai.types import (
BlockUsers,
HanzoEndUserTable,
CustomerCreateResponse,
CustomerUpdateResponse,
CustomerListResponse,
CustomerDeleteResponse,
CustomerBlockResponse,
CustomerUnblockResponse,
)
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) -> HanzoEndUserTableclient.customer.unblock(**params) -> object
Spend
Types:
from hanzoai.types import (
HanzoSpendLogs,
SpendCalculateSpendResponse,
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,
SpendResetResponse,
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 CacheDeleteResponse, CacheFlushAllResponse, CachePingResponse
Methods:
client.cache.delete() -> objectclient.cache.flush_all() -> objectclient.cache.ping() -> CachePingResponse
Redis
Types:
from hanzoai.types.cache import RediRetrieveInfoResponse
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, AddAddAllowedIPResponse
Methods:
client.add.add_allowed_ip(**params) -> object
Delete
Types:
from hanzoai.types import DeleteCreateAllowedIPResponse
Methods:
client.delete.create_allowed_ip(**params) -> object
Files
Types:
from hanzoai.types import (
FileCreateResponse,
FileRetrieveResponse,
FileListResponse,
FileDeleteResponse,
)
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
Types:
from hanzoai.types.files import ContentRetrieveResponse
Methods:
Budget
Types:
from hanzoai.types import (
BudgetNew,
BudgetCreateResponse,
BudgetUpdateResponse,
BudgetListResponse,
BudgetDeleteResponse,
BudgetInfoResponse,
BudgetSettingsResponse,
)
Methods: