diff --git a/src/otari/_client/__init__.py b/src/otari/_client/__init__.py index 035880b..63d6875 100644 --- a/src/otari/_client/__init__.py +++ b/src/otari/_client/__init__.py @@ -7,7 +7,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -77,6 +77,7 @@ "ChatCompletion", "ChatCompletionChunk", "ChatCompletionRequest", + "ChatCompletionRequestToolsInner", "ChatMessageInput", "Content", "Content1", @@ -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 diff --git a/src/otari/_client/_spec_version.py b/src/otari/_client/_spec_version.py index cdc514d..caed5dc 100644 --- a/src/otari/_client/_spec_version.py +++ b/src/otari/_client/_spec_version.py @@ -1 +1 @@ -__spec_version__ = "0.0.0-dev" +__spec_version__ = "0.2.0" diff --git a/src/otari/_client/api/audio_api.py b/src/otari/_client/api/audio_api.py index 6f3d93e..b92b402 100644 --- a/src/otari/_client/api/audio_api.py +++ b/src/otari/_client/api/audio_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/batches_api.py b/src/otari/_client/api/batches_api.py index 7de0059..0d80ae9 100644 --- a/src/otari/_client/api/batches_api.py +++ b/src/otari/_client/api/batches_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/budgets_api.py b/src/otari/_client/api/budgets_api.py index a84ade2..086fbdc 100644 --- a/src/otari/_client/api/budgets_api.py +++ b/src/otari/_client/api/budgets_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/chat_api.py b/src/otari/_client/api/chat_api.py index f628a2e..e315e31 100644 --- a/src/otari/_client/api/chat_api.py +++ b/src/otari/_client/api/chat_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/embeddings_api.py b/src/otari/_client/api/embeddings_api.py index cae5575..f8e631a 100644 --- a/src/otari/_client/api/embeddings_api.py +++ b/src/otari/_client/api/embeddings_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/files_api.py b/src/otari/_client/api/files_api.py index 436f36f..e10b293 100644 --- a/src/otari/_client/api/files_api.py +++ b/src/otari/_client/api/files_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/health_api.py b/src/otari/_client/api/health_api.py index 669c1ca..a8ed5b0 100644 --- a/src/otari/_client/api/health_api.py +++ b/src/otari/_client/api/health_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/images_api.py b/src/otari/_client/api/images_api.py index 6cfb870..c8cf29e 100644 --- a/src/otari/_client/api/images_api.py +++ b/src/otari/_client/api/images_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/keys_api.py b/src/otari/_client/api/keys_api.py index f56483f..e4dac06 100644 --- a/src/otari/_client/api/keys_api.py +++ b/src/otari/_client/api/keys_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/messages_api.py b/src/otari/_client/api/messages_api.py index 5044b01..08086fb 100644 --- a/src/otari/_client/api/messages_api.py +++ b/src/otari/_client/api/messages_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -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 @@ -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 @@ -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 @@ -333,7 +333,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 @@ -401,7 +401,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 @@ -469,7 +469,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 diff --git a/src/otari/_client/api/models_api.py b/src/otari/_client/api/models_api.py index 9dada8b..e9670fc 100644 --- a/src/otari/_client/api/models_api.py +++ b/src/otari/_client/api/models_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/moderations_api.py b/src/otari/_client/api/moderations_api.py index b5359c7..9a2dbf5 100644 --- a/src/otari/_client/api/moderations_api.py +++ b/src/otari/_client/api/moderations_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/pricing_api.py b/src/otari/_client/api/pricing_api.py index 89935f2..504806e 100644 --- a/src/otari/_client/api/pricing_api.py +++ b/src/otari/_client/api/pricing_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/rerank_api.py b/src/otari/_client/api/rerank_api.py index 13e2d00..6b744f6 100644 --- a/src/otari/_client/api/rerank_api.py +++ b/src/otari/_client/api/rerank_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/responses_api.py b/src/otari/_client/api/responses_api.py index 330d110..f38c2e6 100644 --- a/src/otari/_client/api/responses_api.py +++ b/src/otari/_client/api/responses_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -55,7 +55,7 @@ def create_response_v1_responses_post( ) -> object: """Create Response - OpenAI-compatible Responses 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. + OpenAI-compatible Responses 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 responses_request: (required) :type responses_request: ResponsesRequest @@ -123,7 +123,7 @@ def create_response_v1_responses_post_with_http_info( ) -> ApiResponse[object]: """Create Response - OpenAI-compatible Responses 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. + OpenAI-compatible Responses 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 responses_request: (required) :type responses_request: ResponsesRequest @@ -191,7 +191,7 @@ def create_response_v1_responses_post_without_preload_content( ) -> RESTResponseType: """Create Response - OpenAI-compatible Responses 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. + OpenAI-compatible Responses 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 responses_request: (required) :type responses_request: ResponsesRequest diff --git a/src/otari/_client/api/usage_api.py b/src/otari/_client/api/usage_api.py index ae174f6..471dc69 100644 --- a/src/otari/_client/api/usage_api.py +++ b/src/otari/_client/api/usage_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/users_api.py b/src/otari/_client/api/users_api.py index dff3cde..a484d74 100644 --- a/src/otari/_client/api/users_api.py +++ b/src/otari/_client/api/users_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api_client.py b/src/otari/_client/api_client.py index 1906753..1adbb13 100644 --- a/src/otari/_client/api_client.py +++ b/src/otari/_client/api_client.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/configuration.py b/src/otari/_client/configuration.py index dac0797..08b3656 100644 --- a/src/otari/_client/configuration.py +++ b/src/otari/_client/configuration.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -523,7 +523,7 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 0.0.0-dev\n"\ + "Version of the API: 0.2.0\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/src/otari/_client/exceptions.py b/src/otari/_client/exceptions.py index 60f1842..b97851d 100644 --- a/src/otari/_client/exceptions.py +++ b/src/otari/_client/exceptions.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/__init__.py b/src/otari/_client/models/__init__.py index 371ba6f..6b8df73 100644 --- a/src/otari/_client/models/__init__.py +++ b/src/otari/_client/models/__init__.py @@ -6,7 +6,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -46,6 +46,7 @@ from otari._client.models.chat_completion import ChatCompletion from otari._client.models.chat_completion_chunk import ChatCompletionChunk from otari._client.models.chat_completion_request import ChatCompletionRequest +from otari._client.models.chat_completion_request_tools_inner import ChatCompletionRequestToolsInner from otari._client.models.chat_message_input import ChatMessageInput from otari._client.models.content import Content from otari._client.models.content1 import Content1 diff --git a/src/otari/_client/models/audio_speech_request.py b/src/otari/_client/models/audio_speech_request.py index d4bb85e..1963202 100644 --- a/src/otari/_client/models/audio_speech_request.py +++ b/src/otari/_client/models/audio_speech_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/batch_request_item.py b/src/otari/_client/models/batch_request_item.py index 1bfd5a9..7384998 100644 --- a/src/otari/_client/models/batch_request_item.py +++ b/src/otari/_client/models/batch_request_item.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/budget_response.py b/src/otari/_client/models/budget_response.py index d96a9cf..4014a27 100644 --- a/src/otari/_client/models/budget_response.py +++ b/src/otari/_client/models/budget_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/caller.py b/src/otari/_client/models/caller.py index 5e2cd83..1120e80 100644 --- a/src/otari/_client/models/caller.py +++ b/src/otari/_client/models/caller.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cc_chat_completion_audio.py b/src/otari/_client/models/cc_chat_completion_audio.py index 05b0623..068febd 100644 --- a/src/otari/_client/models/cc_chat_completion_audio.py +++ b/src/otari/_client/models/cc_chat_completion_audio.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cc_chat_completion_message.py b/src/otari/_client/models/cc_chat_completion_message.py index 1590978..f6fe2e2 100644 --- a/src/otari/_client/models/cc_chat_completion_message.py +++ b/src/otari/_client/models/cc_chat_completion_message.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cc_chat_completion_message_custom_tool_call.py b/src/otari/_client/models/cc_chat_completion_message_custom_tool_call.py index 170020d..4e94a90 100644 --- a/src/otari/_client/models/cc_chat_completion_message_custom_tool_call.py +++ b/src/otari/_client/models/cc_chat_completion_message_custom_tool_call.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cc_chat_completion_message_function_tool_call.py b/src/otari/_client/models/cc_chat_completion_message_function_tool_call.py index 89b94a4..d148e02 100644 --- a/src/otari/_client/models/cc_chat_completion_message_function_tool_call.py +++ b/src/otari/_client/models/cc_chat_completion_message_function_tool_call.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cc_chat_completion_message_tool_calls_inner.py b/src/otari/_client/models/cc_chat_completion_message_tool_calls_inner.py index 5409aa0..bf1bbe0 100644 --- a/src/otari/_client/models/cc_chat_completion_message_tool_calls_inner.py +++ b/src/otari/_client/models/cc_chat_completion_message_tool_calls_inner.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cc_chat_completion_token_logprob.py b/src/otari/_client/models/cc_chat_completion_token_logprob.py index 1608033..ed48b37 100644 --- a/src/otari/_client/models/cc_chat_completion_token_logprob.py +++ b/src/otari/_client/models/cc_chat_completion_token_logprob.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cc_choice.py b/src/otari/_client/models/cc_choice.py index 9c97311..0f4e27b 100644 --- a/src/otari/_client/models/cc_choice.py +++ b/src/otari/_client/models/cc_choice.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cc_choice_logprobs.py b/src/otari/_client/models/cc_choice_logprobs.py index 48ec8d8..8e6cadf 100644 --- a/src/otari/_client/models/cc_choice_logprobs.py +++ b/src/otari/_client/models/cc_choice_logprobs.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cc_completion_tokens_details.py b/src/otari/_client/models/cc_completion_tokens_details.py index 3835562..3e00613 100644 --- a/src/otari/_client/models/cc_completion_tokens_details.py +++ b/src/otari/_client/models/cc_completion_tokens_details.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cc_completion_usage.py b/src/otari/_client/models/cc_completion_usage.py index fa7f7eb..1e04376 100644 --- a/src/otari/_client/models/cc_completion_usage.py +++ b/src/otari/_client/models/cc_completion_usage.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cc_custom.py b/src/otari/_client/models/cc_custom.py index 952bfce..3984cf6 100644 --- a/src/otari/_client/models/cc_custom.py +++ b/src/otari/_client/models/cc_custom.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cc_function.py b/src/otari/_client/models/cc_function.py index 28f4e3b..93616c7 100644 --- a/src/otari/_client/models/cc_function.py +++ b/src/otari/_client/models/cc_function.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cc_function_call.py b/src/otari/_client/models/cc_function_call.py index 7e6621a..4a29a9b 100644 --- a/src/otari/_client/models/cc_function_call.py +++ b/src/otari/_client/models/cc_function_call.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cc_prompt_tokens_details.py b/src/otari/_client/models/cc_prompt_tokens_details.py index 77fbd52..aa9d1ac 100644 --- a/src/otari/_client/models/cc_prompt_tokens_details.py +++ b/src/otari/_client/models/cc_prompt_tokens_details.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cc_top_logprob.py b/src/otari/_client/models/cc_top_logprob.py index 07b46ae..c5f6778 100644 --- a/src/otari/_client/models/cc_top_logprob.py +++ b/src/otari/_client/models/cc_top_logprob.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cck_chat_completion_token_logprob.py b/src/otari/_client/models/cck_chat_completion_token_logprob.py index d745840..0587589 100644 --- a/src/otari/_client/models/cck_chat_completion_token_logprob.py +++ b/src/otari/_client/models/cck_chat_completion_token_logprob.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cck_choice_delta.py b/src/otari/_client/models/cck_choice_delta.py index ebdb11d..5717463 100644 --- a/src/otari/_client/models/cck_choice_delta.py +++ b/src/otari/_client/models/cck_choice_delta.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cck_choice_delta_function_call.py b/src/otari/_client/models/cck_choice_delta_function_call.py index c9d4b0f..d616200 100644 --- a/src/otari/_client/models/cck_choice_delta_function_call.py +++ b/src/otari/_client/models/cck_choice_delta_function_call.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cck_choice_delta_tool_call.py b/src/otari/_client/models/cck_choice_delta_tool_call.py index 424165a..af94db8 100644 --- a/src/otari/_client/models/cck_choice_delta_tool_call.py +++ b/src/otari/_client/models/cck_choice_delta_tool_call.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cck_choice_delta_tool_call_function.py b/src/otari/_client/models/cck_choice_delta_tool_call_function.py index 322e1db..8557f26 100644 --- a/src/otari/_client/models/cck_choice_delta_tool_call_function.py +++ b/src/otari/_client/models/cck_choice_delta_tool_call_function.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cck_choice_logprobs.py b/src/otari/_client/models/cck_choice_logprobs.py index f29fd85..729c30c 100644 --- a/src/otari/_client/models/cck_choice_logprobs.py +++ b/src/otari/_client/models/cck_choice_logprobs.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cck_chunk_choice.py b/src/otari/_client/models/cck_chunk_choice.py index ce33628..24a3afd 100644 --- a/src/otari/_client/models/cck_chunk_choice.py +++ b/src/otari/_client/models/cck_chunk_choice.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cck_completion_tokens_details.py b/src/otari/_client/models/cck_completion_tokens_details.py index 1650fae..e7c49b3 100644 --- a/src/otari/_client/models/cck_completion_tokens_details.py +++ b/src/otari/_client/models/cck_completion_tokens_details.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cck_completion_usage.py b/src/otari/_client/models/cck_completion_usage.py index be68c7e..724664d 100644 --- a/src/otari/_client/models/cck_completion_usage.py +++ b/src/otari/_client/models/cck_completion_usage.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cck_prompt_tokens_details.py b/src/otari/_client/models/cck_prompt_tokens_details.py index 4918365..a4c80a7 100644 --- a/src/otari/_client/models/cck_prompt_tokens_details.py +++ b/src/otari/_client/models/cck_prompt_tokens_details.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cck_top_logprob.py b/src/otari/_client/models/cck_top_logprob.py index cd28e2f..439bbfe 100644 --- a/src/otari/_client/models/cck_top_logprob.py +++ b/src/otari/_client/models/cck_top_logprob.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/chat_completion.py b/src/otari/_client/models/chat_completion.py index 228adfa..c247705 100644 --- a/src/otari/_client/models/chat_completion.py +++ b/src/otari/_client/models/chat_completion.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/chat_completion_chunk.py b/src/otari/_client/models/chat_completion_chunk.py index 1650b2d..5da2c4d 100644 --- a/src/otari/_client/models/chat_completion_chunk.py +++ b/src/otari/_client/models/chat_completion_chunk.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/chat_completion_request.py b/src/otari/_client/models/chat_completion_request.py index 9c81777..29dde16 100644 --- a/src/otari/_client/models/chat_completion_request.py +++ b/src/otari/_client/models/chat_completion_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from uuid import UUID +from otari._client.models.chat_completion_request_tools_inner import ChatCompletionRequestToolsInner from otari._client.models.chat_message_input import ChatMessageInput from otari._client.models.guardrail_config import GuardrailConfig from otari._client.models.mcp_server_config import McpServerConfig @@ -51,17 +52,18 @@ class ChatCompletionRequest(BaseModel): reasoning_effort: Optional[StrictStr] = None response_format: Optional[Dict[str, Any]] = None seed: Optional[StrictInt] = None + session_label: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="Optional caller-supplied label for cost attribution (per run, experiment, or conversation). In hybrid mode it is forwarded onto the platform usage report so spend can be sliced by session without standing up OpenTelemetry. Stripped before the request is forwarded upstream to the provider. Has no effect in standalone mode, where there is no platform to report it to.") stop: Optional[Stop] = None stream: Optional[StrictBool] = False stream_options: Optional[Dict[str, Any]] = None temperature: Optional[Union[StrictFloat, StrictInt]] = None tool_choice: Optional[ToolChoice] = None - tools: Optional[List[Optional[Dict[str, Any]]]] = None + tools: Optional[List[ChatCompletionRequestToolsInner]] = None tools_header: Optional[Annotated[str, Field(strict=True, max_length=4000)]] = Field(default=None, description="Optional override for the lead-in that the gateway prepends before the per-tool hint block in the system message. Useful for expressing global tool-selection policy (e.g. 'prefer MCP tools over code_execution'). Falls back to OTARI_TOOLS_HEADER env, then to the built-in default.") top_logprobs: Optional[StrictInt] = None top_p: Optional[Union[StrictFloat, StrictInt]] = None user: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["frequency_penalty", "guardrails", "logit_bias", "logprobs", "max_completion_tokens", "max_tokens", "max_tool_iterations", "mcp_server_ids", "mcp_servers", "messages", "model", "n", "parallel_tool_calls", "presence_penalty", "reasoning_effort", "response_format", "seed", "stop", "stream", "stream_options", "temperature", "tool_choice", "tools", "tools_header", "top_logprobs", "top_p", "user"] + __properties: ClassVar[List[str]] = ["frequency_penalty", "guardrails", "logit_bias", "logprobs", "max_completion_tokens", "max_tokens", "max_tool_iterations", "mcp_server_ids", "mcp_servers", "messages", "model", "n", "parallel_tool_calls", "presence_penalty", "reasoning_effort", "response_format", "seed", "session_label", "stop", "stream", "stream_options", "temperature", "tool_choice", "tools", "tools_header", "top_logprobs", "top_p", "user"] @field_validator('reasoning_effort') def reasoning_effort_validate_enum(cls, value): @@ -139,6 +141,13 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of tool_choice if self.tool_choice: _dict['tool_choice'] = self.tool_choice.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in tools (list) + _items = [] + if self.tools: + for _item_tools in self.tools: + if _item_tools: + _items.append(_item_tools.to_dict()) + _dict['tools'] = _items # set to None if frequency_penalty (nullable) is None # and model_fields_set contains the field if self.frequency_penalty is None and "frequency_penalty" in self.model_fields_set: @@ -214,6 +223,11 @@ def to_dict(self) -> Dict[str, Any]: if self.seed is None and "seed" in self.model_fields_set: _dict['seed'] = None + # set to None if session_label (nullable) is None + # and model_fields_set contains the field + if self.session_label is None and "session_label" in self.model_fields_set: + _dict['session_label'] = None + # set to None if stop (nullable) is None # and model_fields_set contains the field if self.stop is None and "stop" in self.model_fields_set: @@ -288,12 +302,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "reasoning_effort": obj.get("reasoning_effort"), "response_format": obj.get("response_format"), "seed": obj.get("seed"), + "session_label": obj.get("session_label"), "stop": Stop.from_dict(obj["stop"]) if obj.get("stop") is not None else None, "stream": obj.get("stream") if obj.get("stream") is not None else False, "stream_options": obj.get("stream_options"), "temperature": obj.get("temperature"), "tool_choice": ToolChoice.from_dict(obj["tool_choice"]) if obj.get("tool_choice") is not None else None, - "tools": obj.get("tools"), + "tools": [ChatCompletionRequestToolsInner.from_dict(_item) for _item in obj["tools"]] if obj.get("tools") is not None else None, "tools_header": obj.get("tools_header"), "top_logprobs": obj.get("top_logprobs"), "top_p": obj.get("top_p"), diff --git a/src/otari/_client/models/chat_completion_request_tools_inner.py b/src/otari/_client/models/chat_completion_request_tools_inner.py new file mode 100644 index 0000000..bb01a2c --- /dev/null +++ b/src/otari/_client/models/chat_completion_request_tools_inner.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.2.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, Dict, Optional +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +CHATCOMPLETIONREQUESTTOOLSINNER_ANY_OF_SCHEMAS = ["Dict[str, object]"] + +class ChatCompletionRequestToolsInner(BaseModel): + """ + ChatCompletionRequestToolsInner + """ + + # data type: Dict[str, object] + anyof_schema_1_validator: Optional[Dict[str, Any]] = None + # data type: Dict[str, object] + anyof_schema_2_validator: Optional[Dict[str, Any]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[Dict[str, object]]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "Dict[str, object]" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = ChatCompletionRequestToolsInner.model_construct() + error_messages = [] + # validate data type: Dict[str, object] + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: Dict[str, object] + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in ChatCompletionRequestToolsInner with anyOf schemas: Dict[str, object]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into Dict[str, object] + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Dict[str, object] + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into ChatCompletionRequestToolsInner with anyOf schemas: Dict[str, object]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], Dict[str, object]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/src/otari/_client/models/chat_message_input.py b/src/otari/_client/models/chat_message_input.py index 293271c..46fffec 100644 --- a/src/otari/_client/models/chat_message_input.py +++ b/src/otari/_client/models/chat_message_input.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content.py b/src/otari/_client/models/content.py index e82740d..63dd5fa 100644 --- a/src/otari/_client/models/content.py +++ b/src/otari/_client/models/content.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content1.py b/src/otari/_client/models/content1.py index 621772b..3a28f45 100644 --- a/src/otari/_client/models/content1.py +++ b/src/otari/_client/models/content1.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content2.py b/src/otari/_client/models/content2.py index bcfe5c0..65ccb6b 100644 --- a/src/otari/_client/models/content2.py +++ b/src/otari/_client/models/content2.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content2_any_of_inner.py b/src/otari/_client/models/content2_any_of_inner.py index ac41fe0..7088e24 100644 --- a/src/otari/_client/models/content2_any_of_inner.py +++ b/src/otari/_client/models/content2_any_of_inner.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content3.py b/src/otari/_client/models/content3.py index ad18554..3c2d5f5 100644 --- a/src/otari/_client/models/content3.py +++ b/src/otari/_client/models/content3.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content4.py b/src/otari/_client/models/content4.py index 141f1fa..a5365c6 100644 --- a/src/otari/_client/models/content4.py +++ b/src/otari/_client/models/content4.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content5.py b/src/otari/_client/models/content5.py index fca05cf..d3ab537 100644 --- a/src/otari/_client/models/content5.py +++ b/src/otari/_client/models/content5.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content6.py b/src/otari/_client/models/content6.py index b070cb1..b9a240b 100644 --- a/src/otari/_client/models/content6.py +++ b/src/otari/_client/models/content6.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content7.py b/src/otari/_client/models/content7.py index 00dac32..b71191d 100644 --- a/src/otari/_client/models/content7.py +++ b/src/otari/_client/models/content7.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content8.py b/src/otari/_client/models/content8.py index 912ede7..2071872 100644 --- a/src/otari/_client/models/content8.py +++ b/src/otari/_client/models/content8.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content9_inner.py b/src/otari/_client/models/content9_inner.py index c3291fe..5c9117f 100644 --- a/src/otari/_client/models/content9_inner.py +++ b/src/otari/_client/models/content9_inner.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content_any_of_inner.py b/src/otari/_client/models/content_any_of_inner.py index 190701b..a540864 100644 --- a/src/otari/_client/models/content_any_of_inner.py +++ b/src/otari/_client/models/content_any_of_inner.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/conversation.py b/src/otari/_client/models/conversation.py index a74b39b..4c178ad 100644 --- a/src/otari/_client/models/conversation.py +++ b/src/otari/_client/models/conversation.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/count_tokens_request.py b/src/otari/_client/models/count_tokens_request.py index e331db5..5a78775 100644 --- a/src/otari/_client/models/count_tokens_request.py +++ b/src/otari/_client/models/count_tokens_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/count_tokens_response.py b/src/otari/_client/models/count_tokens_response.py index 744ad13..12420fd 100644 --- a/src/otari/_client/models/count_tokens_response.py +++ b/src/otari/_client/models/count_tokens_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/create_batch_request.py b/src/otari/_client/models/create_batch_request.py index 63571ef..889b0cf 100644 --- a/src/otari/_client/models/create_batch_request.py +++ b/src/otari/_client/models/create_batch_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/create_budget_request.py b/src/otari/_client/models/create_budget_request.py index 25512a2..cad4c35 100644 --- a/src/otari/_client/models/create_budget_request.py +++ b/src/otari/_client/models/create_budget_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/create_embedding_response.py b/src/otari/_client/models/create_embedding_response.py index 7af7334..97a4df5 100644 --- a/src/otari/_client/models/create_embedding_response.py +++ b/src/otari/_client/models/create_embedding_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/create_key_request.py b/src/otari/_client/models/create_key_request.py index c43a498..93bf9c0 100644 --- a/src/otari/_client/models/create_key_request.py +++ b/src/otari/_client/models/create_key_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/create_key_response.py b/src/otari/_client/models/create_key_response.py index f94f286..f6df06e 100644 --- a/src/otari/_client/models/create_key_response.py +++ b/src/otari/_client/models/create_key_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/create_user_request.py b/src/otari/_client/models/create_user_request.py index 168bd9a..bbae004 100644 --- a/src/otari/_client/models/create_user_request.py +++ b/src/otari/_client/models/create_user_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/emb_embedding.py b/src/otari/_client/models/emb_embedding.py index e5af620..2775940 100644 --- a/src/otari/_client/models/emb_embedding.py +++ b/src/otari/_client/models/emb_embedding.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/emb_usage.py b/src/otari/_client/models/emb_usage.py index bbb1871..224ffb9 100644 --- a/src/otari/_client/models/emb_usage.py +++ b/src/otari/_client/models/emb_usage.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/embedding_request.py b/src/otari/_client/models/embedding_request.py index 1e8dc68..67f8f7e 100644 --- a/src/otari/_client/models/embedding_request.py +++ b/src/otari/_client/models/embedding_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/guardrail_config.py b/src/otari/_client/models/guardrail_config.py index f6a9560..19b4743 100644 --- a/src/otari/_client/models/guardrail_config.py +++ b/src/otari/_client/models/guardrail_config.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/http_validation_error.py b/src/otari/_client/models/http_validation_error.py index 7316871..5cc1bb2 100644 --- a/src/otari/_client/models/http_validation_error.py +++ b/src/otari/_client/models/http_validation_error.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/image_generation_request.py b/src/otari/_client/models/image_generation_request.py index 84ffe0e..f5f89ca 100644 --- a/src/otari/_client/models/image_generation_request.py +++ b/src/otari/_client/models/image_generation_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/images_response.py b/src/otari/_client/models/images_response.py index 0af3d89..c870cbd 100644 --- a/src/otari/_client/models/images_response.py +++ b/src/otari/_client/models/images_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/img_image.py b/src/otari/_client/models/img_image.py index 1b824a0..883b1f2 100644 --- a/src/otari/_client/models/img_image.py +++ b/src/otari/_client/models/img_image.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/img_usage.py b/src/otari/_client/models/img_usage.py index a3d9bd1..2755c1b 100644 --- a/src/otari/_client/models/img_usage.py +++ b/src/otari/_client/models/img_usage.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/img_usage_input_tokens_details.py b/src/otari/_client/models/img_usage_input_tokens_details.py index 50e5876..9064d32 100644 --- a/src/otari/_client/models/img_usage_input_tokens_details.py +++ b/src/otari/_client/models/img_usage_input_tokens_details.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/img_usage_output_tokens_details.py b/src/otari/_client/models/img_usage_output_tokens_details.py index 762b237..a19259e 100644 --- a/src/otari/_client/models/img_usage_output_tokens_details.py +++ b/src/otari/_client/models/img_usage_output_tokens_details.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/input.py b/src/otari/_client/models/input.py index 9ec3ecf..f8e328a 100644 --- a/src/otari/_client/models/input.py +++ b/src/otari/_client/models/input.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/input1.py b/src/otari/_client/models/input1.py index 0c733ae..6d5c542 100644 --- a/src/otari/_client/models/input1.py +++ b/src/otari/_client/models/input1.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/key_info.py b/src/otari/_client/models/key_info.py index b3f52f3..348cd76 100644 --- a/src/otari/_client/models/key_info.py +++ b/src/otari/_client/models/key_info.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/location_inner.py b/src/otari/_client/models/location_inner.py index da39cc0..17e2752 100644 --- a/src/otari/_client/models/location_inner.py +++ b/src/otari/_client/models/location_inner.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mcp_server_config.py b/src/otari/_client/models/mcp_server_config.py index f1f286c..ff180e9 100644 --- a/src/otari/_client/models/mcp_server_config.py +++ b/src/otari/_client/models/mcp_server_config.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/message_response.py b/src/otari/_client/models/message_response.py index 601cc00..bf9f5d4 100644 --- a/src/otari/_client/models/message_response.py +++ b/src/otari/_client/models/message_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/messages_request.py b/src/otari/_client/models/messages_request.py index 2722a39..d62cca7 100644 --- a/src/otari/_client/models/messages_request.py +++ b/src/otari/_client/models/messages_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -41,6 +41,7 @@ class MessagesRequest(BaseModel): messages: Annotated[List[Dict[str, Any]], Field(min_length=1)] metadata: Optional[Dict[str, Any]] = None model: StrictStr + session_label: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="Optional caller-supplied label for cost attribution (per run, experiment, or conversation). In hybrid mode it is forwarded onto the platform usage report so spend can be sliced by session without standing up OpenTelemetry. Stripped before the request is forwarded upstream to the provider. Has no effect in standalone mode, where there is no platform to report it to.") stop_sequences: Optional[List[StrictStr]] = None stream: Optional[StrictBool] = False system: Optional[System] = None @@ -51,7 +52,7 @@ class MessagesRequest(BaseModel): tools_header: Optional[StrictStr] = None top_k: Optional[StrictInt] = None top_p: Optional[Union[StrictFloat, StrictInt]] = None - __properties: ClassVar[List[str]] = ["cache_control", "guardrails", "max_tokens", "max_tool_iterations", "mcp_server_ids", "mcp_servers", "messages", "metadata", "model", "stop_sequences", "stream", "system", "temperature", "thinking", "tool_choice", "tools", "tools_header", "top_k", "top_p"] + __properties: ClassVar[List[str]] = ["cache_control", "guardrails", "max_tokens", "max_tool_iterations", "mcp_server_ids", "mcp_servers", "messages", "metadata", "model", "session_label", "stop_sequences", "stream", "system", "temperature", "thinking", "tool_choice", "tools", "tools_header", "top_k", "top_p"] model_config = ConfigDict( validate_by_name=True, @@ -139,6 +140,11 @@ def to_dict(self) -> Dict[str, Any]: if self.metadata is None and "metadata" in self.model_fields_set: _dict['metadata'] = None + # set to None if session_label (nullable) is None + # and model_fields_set contains the field + if self.session_label is None and "session_label" in self.model_fields_set: + _dict['session_label'] = None + # set to None if stop_sequences (nullable) is None # and model_fields_set contains the field if self.stop_sequences is None and "stop_sequences" in self.model_fields_set: @@ -205,6 +211,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "messages": obj.get("messages"), "metadata": obj.get("metadata"), "model": obj.get("model"), + "session_label": obj.get("session_label"), "stop_sequences": obj.get("stop_sequences"), "stream": obj.get("stream") if obj.get("stream") is not None else False, "system": System.from_dict(obj["system"]) if obj.get("system") is not None else None, diff --git a/src/otari/_client/models/model.py b/src/otari/_client/models/model.py index b4ccbbb..093b87a 100644 --- a/src/otari/_client/models/model.py +++ b/src/otari/_client/models/model.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/model_list_response.py b/src/otari/_client/models/model_list_response.py index 3dfaaf5..c0e2151 100644 --- a/src/otari/_client/models/model_list_response.py +++ b/src/otari/_client/models/model_list_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/model_object.py b/src/otari/_client/models/model_object.py index c96fa7f..ba61a3e 100644 --- a/src/otari/_client/models/model_object.py +++ b/src/otari/_client/models/model_object.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/model_pricing_info.py b/src/otari/_client/models/model_pricing_info.py index 12f67e1..398499a 100644 --- a/src/otari/_client/models/model_pricing_info.py +++ b/src/otari/_client/models/model_pricing_info.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/moderation_request.py b/src/otari/_client/models/moderation_request.py index aded4b3..fb430b5 100644 --- a/src/otari/_client/models/moderation_request.py +++ b/src/otari/_client/models/moderation_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/moderation_response.py b/src/otari/_client/models/moderation_response.py index b1afb7b..895b7a2 100644 --- a/src/otari/_client/models/moderation_response.py +++ b/src/otari/_client/models/moderation_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/moderation_result.py b/src/otari/_client/models/moderation_result.py index aeeaaaf..875f8ec 100644 --- a/src/otari/_client/models/moderation_result.py +++ b/src/otari/_client/models/moderation_result.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_base64_pdf_source.py b/src/otari/_client/models/mr_base64_pdf_source.py index 4ca361b..b0187ec 100644 --- a/src/otari/_client/models/mr_base64_pdf_source.py +++ b/src/otari/_client/models/mr_base64_pdf_source.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_bash_code_execution_output_block.py b/src/otari/_client/models/mr_bash_code_execution_output_block.py index af44d3f..578ed77 100644 --- a/src/otari/_client/models/mr_bash_code_execution_output_block.py +++ b/src/otari/_client/models/mr_bash_code_execution_output_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_bash_code_execution_result_block.py b/src/otari/_client/models/mr_bash_code_execution_result_block.py index aab683a..61c16a9 100644 --- a/src/otari/_client/models/mr_bash_code_execution_result_block.py +++ b/src/otari/_client/models/mr_bash_code_execution_result_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_bash_code_execution_tool_result_block.py b/src/otari/_client/models/mr_bash_code_execution_tool_result_block.py index d4503ca..9758175 100644 --- a/src/otari/_client/models/mr_bash_code_execution_tool_result_block.py +++ b/src/otari/_client/models/mr_bash_code_execution_tool_result_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_bash_code_execution_tool_result_error.py b/src/otari/_client/models/mr_bash_code_execution_tool_result_error.py index 65ce09a..0df5b38 100644 --- a/src/otari/_client/models/mr_bash_code_execution_tool_result_error.py +++ b/src/otari/_client/models/mr_bash_code_execution_tool_result_error.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_cache_creation.py b/src/otari/_client/models/mr_cache_creation.py index c8702a3..20ac098 100644 --- a/src/otari/_client/models/mr_cache_creation.py +++ b/src/otari/_client/models/mr_cache_creation.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_citation_char_location.py b/src/otari/_client/models/mr_citation_char_location.py index 77ee819..f2d51e9 100644 --- a/src/otari/_client/models/mr_citation_char_location.py +++ b/src/otari/_client/models/mr_citation_char_location.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_citation_content_block_location.py b/src/otari/_client/models/mr_citation_content_block_location.py index 82a4130..2f5d63b 100644 --- a/src/otari/_client/models/mr_citation_content_block_location.py +++ b/src/otari/_client/models/mr_citation_content_block_location.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_citation_page_location.py b/src/otari/_client/models/mr_citation_page_location.py index a439b4d..922101d 100644 --- a/src/otari/_client/models/mr_citation_page_location.py +++ b/src/otari/_client/models/mr_citation_page_location.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_citations_config.py b/src/otari/_client/models/mr_citations_config.py index a8b0abc..20d7646 100644 --- a/src/otari/_client/models/mr_citations_config.py +++ b/src/otari/_client/models/mr_citations_config.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_citations_search_result_location.py b/src/otari/_client/models/mr_citations_search_result_location.py index c4000c5..4da8d36 100644 --- a/src/otari/_client/models/mr_citations_search_result_location.py +++ b/src/otari/_client/models/mr_citations_search_result_location.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_citations_web_search_result_location.py b/src/otari/_client/models/mr_citations_web_search_result_location.py index ccc3528..7c51fb8 100644 --- a/src/otari/_client/models/mr_citations_web_search_result_location.py +++ b/src/otari/_client/models/mr_citations_web_search_result_location.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_code_execution_output_block.py b/src/otari/_client/models/mr_code_execution_output_block.py index f1c4aac..1d9f531 100644 --- a/src/otari/_client/models/mr_code_execution_output_block.py +++ b/src/otari/_client/models/mr_code_execution_output_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_code_execution_result_block.py b/src/otari/_client/models/mr_code_execution_result_block.py index 2844b19..bc201c7 100644 --- a/src/otari/_client/models/mr_code_execution_result_block.py +++ b/src/otari/_client/models/mr_code_execution_result_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_code_execution_tool_result_block.py b/src/otari/_client/models/mr_code_execution_tool_result_block.py index 290943f..9e622e2 100644 --- a/src/otari/_client/models/mr_code_execution_tool_result_block.py +++ b/src/otari/_client/models/mr_code_execution_tool_result_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_code_execution_tool_result_error.py b/src/otari/_client/models/mr_code_execution_tool_result_error.py index c248d25..7139201 100644 --- a/src/otari/_client/models/mr_code_execution_tool_result_error.py +++ b/src/otari/_client/models/mr_code_execution_tool_result_error.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_container.py b/src/otari/_client/models/mr_container.py index 0f21e15..c822fa8 100644 --- a/src/otari/_client/models/mr_container.py +++ b/src/otari/_client/models/mr_container.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_container_upload_block.py b/src/otari/_client/models/mr_container_upload_block.py index 8d4af0e..3b68a99 100644 --- a/src/otari/_client/models/mr_container_upload_block.py +++ b/src/otari/_client/models/mr_container_upload_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_direct_caller.py b/src/otari/_client/models/mr_direct_caller.py index 82a65f8..7b11088 100644 --- a/src/otari/_client/models/mr_direct_caller.py +++ b/src/otari/_client/models/mr_direct_caller.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_document_block.py b/src/otari/_client/models/mr_document_block.py index a71948d..453bab4 100644 --- a/src/otari/_client/models/mr_document_block.py +++ b/src/otari/_client/models/mr_document_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_encrypted_code_execution_result_block.py b/src/otari/_client/models/mr_encrypted_code_execution_result_block.py index 0cd2288..fd2a84d 100644 --- a/src/otari/_client/models/mr_encrypted_code_execution_result_block.py +++ b/src/otari/_client/models/mr_encrypted_code_execution_result_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_plain_text_source.py b/src/otari/_client/models/mr_plain_text_source.py index 396af6d..9dc62f8 100644 --- a/src/otari/_client/models/mr_plain_text_source.py +++ b/src/otari/_client/models/mr_plain_text_source.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_redacted_thinking_block.py b/src/otari/_client/models/mr_redacted_thinking_block.py index 542c1fc..9a680c3 100644 --- a/src/otari/_client/models/mr_redacted_thinking_block.py +++ b/src/otari/_client/models/mr_redacted_thinking_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_refusal_stop_details.py b/src/otari/_client/models/mr_refusal_stop_details.py index 972ef18..a6e0972 100644 --- a/src/otari/_client/models/mr_refusal_stop_details.py +++ b/src/otari/_client/models/mr_refusal_stop_details.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_server_tool_caller.py b/src/otari/_client/models/mr_server_tool_caller.py index 335a283..9c9f2a9 100644 --- a/src/otari/_client/models/mr_server_tool_caller.py +++ b/src/otari/_client/models/mr_server_tool_caller.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_server_tool_caller20260120.py b/src/otari/_client/models/mr_server_tool_caller20260120.py index 7b52504..9c554db 100644 --- a/src/otari/_client/models/mr_server_tool_caller20260120.py +++ b/src/otari/_client/models/mr_server_tool_caller20260120.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_server_tool_usage.py b/src/otari/_client/models/mr_server_tool_usage.py index bfe86f6..0054ce9 100644 --- a/src/otari/_client/models/mr_server_tool_usage.py +++ b/src/otari/_client/models/mr_server_tool_usage.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_server_tool_use_block.py b/src/otari/_client/models/mr_server_tool_use_block.py index ffa270f..4c4f7f9 100644 --- a/src/otari/_client/models/mr_server_tool_use_block.py +++ b/src/otari/_client/models/mr_server_tool_use_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_text_block.py b/src/otari/_client/models/mr_text_block.py index 3f045bf..bbe64f5 100644 --- a/src/otari/_client/models/mr_text_block.py +++ b/src/otari/_client/models/mr_text_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_text_block_citations_inner.py b/src/otari/_client/models/mr_text_block_citations_inner.py index 344c631..1aebc93 100644 --- a/src/otari/_client/models/mr_text_block_citations_inner.py +++ b/src/otari/_client/models/mr_text_block_citations_inner.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_text_editor_code_execution_create_result_block.py b/src/otari/_client/models/mr_text_editor_code_execution_create_result_block.py index 1c879c0..3db5052 100644 --- a/src/otari/_client/models/mr_text_editor_code_execution_create_result_block.py +++ b/src/otari/_client/models/mr_text_editor_code_execution_create_result_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_text_editor_code_execution_str_replace_result_block.py b/src/otari/_client/models/mr_text_editor_code_execution_str_replace_result_block.py index 255c474..ea0c94e 100644 --- a/src/otari/_client/models/mr_text_editor_code_execution_str_replace_result_block.py +++ b/src/otari/_client/models/mr_text_editor_code_execution_str_replace_result_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_text_editor_code_execution_tool_result_block.py b/src/otari/_client/models/mr_text_editor_code_execution_tool_result_block.py index feba4d0..f3923c7 100644 --- a/src/otari/_client/models/mr_text_editor_code_execution_tool_result_block.py +++ b/src/otari/_client/models/mr_text_editor_code_execution_tool_result_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_text_editor_code_execution_tool_result_error.py b/src/otari/_client/models/mr_text_editor_code_execution_tool_result_error.py index b8630ed..670863c 100644 --- a/src/otari/_client/models/mr_text_editor_code_execution_tool_result_error.py +++ b/src/otari/_client/models/mr_text_editor_code_execution_tool_result_error.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_text_editor_code_execution_view_result_block.py b/src/otari/_client/models/mr_text_editor_code_execution_view_result_block.py index 19b1062..a25369b 100644 --- a/src/otari/_client/models/mr_text_editor_code_execution_view_result_block.py +++ b/src/otari/_client/models/mr_text_editor_code_execution_view_result_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_thinking_block.py b/src/otari/_client/models/mr_thinking_block.py index f228d93..c822365 100644 --- a/src/otari/_client/models/mr_thinking_block.py +++ b/src/otari/_client/models/mr_thinking_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_tool_reference_block.py b/src/otari/_client/models/mr_tool_reference_block.py index 5dfce59..ae7dd8a 100644 --- a/src/otari/_client/models/mr_tool_reference_block.py +++ b/src/otari/_client/models/mr_tool_reference_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_tool_search_tool_result_block.py b/src/otari/_client/models/mr_tool_search_tool_result_block.py index 843bc98..6396251 100644 --- a/src/otari/_client/models/mr_tool_search_tool_result_block.py +++ b/src/otari/_client/models/mr_tool_search_tool_result_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_tool_search_tool_result_error.py b/src/otari/_client/models/mr_tool_search_tool_result_error.py index 153e2ac..e517ec8 100644 --- a/src/otari/_client/models/mr_tool_search_tool_result_error.py +++ b/src/otari/_client/models/mr_tool_search_tool_result_error.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_tool_search_tool_search_result_block.py b/src/otari/_client/models/mr_tool_search_tool_search_result_block.py index 288f7a3..3e9ecd0 100644 --- a/src/otari/_client/models/mr_tool_search_tool_search_result_block.py +++ b/src/otari/_client/models/mr_tool_search_tool_search_result_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_tool_use_block.py b/src/otari/_client/models/mr_tool_use_block.py index 8c26f31..8320152 100644 --- a/src/otari/_client/models/mr_tool_use_block.py +++ b/src/otari/_client/models/mr_tool_use_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_usage.py b/src/otari/_client/models/mr_usage.py index c811895..10379df 100644 --- a/src/otari/_client/models/mr_usage.py +++ b/src/otari/_client/models/mr_usage.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_web_fetch_block.py b/src/otari/_client/models/mr_web_fetch_block.py index 4d5635c..5638ffd 100644 --- a/src/otari/_client/models/mr_web_fetch_block.py +++ b/src/otari/_client/models/mr_web_fetch_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_web_fetch_tool_result_block.py b/src/otari/_client/models/mr_web_fetch_tool_result_block.py index 4f0bc1b..20dc27e 100644 --- a/src/otari/_client/models/mr_web_fetch_tool_result_block.py +++ b/src/otari/_client/models/mr_web_fetch_tool_result_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_web_fetch_tool_result_error_block.py b/src/otari/_client/models/mr_web_fetch_tool_result_error_block.py index 7ab44a0..b83d6cd 100644 --- a/src/otari/_client/models/mr_web_fetch_tool_result_error_block.py +++ b/src/otari/_client/models/mr_web_fetch_tool_result_error_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_web_search_result_block.py b/src/otari/_client/models/mr_web_search_result_block.py index f044cce..4aa0038 100644 --- a/src/otari/_client/models/mr_web_search_result_block.py +++ b/src/otari/_client/models/mr_web_search_result_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_web_search_tool_result_block.py b/src/otari/_client/models/mr_web_search_tool_result_block.py index b69c985..f163c50 100644 --- a/src/otari/_client/models/mr_web_search_tool_result_block.py +++ b/src/otari/_client/models/mr_web_search_tool_result_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_web_search_tool_result_error.py b/src/otari/_client/models/mr_web_search_tool_result_error.py index 01a33f0..c29b5db 100644 --- a/src/otari/_client/models/mr_web_search_tool_result_error.py +++ b/src/otari/_client/models/mr_web_search_tool_result_error.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_audio.py b/src/otari/_client/models/msg_audio.py index f18858b..bab2aec 100644 --- a/src/otari/_client/models/msg_audio.py +++ b/src/otari/_client/models/msg_audio.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_chat_completion_assistant_message_param.py b/src/otari/_client/models/msg_chat_completion_assistant_message_param.py index dcb2f54..73cb5fb 100644 --- a/src/otari/_client/models/msg_chat_completion_assistant_message_param.py +++ b/src/otari/_client/models/msg_chat_completion_assistant_message_param.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_chat_completion_content_part_image_param.py b/src/otari/_client/models/msg_chat_completion_content_part_image_param.py index bf99579..b927f6a 100644 --- a/src/otari/_client/models/msg_chat_completion_content_part_image_param.py +++ b/src/otari/_client/models/msg_chat_completion_content_part_image_param.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_chat_completion_content_part_input_audio_param.py b/src/otari/_client/models/msg_chat_completion_content_part_input_audio_param.py index 6d5dc60..0a5b9fa 100644 --- a/src/otari/_client/models/msg_chat_completion_content_part_input_audio_param.py +++ b/src/otari/_client/models/msg_chat_completion_content_part_input_audio_param.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_chat_completion_content_part_refusal_param.py b/src/otari/_client/models/msg_chat_completion_content_part_refusal_param.py index c402695..e4a7e23 100644 --- a/src/otari/_client/models/msg_chat_completion_content_part_refusal_param.py +++ b/src/otari/_client/models/msg_chat_completion_content_part_refusal_param.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_chat_completion_content_part_text_param.py b/src/otari/_client/models/msg_chat_completion_content_part_text_param.py index e903718..70ce44b 100644 --- a/src/otari/_client/models/msg_chat_completion_content_part_text_param.py +++ b/src/otari/_client/models/msg_chat_completion_content_part_text_param.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_chat_completion_developer_message_param.py b/src/otari/_client/models/msg_chat_completion_developer_message_param.py index 7e2d68a..f8e29be 100644 --- a/src/otari/_client/models/msg_chat_completion_developer_message_param.py +++ b/src/otari/_client/models/msg_chat_completion_developer_message_param.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_chat_completion_function_message_param.py b/src/otari/_client/models/msg_chat_completion_function_message_param.py index 541c427..d959931 100644 --- a/src/otari/_client/models/msg_chat_completion_function_message_param.py +++ b/src/otari/_client/models/msg_chat_completion_function_message_param.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_chat_completion_message_custom_tool_call_param.py b/src/otari/_client/models/msg_chat_completion_message_custom_tool_call_param.py index 4494541..630506f 100644 --- a/src/otari/_client/models/msg_chat_completion_message_custom_tool_call_param.py +++ b/src/otari/_client/models/msg_chat_completion_message_custom_tool_call_param.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_chat_completion_message_function_tool_call_param.py b/src/otari/_client/models/msg_chat_completion_message_function_tool_call_param.py index d0c0d6b..00da763 100644 --- a/src/otari/_client/models/msg_chat_completion_message_function_tool_call_param.py +++ b/src/otari/_client/models/msg_chat_completion_message_function_tool_call_param.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_chat_completion_system_message_param.py b/src/otari/_client/models/msg_chat_completion_system_message_param.py index 3ac9008..13f63e7 100644 --- a/src/otari/_client/models/msg_chat_completion_system_message_param.py +++ b/src/otari/_client/models/msg_chat_completion_system_message_param.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_chat_completion_tool_message_param.py b/src/otari/_client/models/msg_chat_completion_tool_message_param.py index 520fdc4..d105246 100644 --- a/src/otari/_client/models/msg_chat_completion_tool_message_param.py +++ b/src/otari/_client/models/msg_chat_completion_tool_message_param.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_chat_completion_user_message_param.py b/src/otari/_client/models/msg_chat_completion_user_message_param.py index de7944b..1f168c6 100644 --- a/src/otari/_client/models/msg_chat_completion_user_message_param.py +++ b/src/otari/_client/models/msg_chat_completion_user_message_param.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_custom.py b/src/otari/_client/models/msg_custom.py index bc452c5..aaacbb8 100644 --- a/src/otari/_client/models/msg_custom.py +++ b/src/otari/_client/models/msg_custom.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_file.py b/src/otari/_client/models/msg_file.py index c381cf7..9174379 100644 --- a/src/otari/_client/models/msg_file.py +++ b/src/otari/_client/models/msg_file.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_file_file.py b/src/otari/_client/models/msg_file_file.py index e9ca9f7..14527a4 100644 --- a/src/otari/_client/models/msg_file_file.py +++ b/src/otari/_client/models/msg_file_file.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_function.py b/src/otari/_client/models/msg_function.py index ff55fc4..6d6513d 100644 --- a/src/otari/_client/models/msg_function.py +++ b/src/otari/_client/models/msg_function.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_function_call.py b/src/otari/_client/models/msg_function_call.py index ac0d212..f03e6c7 100644 --- a/src/otari/_client/models/msg_function_call.py +++ b/src/otari/_client/models/msg_function_call.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_image_url.py b/src/otari/_client/models/msg_image_url.py index 22c94d6..1721223 100644 --- a/src/otari/_client/models/msg_image_url.py +++ b/src/otari/_client/models/msg_image_url.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/msg_input_audio.py b/src/otari/_client/models/msg_input_audio.py index c2c5a94..62b8d59 100644 --- a/src/otari/_client/models/msg_input_audio.py +++ b/src/otari/_client/models/msg_input_audio.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/pricing_response.py b/src/otari/_client/models/pricing_response.py index af1cb90..53c043b 100644 --- a/src/otari/_client/models/pricing_response.py +++ b/src/otari/_client/models/pricing_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/rerank_request.py b/src/otari/_client/models/rerank_request.py index cee0d32..bbf8817 100644 --- a/src/otari/_client/models/rerank_request.py +++ b/src/otari/_client/models/rerank_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/rerank_response.py b/src/otari/_client/models/rerank_response.py index 88bcd41..3ebbd3a 100644 --- a/src/otari/_client/models/rerank_response.py +++ b/src/otari/_client/models/rerank_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/responses_request.py b/src/otari/_client/models/responses_request.py index a37f476..ea9775e 100644 --- a/src/otari/_client/models/responses_request.py +++ b/src/otari/_client/models/responses_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -56,11 +56,12 @@ class ResponsesRequest(BaseModel): response_format: Optional[Dict[str, Any]] = None safety_identifier: Optional[StrictStr] = None service_tier: Optional[StrictStr] = None + session_label: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="Optional caller-supplied label for cost attribution (per run, experiment, or conversation). In hybrid mode it is forwarded onto the platform usage report so spend can be sliced by session without standing up OpenTelemetry. Stripped before the request is forwarded upstream to the provider. Has no effect in standalone mode, where there is no platform to report it to.") store: Optional[StrictBool] = None stream: Optional[StrictBool] = False stream_options: Optional[Dict[str, Any]] = None temperature: Optional[Union[StrictFloat, StrictInt]] = None - text: Optional[Any] = None + text: Optional[Dict[str, Any]] = None tool_choice: Optional[ToolChoice1] = None tools: Optional[List[Dict[str, Any]]] = None tools_header: Optional[StrictStr] = None @@ -69,7 +70,7 @@ class ResponsesRequest(BaseModel): truncation: Optional[StrictStr] = None user: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["background", "conversation", "frequency_penalty", "guardrails", "include", "input", "instructions", "max_output_tokens", "max_tool_calls", "max_tool_iterations", "mcp_server_ids", "mcp_servers", "metadata", "model", "parallel_tool_calls", "presence_penalty", "previous_response_id", "prompt_cache_key", "prompt_cache_retention", "reasoning", "response_format", "safety_identifier", "service_tier", "store", "stream", "stream_options", "temperature", "text", "tool_choice", "tools", "tools_header", "top_logprobs", "top_p", "truncation", "user"] + __properties: ClassVar[List[str]] = ["background", "conversation", "frequency_penalty", "guardrails", "include", "input", "instructions", "max_output_tokens", "max_tool_calls", "max_tool_iterations", "mcp_server_ids", "mcp_servers", "metadata", "model", "parallel_tool_calls", "presence_penalty", "previous_response_id", "prompt_cache_key", "prompt_cache_retention", "reasoning", "response_format", "safety_identifier", "service_tier", "session_label", "store", "stream", "stream_options", "temperature", "text", "tool_choice", "tools", "tools_header", "top_logprobs", "top_p", "truncation", "user"] model_config = ConfigDict( validate_by_name=True, @@ -129,9 +130,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_mcp_servers: _items.append(_item_mcp_servers.to_dict()) _dict['mcp_servers'] = _items - # override the default output from pydantic by calling `to_dict()` of text - if self.text: - _dict['text'] = self.text.to_dict() # override the default output from pydantic by calling `to_dict()` of tool_choice if self.tool_choice: _dict['tool_choice'] = self.tool_choice.to_dict() @@ -250,6 +248,11 @@ def to_dict(self) -> Dict[str, Any]: if self.service_tier is None and "service_tier" in self.model_fields_set: _dict['service_tier'] = None + # set to None if session_label (nullable) is None + # and model_fields_set contains the field + if self.session_label is None and "session_label" in self.model_fields_set: + _dict['session_label'] = None + # set to None if store (nullable) is None # and model_fields_set contains the field if self.store is None and "store" in self.model_fields_set: @@ -340,11 +343,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "response_format": obj.get("response_format"), "safety_identifier": obj.get("safety_identifier"), "service_tier": obj.get("service_tier"), + "session_label": obj.get("session_label"), "store": obj.get("store"), "stream": obj.get("stream") if obj.get("stream") is not None else False, "stream_options": obj.get("stream_options"), "temperature": obj.get("temperature"), - "text": AnyOf.from_dict(obj["text"]) if obj.get("text") is not None else None, + "text": obj.get("text"), "tool_choice": ToolChoice1.from_dict(obj["tool_choice"]) if obj.get("tool_choice") is not None else None, "tools": obj.get("tools"), "tools_header": obj.get("tools_header"), diff --git a/src/otari/_client/models/rr_rerank_meta.py b/src/otari/_client/models/rr_rerank_meta.py index 63cfb6c..12f8834 100644 --- a/src/otari/_client/models/rr_rerank_meta.py +++ b/src/otari/_client/models/rr_rerank_meta.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/rr_rerank_result.py b/src/otari/_client/models/rr_rerank_result.py index 9b32dfa..7c970e4 100644 --- a/src/otari/_client/models/rr_rerank_result.py +++ b/src/otari/_client/models/rr_rerank_result.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/rr_rerank_usage.py b/src/otari/_client/models/rr_rerank_usage.py index c655355..0958cfe 100644 --- a/src/otari/_client/models/rr_rerank_usage.py +++ b/src/otari/_client/models/rr_rerank_usage.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/set_pricing_request.py b/src/otari/_client/models/set_pricing_request.py index 8c2892b..b64a0ad 100644 --- a/src/otari/_client/models/set_pricing_request.py +++ b/src/otari/_client/models/set_pricing_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/source.py b/src/otari/_client/models/source.py index e83fd31..b709cb7 100644 --- a/src/otari/_client/models/source.py +++ b/src/otari/_client/models/source.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/stop.py b/src/otari/_client/models/stop.py index 7bc8a12..ca5b824 100644 --- a/src/otari/_client/models/stop.py +++ b/src/otari/_client/models/stop.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/system.py b/src/otari/_client/models/system.py index 90304b0..9042c97 100644 --- a/src/otari/_client/models/system.py +++ b/src/otari/_client/models/system.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/tool_calls_inner.py b/src/otari/_client/models/tool_calls_inner.py index bdac489..e877170 100644 --- a/src/otari/_client/models/tool_calls_inner.py +++ b/src/otari/_client/models/tool_calls_inner.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/tool_choice.py b/src/otari/_client/models/tool_choice.py index 5031b79..944ec29 100644 --- a/src/otari/_client/models/tool_choice.py +++ b/src/otari/_client/models/tool_choice.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/tool_choice1.py b/src/otari/_client/models/tool_choice1.py index c49cee4..861bc9b 100644 --- a/src/otari/_client/models/tool_choice1.py +++ b/src/otari/_client/models/tool_choice1.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/update_budget_request.py b/src/otari/_client/models/update_budget_request.py index b43962d..de59fce 100644 --- a/src/otari/_client/models/update_budget_request.py +++ b/src/otari/_client/models/update_budget_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/update_key_request.py b/src/otari/_client/models/update_key_request.py index a2bfbff..1fe185d 100644 --- a/src/otari/_client/models/update_key_request.py +++ b/src/otari/_client/models/update_key_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/update_user_request.py b/src/otari/_client/models/update_user_request.py index 6a90add..5a0f34e 100644 --- a/src/otari/_client/models/update_user_request.py +++ b/src/otari/_client/models/update_user_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/usage_entry.py b/src/otari/_client/models/usage_entry.py index 7966543..8e6465e 100644 --- a/src/otari/_client/models/usage_entry.py +++ b/src/otari/_client/models/usage_entry.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -28,6 +28,8 @@ class UsageEntry(BaseModel): A single usage log entry. """ # noqa: E501 api_key_id: Optional[StrictStr] + cache_read_tokens: Optional[StrictInt] + cache_write_tokens: Optional[StrictInt] completion_tokens: Optional[StrictInt] cost: Optional[Union[StrictFloat, StrictInt]] endpoint: StrictStr @@ -40,7 +42,7 @@ class UsageEntry(BaseModel): timestamp: StrictStr total_tokens: Optional[StrictInt] user_id: Optional[StrictStr] - __properties: ClassVar[List[str]] = ["api_key_id", "completion_tokens", "cost", "endpoint", "error_message", "id", "model", "prompt_tokens", "provider", "status", "timestamp", "total_tokens", "user_id"] + __properties: ClassVar[List[str]] = ["api_key_id", "cache_read_tokens", "cache_write_tokens", "completion_tokens", "cost", "endpoint", "error_message", "id", "model", "prompt_tokens", "provider", "status", "timestamp", "total_tokens", "user_id"] model_config = ConfigDict( validate_by_name=True, @@ -86,6 +88,16 @@ def to_dict(self) -> Dict[str, Any]: if self.api_key_id is None and "api_key_id" in self.model_fields_set: _dict['api_key_id'] = None + # set to None if cache_read_tokens (nullable) is None + # and model_fields_set contains the field + if self.cache_read_tokens is None and "cache_read_tokens" in self.model_fields_set: + _dict['cache_read_tokens'] = None + + # set to None if cache_write_tokens (nullable) is None + # and model_fields_set contains the field + if self.cache_write_tokens is None and "cache_write_tokens" in self.model_fields_set: + _dict['cache_write_tokens'] = None + # set to None if completion_tokens (nullable) is None # and model_fields_set contains the field if self.completion_tokens is None and "completion_tokens" in self.model_fields_set: @@ -134,6 +146,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "api_key_id": obj.get("api_key_id"), + "cache_read_tokens": obj.get("cache_read_tokens"), + "cache_write_tokens": obj.get("cache_write_tokens"), "completion_tokens": obj.get("completion_tokens"), "cost": obj.get("cost"), "endpoint": obj.get("endpoint"), diff --git a/src/otari/_client/models/usage_log_response.py b/src/otari/_client/models/usage_log_response.py index 518d444..aa65356 100644 --- a/src/otari/_client/models/usage_log_response.py +++ b/src/otari/_client/models/usage_log_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/user_response.py b/src/otari/_client/models/user_response.py index f6344c0..ee69815 100644 --- a/src/otari/_client/models/user_response.py +++ b/src/otari/_client/models/user_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/validation_error.py b/src/otari/_client/models/validation_error.py index 5147feb..53026ae 100644 --- a/src/otari/_client/models/validation_error.py +++ b/src/otari/_client/models/validation_error.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/rest.py b/src/otari/_client/rest.py index 5d07c8d..415b2ce 100644 --- a/src/otari/_client/rest.py +++ b/src/otari/_client/rest.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.0.0-dev + The version of the OpenAPI document: 0.2.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually.