Skip to content

Commit 834c931

Browse files
njbrakegithub-actions[bot]
authored andcommitted
chore: regenerate SDK client core from Otari OpenAPI spec
1 parent 0ef4c33 commit 834c931

26 files changed

Lines changed: 277 additions & 22 deletions

src/otari/_client/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"ChatCompletion",
7878
"ChatCompletionChunk",
7979
"ChatCompletionRequest",
80+
"ChatCompletionRequestToolsInner",
8081
"ChatMessageInput",
8182
"Content",
8283
"Content1",
@@ -279,6 +280,7 @@
279280
from otari._client.models.chat_completion import ChatCompletion as ChatCompletion
280281
from otari._client.models.chat_completion_chunk import ChatCompletionChunk as ChatCompletionChunk
281282
from otari._client.models.chat_completion_request import ChatCompletionRequest as ChatCompletionRequest
283+
from otari._client.models.chat_completion_request_tools_inner import ChatCompletionRequestToolsInner as ChatCompletionRequestToolsInner
282284
from otari._client.models.chat_message_input import ChatMessageInput as ChatMessageInput
283285
from otari._client.models.content import Content as Content
284286
from otari._client.models.content1 import Content1 as Content1

src/otari/_client/api/audio_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ def _create_speech_v1_audio_speech_post_serialize(
299299

300300
# authentication setting
301301
_auth_settings: List[str] = [
302+
'ApiKeyAuth'
302303
]
303304

304305
return self.api_client.param_serialize(
@@ -665,6 +666,7 @@ def _create_transcription_v1_audio_transcriptions_post_serialize(
665666

666667
# authentication setting
667668
_auth_settings: List[str] = [
669+
'ApiKeyAuth'
668670
]
669671

670672
return self.api_client.param_serialize(

src/otari/_client/api/batches_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ def _cancel_batch_v1_batches_batch_id_cancel_post_serialize(
297297

298298
# authentication setting
299299
_auth_settings: List[str] = [
300+
'ApiKeyAuth'
300301
]
301302

302303
return self.api_client.param_serialize(
@@ -573,6 +574,7 @@ def _create_batch_v1_batches_post_serialize(
573574

574575
# authentication setting
575576
_auth_settings: List[str] = [
577+
'ApiKeyAuth'
576578
]
577579

578580
return self.api_client.param_serialize(
@@ -872,6 +874,7 @@ def _list_batches_v1_batches_get_serialize(
872874

873875
# authentication setting
874876
_auth_settings: List[str] = [
877+
'ApiKeyAuth'
875878
]
876879

877880
return self.api_client.param_serialize(
@@ -1158,6 +1161,7 @@ def _retrieve_batch_results_v1_batches_batch_id_results_get_serialize(
11581161

11591162
# authentication setting
11601163
_auth_settings: List[str] = [
1164+
'ApiKeyAuth'
11611165
]
11621166

11631167
return self.api_client.param_serialize(
@@ -1438,6 +1442,7 @@ def _retrieve_batch_v1_batches_batch_id_get_serialize(
14381442

14391443
# authentication setting
14401444
_auth_settings: List[str] = [
1445+
'ApiKeyAuth'
14411446
]
14421447

14431448
return self.api_client.param_serialize(

src/otari/_client/api/budgets_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ def _create_budget_v1_budgets_post_serialize(
296296

297297
# authentication setting
298298
_auth_settings: List[str] = [
299+
'ApiKeyAuth'
299300
]
300301

301302
return self.api_client.param_serialize(
@@ -559,6 +560,7 @@ def _delete_budget_v1_budgets_budget_id_delete_serialize(
559560

560561
# authentication setting
561562
_auth_settings: List[str] = [
563+
'ApiKeyAuth'
562564
]
563565

564566
return self.api_client.param_serialize(
@@ -822,6 +824,7 @@ def _get_budget_v1_budgets_budget_id_get_serialize(
822824

823825
# authentication setting
824826
_auth_settings: List[str] = [
827+
'ApiKeyAuth'
825828
]
826829

827830
return self.api_client.param_serialize(
@@ -1104,6 +1107,7 @@ def _list_budgets_v1_budgets_get_serialize(
11041107

11051108
# authentication setting
11061109
_auth_settings: List[str] = [
1110+
'ApiKeyAuth'
11071111
]
11081112

11091113
return self.api_client.param_serialize(
@@ -1395,6 +1399,7 @@ def _update_budget_v1_budgets_budget_id_patch_serialize(
13951399

13961400
# authentication setting
13971401
_auth_settings: List[str] = [
1402+
'ApiKeyAuth'
13981403
]
13991404

14001405
return self.api_client.param_serialize(

src/otari/_client/api/chat_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ def _chat_completions_v1_chat_completions_post_serialize(
292292

293293
# authentication setting
294294
_auth_settings: List[str] = [
295+
'ApiKeyAuth'
295296
]
296297

297298
return self.api_client.param_serialize(

src/otari/_client/api/embeddings_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ def _create_embedding_v1_embeddings_post_serialize(
292292

293293
# authentication setting
294294
_auth_settings: List[str] = [
295+
'ApiKeyAuth'
295296
]
296297

297298
return self.api_client.param_serialize(

src/otari/_client/api/files_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ def _create_file_v1_files_post_serialize(
322322

323323
# authentication setting
324324
_auth_settings: List[str] = [
325+
'ApiKeyAuth'
325326
]
326327

327328
return self.api_client.param_serialize(
@@ -602,6 +603,7 @@ def _delete_file_v1_files_file_id_delete_serialize(
602603

603604
# authentication setting
604605
_auth_settings: List[str] = [
606+
'ApiKeyAuth'
605607
]
606608

607609
return self.api_client.param_serialize(
@@ -882,6 +884,7 @@ def _get_file_content_v1_files_file_id_content_get_serialize(
882884

883885
# authentication setting
884886
_auth_settings: List[str] = [
887+
'ApiKeyAuth'
885888
]
886889

887890
return self.api_client.param_serialize(
@@ -1162,6 +1165,7 @@ def _get_file_v1_files_file_id_get_serialize(
11621165

11631166
# authentication setting
11641167
_auth_settings: List[str] = [
1168+
'ApiKeyAuth'
11651169
]
11661170

11671171
return self.api_client.param_serialize(
@@ -1444,6 +1448,7 @@ def _list_files_v1_files_get_serialize(
14441448

14451449
# authentication setting
14461450
_auth_settings: List[str] = [
1451+
'ApiKeyAuth'
14471452
]
14481453

14491454
return self.api_client.param_serialize(

src/otari/_client/api/images_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ def _create_image_v1_images_generations_post_serialize(
292292

293293
# authentication setting
294294
_auth_settings: List[str] = [
295+
'ApiKeyAuth'
295296
]
296297

297298
return self.api_client.param_serialize(

src/otari/_client/api/keys_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ def _create_key_v1_keys_post_serialize(
297297

298298
# authentication setting
299299
_auth_settings: List[str] = [
300+
'ApiKeyAuth'
300301
]
301302

302303
return self.api_client.param_serialize(
@@ -560,6 +561,7 @@ def _delete_key_v1_keys_key_id_delete_serialize(
560561

561562
# authentication setting
562563
_auth_settings: List[str] = [
564+
'ApiKeyAuth'
563565
]
564566

565567
return self.api_client.param_serialize(
@@ -823,6 +825,7 @@ def _get_key_v1_keys_key_id_get_serialize(
823825

824826
# authentication setting
825827
_auth_settings: List[str] = [
828+
'ApiKeyAuth'
826829
]
827830

828831
return self.api_client.param_serialize(
@@ -1105,6 +1108,7 @@ def _list_keys_v1_keys_get_serialize(
11051108

11061109
# authentication setting
11071110
_auth_settings: List[str] = [
1111+
'ApiKeyAuth'
11081112
]
11091113

11101114
return self.api_client.param_serialize(
@@ -1396,6 +1400,7 @@ def _update_key_v1_keys_key_id_patch_serialize(
13961400

13971401
# authentication setting
13981402
_auth_settings: List[str] = [
1403+
'ApiKeyAuth'
13991404
]
14001405

14011406
return self.api_client.param_serialize(

src/otari/_client/api/messages_api.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def count_message_tokens_v1_messages_count_tokens_post(
5757
) -> CountTokensResponse:
5858
"""Count Message Tokens
5959
60-
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.
60+
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.
6161
6262
:param count_tokens_request: (required)
6363
:type count_tokens_request: CountTokensRequest
@@ -125,7 +125,7 @@ def count_message_tokens_v1_messages_count_tokens_post_with_http_info(
125125
) -> ApiResponse[CountTokensResponse]:
126126
"""Count Message Tokens
127127
128-
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.
128+
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.
129129
130130
:param count_tokens_request: (required)
131131
:type count_tokens_request: CountTokensRequest
@@ -193,7 +193,7 @@ def count_message_tokens_v1_messages_count_tokens_post_without_preload_content(
193193
) -> RESTResponseType:
194194
"""Count Message Tokens
195195
196-
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.
196+
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.
197197
198198
:param count_tokens_request: (required)
199199
:type count_tokens_request: CountTokensRequest
@@ -294,6 +294,7 @@ def _count_message_tokens_v1_messages_count_tokens_post_serialize(
294294

295295
# authentication setting
296296
_auth_settings: List[str] = [
297+
'ApiKeyAuth'
297298
]
298299

299300
return self.api_client.param_serialize(
@@ -333,7 +334,7 @@ def create_message_v1_messages_post(
333334
) -> MessageResponse:
334335
"""Create Message
335336
336-
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.
337+
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.
337338
338339
:param messages_request: (required)
339340
:type messages_request: MessagesRequest
@@ -401,7 +402,7 @@ def create_message_v1_messages_post_with_http_info(
401402
) -> ApiResponse[MessageResponse]:
402403
"""Create Message
403404
404-
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.
405+
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.
405406
406407
:param messages_request: (required)
407408
:type messages_request: MessagesRequest
@@ -469,7 +470,7 @@ def create_message_v1_messages_post_without_preload_content(
469470
) -> RESTResponseType:
470471
"""Create Message
471472
472-
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.
473+
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.
473474
474475
:param messages_request: (required)
475476
:type messages_request: MessagesRequest
@@ -570,6 +571,7 @@ def _create_message_v1_messages_post_serialize(
570571

571572
# authentication setting
572573
_auth_settings: List[str] = [
574+
'ApiKeyAuth'
573575
]
574576

575577
return self.api_client.param_serialize(

0 commit comments

Comments
 (0)