Skip to content

Latest commit

 

History

History
1081 lines (748 loc) · 54.1 KB

api.md

File metadata and controls

1081 lines (748 loc) · 54.1 KB

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:

Deployments

Types:

from hanzoai.types.openai import DeploymentCompleteResponse, DeploymentEmbedResponse

Methods:

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:

Threads

Types:

from hanzoai.types import ThreadCreateResponse, ThreadRetrieveResponse

Methods:

Messages

Types:

from hanzoai.types.threads import MessageCreateResponse, MessageListResponse

Methods:

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:

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:

ModelGroup

Types:

from hanzoai.types import ModelGroupRetrieveInfoResponse

Methods:

Routes

Types:

from hanzoai.types import RouteListResponse

Methods:

Responses

Types:

from hanzoai.types import ResponseCreateResponse, ResponseRetrieveResponse, ResponseDeleteResponse

Methods:

InputItems

Types:

from hanzoai.types.responses import InputItemListResponse

Methods:

  • client.responses.input_items.list(response_id) -> object

Batches

Types:

from hanzoai.types import (
    BatchCreateResponse,
    BatchRetrieveResponse,
    BatchListResponse,
    BatchCancelWithProviderResponse,
    BatchCreateWithProviderResponse,
    BatchListWithProviderResponse,
    BatchRetrieveWithProviderResponse,
)

Methods:

Cancel

Types:

from hanzoai.types.batches import CancelCancelResponse

Methods:

Rerank

Types:

from hanzoai.types import RerankCreateResponse, RerankCreateV1Response, RerankCreateV2Response

Methods:

FineTuning

Jobs

Types:

from hanzoai.types.fine_tuning import JobCreateResponse, JobRetrieveResponse, JobListResponse

Methods:

Cancel

Types:

from hanzoai.types.fine_tuning.jobs import CancelCreateResponse

Methods:

  • client.fine_tuning.jobs.cancel.create(fine_tuning_job_id) -> object

Credentials

Types:

from hanzoai.types import (
    CredentialItem,
    CredentialCreateResponse,
    CredentialListResponse,
    CredentialDeleteResponse,
)

Methods:

VertexAI

Types:

from hanzoai.types import (
    VertexAICreateResponse,
    VertexAIRetrieveResponse,
    VertexAIUpdateResponse,
    VertexAIDeleteResponse,
    VertexAIPatchResponse,
)

Methods:

Gemini

Types:

from hanzoai.types import (
    GeminiCreateResponse,
    GeminiRetrieveResponse,
    GeminiUpdateResponse,
    GeminiDeleteResponse,
    GeminiPatchResponse,
)

Methods:

Cohere

Types:

from hanzoai.types import (
    CohereCreateResponse,
    CohereRetrieveResponse,
    CohereUpdateResponse,
    CohereDeleteResponse,
    CohereModifyResponse,
)

Methods:

Anthropic

Types:

from hanzoai.types import (
    AnthropicCreateResponse,
    AnthropicRetrieveResponse,
    AnthropicUpdateResponse,
    AnthropicDeleteResponse,
    AnthropicModifyResponse,
)

Methods:

Bedrock

Types:

from hanzoai.types import (
    BedrockCreateResponse,
    BedrockRetrieveResponse,
    BedrockUpdateResponse,
    BedrockDeleteResponse,
    BedrockPatchResponse,
)

Methods:

EuAssemblyai

Types:

from hanzoai.types import (
    EuAssemblyaiCreateResponse,
    EuAssemblyaiRetrieveResponse,
    EuAssemblyaiUpdateResponse,
    EuAssemblyaiDeleteResponse,
    EuAssemblyaiPatchResponse,
)

Methods:

Assemblyai

Types:

from hanzoai.types import (
    AssemblyaiCreateResponse,
    AssemblyaiRetrieveResponse,
    AssemblyaiUpdateResponse,
    AssemblyaiDeleteResponse,
    AssemblyaiPatchResponse,
)

Methods:

Azure

Types:

from hanzoai.types import (
    AzureCreateResponse,
    AzureUpdateResponse,
    AzureDeleteResponse,
    AzureCallResponse,
    AzurePatchResponse,
)

Methods:

Langfuse

Types:

from hanzoai.types import (
    LangfuseCreateResponse,
    LangfuseRetrieveResponse,
    LangfuseUpdateResponse,
    LangfuseDeleteResponse,
    LangfusePatchResponse,
)

Methods:

Config

PassThroughEndpoint

Types:

from hanzoai.types.config import (
    PassThroughEndpointResponse,
    PassThroughGenericEndpoint,
    PassThroughEndpointCreateResponse,
    PassThroughEndpointUpdateResponse,
)

Methods:

Test

Types:

from hanzoai.types import TestPingResponse

Methods:

Health

Types:

from hanzoai.types import (
    HealthCheckAllResponse,
    HealthCheckLivelinessResponse,
    HealthCheckLivenessResponse,
    HealthCheckReadinessResponse,
    HealthCheckServicesResponse,
)

Methods:

Active

Types:

from hanzoai.types import ActiveListCallbacksResponse

Methods:

Settings

Types:

from hanzoai.types import SettingRetrieveResponse

Methods:

Key

Types:

from hanzoai.types import (
    BlockKeyRequest,
    GenerateKeyResponse,
    KeyUpdateResponse,
    KeyListResponse,
    KeyDeleteResponse,
    KeyBlockResponse,
    KeyCheckHealthResponse,
    KeyRetrieveInfoResponse,
    KeyUnblockResponse,
)

Methods:

Regenerate

Types:

from hanzoai.types.key import RegenerateKeyRequest

User

Types:

from hanzoai.types import (
    UserCreateResponse,
    UserUpdateResponse,
    UserListResponse,
    UserDeleteResponse,
    UserRetrieveInfoResponse,
)

Methods:

Team

Types:

from hanzoai.types import (
    BlockTeamRequest,
    Member,
    TeamCreateResponse,
    TeamUpdateResponse,
    TeamListResponse,
    TeamDeleteResponse,
    TeamAddMemberResponse,
    TeamBlockResponse,
    TeamDisableLoggingResponse,
    TeamListAvailableResponse,
    TeamRemoveMemberResponse,
    TeamRetrieveInfoResponse,
    TeamUnblockResponse,
    TeamUpdateMemberResponse,
)

Methods:

Model

Types:

from hanzoai.types.team import ModelAddResponse, ModelRemoveResponse

Methods:

Callback

Types:

from hanzoai.types.team import CallbackRetrieveResponse, CallbackAddResponse

Methods:

Organization

Types:

from hanzoai.types import (
    OrgMember,
    OrganizationCreateResponse,
    OrganizationUpdateResponse,
    OrganizationListResponse,
    OrganizationDeleteResponse,
    OrganizationAddMemberResponse,
    OrganizationDeleteMemberResponse,
    OrganizationUpdateMemberResponse,
)

Methods:

Info

Types:

from hanzoai.types.organization import InfoRetrieveResponse, InfoDeprecatedResponse

Methods:

Customer

Types:

from hanzoai.types import (
    BlockUsers,
    CustomerCreateResponse,
    CustomerUpdateResponse,
    CustomerListResponse,
    CustomerDeleteResponse,
    CustomerBlockResponse,
    CustomerRetrieveInfoResponse,
    CustomerUnblockResponse,
)

Methods:

Spend

Types:

from hanzoai.types import SpendCalculateSpendResponse, SpendListLogsResponse, SpendListTagsResponse

Methods:

Global

Spend

Types:

from hanzoai.types.global_ import (
    SpendListTagsResponse,
    SpendResetResponse,
    SpendRetrieveReportResponse,
)

Methods:

Provider

Types:

from hanzoai.types import ProviderListBudgetsResponse

Methods:

Cache

Types:

from hanzoai.types import CacheDeleteResponse, CacheFlushAllResponse, CachePingResponse

Methods:

Redis

Types:

from hanzoai.types.cache import RediRetrieveInfoResponse

Methods:

Guardrails

Types:

from hanzoai.types import GuardrailListResponse

Methods:

Add

Types:

from hanzoai.types import IPAddress, AddAddAllowedIPResponse

Methods:

Delete

Types:

from hanzoai.types import DeleteCreateAllowedIPResponse

Methods:

Files

Types:

from hanzoai.types import (
    FileCreateResponse,
    FileRetrieveResponse,
    FileListResponse,
    FileDeleteResponse,
)

Methods:

Content

Types:

from hanzoai.types.files import ContentRetrieveResponse

Methods:

Budget

Types:

from hanzoai.types import (
    BudgetNew,
    BudgetCreateResponse,
    BudgetUpdateResponse,
    BudgetListResponse,
    BudgetDeleteResponse,
    BudgetInfoResponse,
    BudgetSettingsResponse,
)

Methods: