Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/otari/_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"ChatCompletion",
"ChatCompletionChunk",
"ChatCompletionRequest",
"ChatCompletionRequestToolsInner",
"ChatMessageInput",
"Content",
"Content1",
Expand Down Expand Up @@ -279,6 +280,7 @@
from otari._client.models.chat_completion import ChatCompletion as ChatCompletion
from otari._client.models.chat_completion_chunk import ChatCompletionChunk as ChatCompletionChunk
from otari._client.models.chat_completion_request import ChatCompletionRequest as ChatCompletionRequest
from otari._client.models.chat_completion_request_tools_inner import ChatCompletionRequestToolsInner as ChatCompletionRequestToolsInner
from otari._client.models.chat_message_input import ChatMessageInput as ChatMessageInput
from otari._client.models.content import Content as Content
from otari._client.models.content1 import Content1 as Content1
Expand Down
2 changes: 2 additions & 0 deletions src/otari/_client/api/audio_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ def _create_speech_v1_audio_speech_post_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -665,6 +666,7 @@ def _create_transcription_v1_audio_transcriptions_post_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down
5 changes: 5 additions & 0 deletions src/otari/_client/api/batches_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ def _cancel_batch_v1_batches_batch_id_cancel_post_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -573,6 +574,7 @@ def _create_batch_v1_batches_post_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -872,6 +874,7 @@ def _list_batches_v1_batches_get_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -1158,6 +1161,7 @@ def _retrieve_batch_results_v1_batches_batch_id_results_get_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -1438,6 +1442,7 @@ def _retrieve_batch_v1_batches_batch_id_get_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down
5 changes: 5 additions & 0 deletions src/otari/_client/api/budgets_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def _create_budget_v1_budgets_post_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -559,6 +560,7 @@ def _delete_budget_v1_budgets_budget_id_delete_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -822,6 +824,7 @@ def _get_budget_v1_budgets_budget_id_get_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -1104,6 +1107,7 @@ def _list_budgets_v1_budgets_get_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -1395,6 +1399,7 @@ def _update_budget_v1_budgets_budget_id_patch_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down
1 change: 1 addition & 0 deletions src/otari/_client/api/chat_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def _chat_completions_v1_chat_completions_post_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down
1 change: 1 addition & 0 deletions src/otari/_client/api/embeddings_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def _create_embedding_v1_embeddings_post_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down
5 changes: 5 additions & 0 deletions src/otari/_client/api/files_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ def _create_file_v1_files_post_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -602,6 +603,7 @@ def _delete_file_v1_files_file_id_delete_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -882,6 +884,7 @@ def _get_file_content_v1_files_file_id_content_get_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -1162,6 +1165,7 @@ def _get_file_v1_files_file_id_get_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -1444,6 +1448,7 @@ def _list_files_v1_files_get_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down
1 change: 1 addition & 0 deletions src/otari/_client/api/images_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def _create_image_v1_images_generations_post_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down
5 changes: 5 additions & 0 deletions src/otari/_client/api/keys_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ def _create_key_v1_keys_post_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -560,6 +561,7 @@ def _delete_key_v1_keys_key_id_delete_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -823,6 +825,7 @@ def _get_key_v1_keys_key_id_get_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -1105,6 +1108,7 @@ def _list_keys_v1_keys_get_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -1396,6 +1400,7 @@ def _update_key_v1_keys_key_id_patch_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down
14 changes: 8 additions & 6 deletions src/otari/_client/api/messages_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def count_message_tokens_v1_messages_count_tokens_post(
) -> CountTokensResponse:
"""Count Message Tokens

Anthropic ``/v1/messages/count_tokens``-compatible endpoint. Returns ``{\"input_tokens\": N}`` without contacting an upstream provider: counting is local, so there is no budget reservation, pricing, or usage logging. Authentication mirrors :func:`create_message` — platform mode resolves the caller's token against the platform, standalone mode validates the API key — so the endpoint is not an open token-counting oracle.
Anthropic ``/v1/messages/count_tokens``-compatible endpoint. Returns ``{\"input_tokens\": N}`` without contacting an upstream provider: counting is local, so there is no budget reservation, pricing, or usage logging. Authentication mirrors :func:`create_message` — hybrid mode resolves the caller's token against the platform, standalone mode validates the API key — so the endpoint is not an open token-counting oracle.

:param count_tokens_request: (required)
:type count_tokens_request: CountTokensRequest
Expand Down Expand Up @@ -125,7 +125,7 @@ def count_message_tokens_v1_messages_count_tokens_post_with_http_info(
) -> ApiResponse[CountTokensResponse]:
"""Count Message Tokens

Anthropic ``/v1/messages/count_tokens``-compatible endpoint. Returns ``{\"input_tokens\": N}`` without contacting an upstream provider: counting is local, so there is no budget reservation, pricing, or usage logging. Authentication mirrors :func:`create_message` — platform mode resolves the caller's token against the platform, standalone mode validates the API key — so the endpoint is not an open token-counting oracle.
Anthropic ``/v1/messages/count_tokens``-compatible endpoint. Returns ``{\"input_tokens\": N}`` without contacting an upstream provider: counting is local, so there is no budget reservation, pricing, or usage logging. Authentication mirrors :func:`create_message` — hybrid mode resolves the caller's token against the platform, standalone mode validates the API key — so the endpoint is not an open token-counting oracle.

:param count_tokens_request: (required)
:type count_tokens_request: CountTokensRequest
Expand Down Expand Up @@ -193,7 +193,7 @@ def count_message_tokens_v1_messages_count_tokens_post_without_preload_content(
) -> RESTResponseType:
"""Count Message Tokens

Anthropic ``/v1/messages/count_tokens``-compatible endpoint. Returns ``{\"input_tokens\": N}`` without contacting an upstream provider: counting is local, so there is no budget reservation, pricing, or usage logging. Authentication mirrors :func:`create_message` — platform mode resolves the caller's token against the platform, standalone mode validates the API key — so the endpoint is not an open token-counting oracle.
Anthropic ``/v1/messages/count_tokens``-compatible endpoint. Returns ``{\"input_tokens\": N}`` without contacting an upstream provider: counting is local, so there is no budget reservation, pricing, or usage logging. Authentication mirrors :func:`create_message` — hybrid mode resolves the caller's token against the platform, standalone mode validates the API key — so the endpoint is not an open token-counting oracle.

:param count_tokens_request: (required)
:type count_tokens_request: CountTokensRequest
Expand Down Expand Up @@ -294,6 +294,7 @@ def _count_message_tokens_v1_messages_count_tokens_post_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -333,7 +334,7 @@ def create_message_v1_messages_post(
) -> MessageResponse:
"""Create Message

Anthropic Messages API-compatible endpoint. Supports MCP tool-use loops, sandboxed code execution, and SearXNG web_search in both standalone mode and platform mode. Platform-mode requests resolve credentials via the platform service and (for non-tool-loop requests) get multi-attempt fallback across the resolved route. Tool-loop requests collapse to a single attempt — once ``on_first_response`` lock-in plumbing lands across the codebase, a follow-up will enable pre-lock-in fallback for tool-loop requests too.
Anthropic Messages API-compatible endpoint. Supports MCP tool-use loops, sandboxed code execution, and SearXNG web_search in both standalone mode and hybrid mode. Hybrid-mode requests resolve credentials via the platform service and (for non-tool-loop requests) get multi-attempt fallback across the resolved route. Tool-loop requests collapse to a single attempt — once ``on_first_response`` lock-in plumbing lands across the codebase, a follow-up will enable pre-lock-in fallback for tool-loop requests too.

:param messages_request: (required)
:type messages_request: MessagesRequest
Expand Down Expand Up @@ -401,7 +402,7 @@ def create_message_v1_messages_post_with_http_info(
) -> ApiResponse[MessageResponse]:
"""Create Message

Anthropic Messages API-compatible endpoint. Supports MCP tool-use loops, sandboxed code execution, and SearXNG web_search in both standalone mode and platform mode. Platform-mode requests resolve credentials via the platform service and (for non-tool-loop requests) get multi-attempt fallback across the resolved route. Tool-loop requests collapse to a single attempt — once ``on_first_response`` lock-in plumbing lands across the codebase, a follow-up will enable pre-lock-in fallback for tool-loop requests too.
Anthropic Messages API-compatible endpoint. Supports MCP tool-use loops, sandboxed code execution, and SearXNG web_search in both standalone mode and hybrid mode. Hybrid-mode requests resolve credentials via the platform service and (for non-tool-loop requests) get multi-attempt fallback across the resolved route. Tool-loop requests collapse to a single attempt — once ``on_first_response`` lock-in plumbing lands across the codebase, a follow-up will enable pre-lock-in fallback for tool-loop requests too.

:param messages_request: (required)
:type messages_request: MessagesRequest
Expand Down Expand Up @@ -469,7 +470,7 @@ def create_message_v1_messages_post_without_preload_content(
) -> RESTResponseType:
"""Create Message

Anthropic Messages API-compatible endpoint. Supports MCP tool-use loops, sandboxed code execution, and SearXNG web_search in both standalone mode and platform mode. Platform-mode requests resolve credentials via the platform service and (for non-tool-loop requests) get multi-attempt fallback across the resolved route. Tool-loop requests collapse to a single attempt — once ``on_first_response`` lock-in plumbing lands across the codebase, a follow-up will enable pre-lock-in fallback for tool-loop requests too.
Anthropic Messages API-compatible endpoint. Supports MCP tool-use loops, sandboxed code execution, and SearXNG web_search in both standalone mode and hybrid mode. Hybrid-mode requests resolve credentials via the platform service and (for non-tool-loop requests) get multi-attempt fallback across the resolved route. Tool-loop requests collapse to a single attempt — once ``on_first_response`` lock-in plumbing lands across the codebase, a follow-up will enable pre-lock-in fallback for tool-loop requests too.

:param messages_request: (required)
:type messages_request: MessagesRequest
Expand Down Expand Up @@ -570,6 +571,7 @@ def _create_message_v1_messages_post_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down
2 changes: 2 additions & 0 deletions src/otari/_client/api/models_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ def _get_model_v1_models_model_id_get_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -547,6 +548,7 @@ def _list_models_v1_models_get_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down
1 change: 1 addition & 0 deletions src/otari/_client/api/moderations_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ def _create_moderation_v1_moderations_post_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down
5 changes: 5 additions & 0 deletions src/otari/_client/api/pricing_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ def _delete_pricing_v1_pricing_model_key_delete_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -572,6 +573,7 @@ def _get_pricing_history_v1_pricing_model_key_history_get_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -861,6 +863,7 @@ def _get_pricing_v1_pricing_model_key_get_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -1143,6 +1146,7 @@ def _list_pricing_v1_pricing_get_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -1419,6 +1423,7 @@ def _set_pricing_v1_pricing_post_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down
1 change: 1 addition & 0 deletions src/otari/_client/api/rerank_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def _create_rerank_v1_rerank_post_serialize(

# authentication setting
_auth_settings: List[str] = [
'ApiKeyAuth'
]

return self.api_client.param_serialize(
Expand Down
Loading
Loading