diff --git a/sdk-endpoints.txt b/sdk-endpoints.txt index 0d85d060..d8bd3c3f 100644 --- a/sdk-endpoints.txt +++ b/sdk-endpoints.txt @@ -70,6 +70,12 @@ POST /v1/audio/transcriptions [excluded] GET /v1/models/{model_id} # redundant, list_models covers discovery +# Caller-orchestrated MCP is public, but no SDK shell wraps it yet. Typed +# mcp.list_tools and mcp.execute methods are the next step for the SDKs, and +# execution needs one deliberate property no generated wrapper gives it for +# free: exactly one HTTP attempt, never a retry. +GET /v1/mcp/servers/{mcp_server_id}/tools # not yet wrapped +POST /v1/mcp/execute # not yet wrapped # Files API: added to the gateway spec, not yet wrapped by any SDK shell. POST /v1/files # not yet wrapped GET /v1/files # not yet wrapped diff --git a/src/otari/_client/__init__.py b/src/otari/_client/__init__.py index e254a992..3b04570b 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -33,6 +33,7 @@ "ImagesApi", "InvitationsApi", "KeysApi", + "McpApi", "McpServersApi", "MessagesApi", "ModelsApi", @@ -98,13 +99,16 @@ "AgentTelemetryUsage", "AliasRequest", "AliasResponse", + "Annotations", "ApiKeyId", "AppliedEditsInner", + "AudioContent", "AudioSpeechRequest", "AuthenticatePasskeyRequest", "AuthorizeResponse", "BatchRequestItem", "BillingMeters", + "BlobResourceContents", "BudgetResetLogResponse", "BudgetResponse", "CCChatCompletionAudio", @@ -134,6 +138,7 @@ "CCPromptTokensDetails", "CCTopLogprob", "CacheMissReason", + "CallToolResult", "Caller", "Caller1", "CallerIdentityPublic", @@ -168,6 +173,7 @@ "Content8", "Content9", "ContentAnyOfInner", + "ContentInner", "Conversation", "CountTokensRequest", "CountTokensResponse", @@ -194,7 +200,9 @@ "DroppedResponse", "EMBEmbedding", "EMBUsage", + "EmbeddedResource", "EmbeddingRequest", + "ExecutionState", "ExplainRequest", "ExplainResponse", "ExternalEventsRequest", @@ -208,6 +216,8 @@ "IMGUsage", "IMGUsageInputTokensDetails", "IMGUsageOutputTokensDetails", + "Icon", + "ImageContent", "ImageGenerationRequest", "ImagesResponse", "InFlightEntry", @@ -365,7 +375,12 @@ "MailSettings", "MaintenanceMode", "ManagedTool", + "McpErrorBody", + "McpExecuteRequest", "McpServerConfig", + "McpToolDefinition", + "McpToolWarning", + "McpToolsResponse", "Message", "MessageResponse", "MessagesRequest", @@ -443,6 +458,8 @@ "ResendVerificationRequest", "ResendVerificationResponse", "ResetPasswordRequest", + "Resource", + "ResourceLink", "ResponsesRequest", "RotateMasterKeyResponse", "RouterStatus", @@ -472,6 +489,8 @@ "TestProviderResponse", "TestServiceRequest", "TestServiceResponse", + "TextContent", + "TextResourceContents", "TokenChargeLine", "ToolCallsInner", "ToolChoice", @@ -565,6 +584,7 @@ from otari._client.api.images_api import ImagesApi as ImagesApi from otari._client.api.invitations_api import InvitationsApi as InvitationsApi from otari._client.api.keys_api import KeysApi as KeysApi +from otari._client.api.mcp_api import McpApi as McpApi from otari._client.api.mcp_servers_api import McpServersApi as McpServersApi from otari._client.api.messages_api import MessagesApi as MessagesApi from otari._client.api.models_api import ModelsApi as ModelsApi @@ -634,13 +654,16 @@ from otari._client.models.agent_telemetry_usage import AgentTelemetryUsage as AgentTelemetryUsage from otari._client.models.alias_request import AliasRequest as AliasRequest from otari._client.models.alias_response import AliasResponse as AliasResponse +from otari._client.models.annotations import Annotations as Annotations from otari._client.models.api_key_id import ApiKeyId as ApiKeyId from otari._client.models.applied_edits_inner import AppliedEditsInner as AppliedEditsInner +from otari._client.models.audio_content import AudioContent as AudioContent from otari._client.models.audio_speech_request import AudioSpeechRequest as AudioSpeechRequest from otari._client.models.authenticate_passkey_request import AuthenticatePasskeyRequest as AuthenticatePasskeyRequest from otari._client.models.authorize_response import AuthorizeResponse as AuthorizeResponse from otari._client.models.batch_request_item import BatchRequestItem as BatchRequestItem from otari._client.models.billing_meters import BillingMeters as BillingMeters +from otari._client.models.blob_resource_contents import BlobResourceContents as BlobResourceContents from otari._client.models.budget_reset_log_response import BudgetResetLogResponse as BudgetResetLogResponse from otari._client.models.budget_response import BudgetResponse as BudgetResponse from otari._client.models.cc_chat_completion_audio import CCChatCompletionAudio as CCChatCompletionAudio @@ -670,6 +693,7 @@ from otari._client.models.cc_prompt_tokens_details import CCPromptTokensDetails as CCPromptTokensDetails from otari._client.models.cc_top_logprob import CCTopLogprob as CCTopLogprob from otari._client.models.cache_miss_reason import CacheMissReason as CacheMissReason +from otari._client.models.call_tool_result import CallToolResult as CallToolResult from otari._client.models.caller import Caller as Caller from otari._client.models.caller1 import Caller1 as Caller1 from otari._client.models.caller_identity_public import CallerIdentityPublic as CallerIdentityPublic @@ -704,6 +728,7 @@ from otari._client.models.content8 import Content8 as Content8 from otari._client.models.content9 import Content9 as Content9 from otari._client.models.content_any_of_inner import ContentAnyOfInner as ContentAnyOfInner +from otari._client.models.content_inner import ContentInner as ContentInner from otari._client.models.conversation import Conversation as Conversation from otari._client.models.count_tokens_request import CountTokensRequest as CountTokensRequest from otari._client.models.count_tokens_response import CountTokensResponse as CountTokensResponse @@ -730,7 +755,9 @@ from otari._client.models.dropped_response import DroppedResponse as DroppedResponse from otari._client.models.emb_embedding import EMBEmbedding as EMBEmbedding from otari._client.models.emb_usage import EMBUsage as EMBUsage +from otari._client.models.embedded_resource import EmbeddedResource as EmbeddedResource from otari._client.models.embedding_request import EmbeddingRequest as EmbeddingRequest +from otari._client.models.execution_state import ExecutionState as ExecutionState from otari._client.models.explain_request import ExplainRequest as ExplainRequest from otari._client.models.explain_response import ExplainResponse as ExplainResponse from otari._client.models.external_events_request import ExternalEventsRequest as ExternalEventsRequest @@ -744,6 +771,8 @@ from otari._client.models.img_usage import IMGUsage as IMGUsage from otari._client.models.img_usage_input_tokens_details import IMGUsageInputTokensDetails as IMGUsageInputTokensDetails from otari._client.models.img_usage_output_tokens_details import IMGUsageOutputTokensDetails as IMGUsageOutputTokensDetails +from otari._client.models.icon import Icon as Icon +from otari._client.models.image_content import ImageContent as ImageContent from otari._client.models.image_generation_request import ImageGenerationRequest as ImageGenerationRequest from otari._client.models.images_response import ImagesResponse as ImagesResponse from otari._client.models.in_flight_entry import InFlightEntry as InFlightEntry @@ -901,7 +930,12 @@ from otari._client.models.mail_settings import MailSettings as MailSettings from otari._client.models.maintenance_mode import MaintenanceMode as MaintenanceMode from otari._client.models.managed_tool import ManagedTool as ManagedTool +from otari._client.models.mcp_error_body import McpErrorBody as McpErrorBody +from otari._client.models.mcp_execute_request import McpExecuteRequest as McpExecuteRequest from otari._client.models.mcp_server_config import McpServerConfig as McpServerConfig +from otari._client.models.mcp_tool_definition import McpToolDefinition as McpToolDefinition +from otari._client.models.mcp_tool_warning import McpToolWarning as McpToolWarning +from otari._client.models.mcp_tools_response import McpToolsResponse as McpToolsResponse from otari._client.models.message import Message as Message from otari._client.models.message_response import MessageResponse as MessageResponse from otari._client.models.messages_request import MessagesRequest as MessagesRequest @@ -979,6 +1013,8 @@ from otari._client.models.resend_verification_request import ResendVerificationRequest as ResendVerificationRequest from otari._client.models.resend_verification_response import ResendVerificationResponse as ResendVerificationResponse from otari._client.models.reset_password_request import ResetPasswordRequest as ResetPasswordRequest +from otari._client.models.resource import Resource as Resource +from otari._client.models.resource_link import ResourceLink as ResourceLink from otari._client.models.responses_request import ResponsesRequest as ResponsesRequest from otari._client.models.rotate_master_key_response import RotateMasterKeyResponse as RotateMasterKeyResponse from otari._client.models.router_status import RouterStatus as RouterStatus @@ -1008,6 +1044,8 @@ from otari._client.models.test_provider_response import TestProviderResponse as TestProviderResponse from otari._client.models.test_service_request import TestServiceRequest as TestServiceRequest from otari._client.models.test_service_response import TestServiceResponse as TestServiceResponse +from otari._client.models.text_content import TextContent as TextContent +from otari._client.models.text_resource_contents import TextResourceContents as TextResourceContents from otari._client.models.token_charge_line import TokenChargeLine as TokenChargeLine from otari._client.models.tool_calls_inner import ToolCallsInner as ToolCallsInner from otari._client.models.tool_choice import ToolChoice as ToolChoice diff --git a/src/otari/_client/_spec_version.py b/src/otari/_client/_spec_version.py index 57026182..cdc514d1 100644 --- a/src/otari/_client/_spec_version.py +++ b/src/otari/_client/_spec_version.py @@ -1 +1 @@ -__spec_version__ = "0.5.0" +__spec_version__ = "0.0.0-dev" diff --git a/src/otari/_client/api/__init__.py b/src/otari/_client/api/__init__.py index eacd5f44..2b8fe6a6 100644 --- a/src/otari/_client/api/__init__.py +++ b/src/otari/_client/api/__init__.py @@ -16,6 +16,7 @@ from otari._client.api.images_api import ImagesApi from otari._client.api.invitations_api import InvitationsApi from otari._client.api.keys_api import KeysApi +from otari._client.api.mcp_api import McpApi from otari._client.api.mcp_servers_api import McpServersApi from otari._client.api.messages_api import MessagesApi from otari._client.api.models_api import ModelsApi diff --git a/src/otari/_client/api/admin_api.py b/src/otari/_client/api/admin_api.py index a8b81477..12814bdc 100644 --- a/src/otari/_client/api/admin_api.py +++ b/src/otari/_client/api/admin_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/agent_telemetry_api.py b/src/otari/_client/api/agent_telemetry_api.py index 5e0c1f83..a907a483 100644 --- a/src/otari/_client/api/agent_telemetry_api.py +++ b/src/otari/_client/api/agent_telemetry_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/aliases_api.py b/src/otari/_client/api/aliases_api.py index 38dfd108..837d003d 100644 --- a/src/otari/_client/api/aliases_api.py +++ b/src/otari/_client/api/aliases_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/audio_api.py b/src/otari/_client/api/audio_api.py index 15b4dd33..954591fc 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/auth_api.py b/src/otari/_client/api/auth_api.py index cae667f4..488cb51b 100644 --- a/src/otari/_client/api/auth_api.py +++ b/src/otari/_client/api/auth_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -600,7 +600,7 @@ def authorize_v1_auth_oauth_provider_authorize_get( ) -> AuthorizeResponse: """Authorize - Start an OAuth sign-in: where to send the browser, and the state to keep. A GET, and safe: it reads configuration and mints a random value, writing nothing. Repeating it simply produces another state, and only the one the browser kept is the one it will compare against. + Start an OAuth sign-in: where to send the browser, and the state to keep. A GET that writes, which is the one thing to know about it. It records the authorization it is about to start (the state's hash, the PKCE verifier the exchange will need, and the digest of a flow secret it sets as an HttpOnly cookie) so the callback has something to check against, and that record is the whole reason the callback can refuse a code this deployment never asked for, or one presented from a browser other than the one that asked. Still safe to repeat: each call mints its own state, and only the one the browser kept is the one it sends back. The rows the others leave expire on their own and are swept by the next call. The cookie is reused when the browser already holds one, so a second tab does not break the first. :param provider: Which OAuth provider to sign in with. (required) :type provider: str @@ -668,7 +668,7 @@ def authorize_v1_auth_oauth_provider_authorize_get_with_http_info( ) -> ApiResponse[AuthorizeResponse]: """Authorize - Start an OAuth sign-in: where to send the browser, and the state to keep. A GET, and safe: it reads configuration and mints a random value, writing nothing. Repeating it simply produces another state, and only the one the browser kept is the one it will compare against. + Start an OAuth sign-in: where to send the browser, and the state to keep. A GET that writes, which is the one thing to know about it. It records the authorization it is about to start (the state's hash, the PKCE verifier the exchange will need, and the digest of a flow secret it sets as an HttpOnly cookie) so the callback has something to check against, and that record is the whole reason the callback can refuse a code this deployment never asked for, or one presented from a browser other than the one that asked. Still safe to repeat: each call mints its own state, and only the one the browser kept is the one it sends back. The rows the others leave expire on their own and are swept by the next call. The cookie is reused when the browser already holds one, so a second tab does not break the first. :param provider: Which OAuth provider to sign in with. (required) :type provider: str @@ -736,7 +736,7 @@ def authorize_v1_auth_oauth_provider_authorize_get_without_preload_content( ) -> RESTResponseType: """Authorize - Start an OAuth sign-in: where to send the browser, and the state to keep. A GET, and safe: it reads configuration and mints a random value, writing nothing. Repeating it simply produces another state, and only the one the browser kept is the one it will compare against. + Start an OAuth sign-in: where to send the browser, and the state to keep. A GET that writes, which is the one thing to know about it. It records the authorization it is about to start (the state's hash, the PKCE verifier the exchange will need, and the digest of a flow secret it sets as an HttpOnly cookie) so the callback has something to check against, and that record is the whole reason the callback can refuse a code this deployment never asked for, or one presented from a browser other than the one that asked. Still safe to repeat: each call mints its own state, and only the one the browser kept is the one it sends back. The rows the others leave expire on their own and are swept by the next call. The cookie is reused when the browser already holds one, so a second tab does not break the first. :param provider: Which OAuth provider to sign in with. (required) :type provider: str diff --git a/src/otari/_client/api/batches_api.py b/src/otari/_client/api/batches_api.py index 0c5fd944..3bef471a 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/bootstrap_api.py b/src/otari/_client/api/bootstrap_api.py index 8bcbb182..a6cff446 100644 --- a/src/otari/_client/api/bootstrap_api.py +++ b/src/otari/_client/api/bootstrap_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 9984e255..4ddbeefe 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 9fe9ba29..a22dcf8e 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 2cb7aa76..6c0254ac 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 39521ce3..c588e250 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 cdc70383..669c1ca7 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 407d79cd..0b27c969 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/invitations_api.py b/src/otari/_client/api/invitations_api.py index 45ce0b01..7de15570 100644 --- a/src/otari/_client/api/invitations_api.py +++ b/src/otari/_client/api/invitations_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 dc79440f..e986d414 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/mcp_api.py b/src/otari/_client/api/mcp_api.py new file mode 100644 index 00000000..13912936 --- /dev/null +++ b/src/otari/_client/api/mcp_api.py @@ -0,0 +1,641 @@ +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from uuid import UUID +from otari._client.models.call_tool_result import CallToolResult +from otari._client.models.mcp_execute_request import McpExecuteRequest +from otari._client.models.mcp_tools_response import McpToolsResponse + +from otari._client.api_client import ApiClient, RequestSerialized +from otari._client.api_response import ApiResponse +from otari._client.rest import RESTResponseType + + +class McpApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def execute_mcp_tool_v1_mcp_execute_post( + self, + mcp_execute_request: McpExecuteRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CallToolResult: + """Execute Mcp Tool + + Execute one caller-authorized tool call against a stored MCP server. The calling application owns any user approval, argument editing, cancellation and action history; Otari executes exactly the tool name and arguments it is given, once, and returns the remote server's native result. A result with ``isError: true`` is a definitive outcome and comes back as an HTTP 200. **This request must never be retried automatically.** ``client_execution_id`` is correlation, not idempotency: once the call has been dispatched Otari cannot know whether the tool ran, and an ``outcome_unknown`` response means exactly that. Proxies, service meshes and SDKs on this path have to disable retries for it, including on connection resets and 5xx responses. + + :param mcp_execute_request: (required) + :type mcp_execute_request: McpExecuteRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._execute_mcp_tool_v1_mcp_execute_post_serialize( + mcp_execute_request=mcp_execute_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CallToolResult", + '400': "McpErrorBody", + '401': "McpErrorBody", + '402': "McpErrorBody", + '403': "McpErrorBody", + '404': "McpErrorBody", + '409': "McpErrorBody", + '422': "McpErrorBody", + '429': "McpErrorBody", + '500': "McpErrorBody", + '502': "McpErrorBody", + '503': "McpErrorBody", + '504': "McpErrorBody", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def execute_mcp_tool_v1_mcp_execute_post_with_http_info( + self, + mcp_execute_request: McpExecuteRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CallToolResult]: + """Execute Mcp Tool + + Execute one caller-authorized tool call against a stored MCP server. The calling application owns any user approval, argument editing, cancellation and action history; Otari executes exactly the tool name and arguments it is given, once, and returns the remote server's native result. A result with ``isError: true`` is a definitive outcome and comes back as an HTTP 200. **This request must never be retried automatically.** ``client_execution_id`` is correlation, not idempotency: once the call has been dispatched Otari cannot know whether the tool ran, and an ``outcome_unknown`` response means exactly that. Proxies, service meshes and SDKs on this path have to disable retries for it, including on connection resets and 5xx responses. + + :param mcp_execute_request: (required) + :type mcp_execute_request: McpExecuteRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._execute_mcp_tool_v1_mcp_execute_post_serialize( + mcp_execute_request=mcp_execute_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CallToolResult", + '400': "McpErrorBody", + '401': "McpErrorBody", + '402': "McpErrorBody", + '403': "McpErrorBody", + '404': "McpErrorBody", + '409': "McpErrorBody", + '422': "McpErrorBody", + '429': "McpErrorBody", + '500': "McpErrorBody", + '502': "McpErrorBody", + '503': "McpErrorBody", + '504': "McpErrorBody", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def execute_mcp_tool_v1_mcp_execute_post_without_preload_content( + self, + mcp_execute_request: McpExecuteRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Execute Mcp Tool + + Execute one caller-authorized tool call against a stored MCP server. The calling application owns any user approval, argument editing, cancellation and action history; Otari executes exactly the tool name and arguments it is given, once, and returns the remote server's native result. A result with ``isError: true`` is a definitive outcome and comes back as an HTTP 200. **This request must never be retried automatically.** ``client_execution_id`` is correlation, not idempotency: once the call has been dispatched Otari cannot know whether the tool ran, and an ``outcome_unknown`` response means exactly that. Proxies, service meshes and SDKs on this path have to disable retries for it, including on connection resets and 5xx responses. + + :param mcp_execute_request: (required) + :type mcp_execute_request: McpExecuteRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._execute_mcp_tool_v1_mcp_execute_post_serialize( + mcp_execute_request=mcp_execute_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CallToolResult", + '400': "McpErrorBody", + '401': "McpErrorBody", + '402': "McpErrorBody", + '403': "McpErrorBody", + '404': "McpErrorBody", + '409': "McpErrorBody", + '422': "McpErrorBody", + '429': "McpErrorBody", + '500': "McpErrorBody", + '502': "McpErrorBody", + '503': "McpErrorBody", + '504': "McpErrorBody", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _execute_mcp_tool_v1_mcp_execute_post_serialize( + self, + mcp_execute_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if mcp_execute_request is not None: + _body_params = mcp_execute_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'XApiKeyAuth', + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1/mcp/execute', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get( + self, + mcp_server_id: UUID, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> McpToolsResponse: + """List Mcp Tools + + List the tools a stored MCP server exposes to the authenticated workspace. Call this once per server when preparing a model or workflow run, and reuse the answer for every tool from that server for the length of the run: there is no cross-run cache in this version, so a later run rediscovers and staleness stays bounded without any invalidation state to keep. The response is the whole authorized catalog or an error. It is never partial, because a caller would read a short catalog as the complete input to its own authorization and risk policy. The single exception is ``warnings``, which names a tool whose descriptor Otari could not carry. A tool the server removes after discovery may still be proposed from the run's snapshot; execution then returns the remote server's own typed error. + + :param mcp_server_id: (required) + :type mcp_server_id: UUID + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_serialize( + mcp_server_id=mcp_server_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "McpToolsResponse", + '400': "McpErrorBody", + '401': "McpErrorBody", + '402': "McpErrorBody", + '403': "McpErrorBody", + '404': "McpErrorBody", + '422': "McpErrorBody", + '429': "McpErrorBody", + '500': "McpErrorBody", + '502': "McpErrorBody", + '503': "McpErrorBody", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_with_http_info( + self, + mcp_server_id: UUID, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[McpToolsResponse]: + """List Mcp Tools + + List the tools a stored MCP server exposes to the authenticated workspace. Call this once per server when preparing a model or workflow run, and reuse the answer for every tool from that server for the length of the run: there is no cross-run cache in this version, so a later run rediscovers and staleness stays bounded without any invalidation state to keep. The response is the whole authorized catalog or an error. It is never partial, because a caller would read a short catalog as the complete input to its own authorization and risk policy. The single exception is ``warnings``, which names a tool whose descriptor Otari could not carry. A tool the server removes after discovery may still be proposed from the run's snapshot; execution then returns the remote server's own typed error. + + :param mcp_server_id: (required) + :type mcp_server_id: UUID + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_serialize( + mcp_server_id=mcp_server_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "McpToolsResponse", + '400': "McpErrorBody", + '401': "McpErrorBody", + '402': "McpErrorBody", + '403': "McpErrorBody", + '404': "McpErrorBody", + '422': "McpErrorBody", + '429': "McpErrorBody", + '500': "McpErrorBody", + '502': "McpErrorBody", + '503': "McpErrorBody", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_without_preload_content( + self, + mcp_server_id: UUID, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List Mcp Tools + + List the tools a stored MCP server exposes to the authenticated workspace. Call this once per server when preparing a model or workflow run, and reuse the answer for every tool from that server for the length of the run: there is no cross-run cache in this version, so a later run rediscovers and staleness stays bounded without any invalidation state to keep. The response is the whole authorized catalog or an error. It is never partial, because a caller would read a short catalog as the complete input to its own authorization and risk policy. The single exception is ``warnings``, which names a tool whose descriptor Otari could not carry. A tool the server removes after discovery may still be proposed from the run's snapshot; execution then returns the remote server's own typed error. + + :param mcp_server_id: (required) + :type mcp_server_id: UUID + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_serialize( + mcp_server_id=mcp_server_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "McpToolsResponse", + '400': "McpErrorBody", + '401': "McpErrorBody", + '402': "McpErrorBody", + '403': "McpErrorBody", + '404': "McpErrorBody", + '422': "McpErrorBody", + '429': "McpErrorBody", + '500': "McpErrorBody", + '502': "McpErrorBody", + '503': "McpErrorBody", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_serialize( + self, + mcp_server_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if mcp_server_id is not None: + _path_params['mcp_server_id'] = mcp_server_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'XApiKeyAuth', + 'ApiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1/mcp/servers/{mcp_server_id}/tools', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/src/otari/_client/api/mcp_servers_api.py b/src/otari/_client/api/mcp_servers_api.py index 6abbd48e..7a0af15d 100644 --- a/src/otari/_client/api/mcp_servers_api.py +++ b/src/otari/_client/api/mcp_servers_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 cdc1d6dc..7ebc867d 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/models_api.py b/src/otari/_client/api/models_api.py index 7d564022..2752be3a 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 322df39b..3ec4a2e1 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/organization_budgets_api.py b/src/otari/_client/api/organization_budgets_api.py index 32fcb361..53dd036f 100644 --- a/src/otari/_client/api/organization_budgets_api.py +++ b/src/otari/_client/api/organization_budgets_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/organization_guardrails_api.py b/src/otari/_client/api/organization_guardrails_api.py index 48af247b..67aefffc 100644 --- a/src/otari/_client/api/organization_guardrails_api.py +++ b/src/otari/_client/api/organization_guardrails_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/organization_keys_api.py b/src/otari/_client/api/organization_keys_api.py index 34eadfb5..5f6356ae 100644 --- a/src/otari/_client/api/organization_keys_api.py +++ b/src/otari/_client/api/organization_keys_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/organization_pricing_api.py b/src/otari/_client/api/organization_pricing_api.py index 97cae115..c349f0e6 100644 --- a/src/otari/_client/api/organization_pricing_api.py +++ b/src/otari/_client/api/organization_pricing_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/organization_usage_api.py b/src/otari/_client/api/organization_usage_api.py index 30cb9d61..ddfe5601 100644 --- a/src/otari/_client/api/organization_usage_api.py +++ b/src/otari/_client/api/organization_usage_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/organizations_api.py b/src/otari/_client/api/organizations_api.py index e32cff84..aa30da9f 100644 --- a/src/otari/_client/api/organizations_api.py +++ b/src/otari/_client/api/organizations_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/otel_api.py b/src/otari/_client/api/otel_api.py index c14ddc92..836cf809 100644 --- a/src/otari/_client/api/otel_api.py +++ b/src/otari/_client/api/otel_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 b8159149..4a6bf1cc 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/provider_keys_api.py b/src/otari/_client/api/provider_keys_api.py index 1e266a8a..ab946d86 100644 --- a/src/otari/_client/api/provider_keys_api.py +++ b/src/otari/_client/api/provider_keys_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/providers_api.py b/src/otari/_client/api/providers_api.py index 223d0e35..f0cda557 100644 --- a/src/otari/_client/api/providers_api.py +++ b/src/otari/_client/api/providers_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 98b856be..01130990 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 451d92e5..371fb053 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/routing_api.py b/src/otari/_client/api/routing_api.py index 1443b370..7499668d 100644 --- a/src/otari/_client/api/routing_api.py +++ b/src/otari/_client/api/routing_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/scoped_budgets_api.py b/src/otari/_client/api/scoped_budgets_api.py index 4e6c1fa1..2427f2fa 100644 --- a/src/otari/_client/api/scoped_budgets_api.py +++ b/src/otari/_client/api/scoped_budgets_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/search_api.py b/src/otari/_client/api/search_api.py index 075a0769..ba978bca 100644 --- a/src/otari/_client/api/search_api.py +++ b/src/otari/_client/api/search_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/search_tools_api.py b/src/otari/_client/api/search_tools_api.py index 76036c02..c4cb11cc 100644 --- a/src/otari/_client/api/search_tools_api.py +++ b/src/otari/_client/api/search_tools_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/settings_api.py b/src/otari/_client/api/settings_api.py index 3da80744..cf1e0e7a 100644 --- a/src/otari/_client/api/settings_api.py +++ b/src/otari/_client/api/settings_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/tool_settings_api.py b/src/otari/_client/api/tool_settings_api.py index df917783..7c881dac 100644 --- a/src/otari/_client/api/tool_settings_api.py +++ b/src/otari/_client/api/tool_settings_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/tools_api.py b/src/otari/_client/api/tools_api.py index c5637f76..f6987800 100644 --- a/src/otari/_client/api/tools_api.py +++ b/src/otari/_client/api/tools_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/usage_api.py b/src/otari/_client/api/usage_api.py index f55dc7cc..3482b55e 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 d866d7f0..25241cb8 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/web_search_api.py b/src/otari/_client/api/web_search_api.py index c437c4a3..84692dae 100644 --- a/src/otari/_client/api/web_search_api.py +++ b/src/otari/_client/api/web_search_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/workspace_activation_api.py b/src/otari/_client/api/workspace_activation_api.py index a05977ed..b137df11 100644 --- a/src/otari/_client/api/workspace_activation_api.py +++ b/src/otari/_client/api/workspace_activation_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/workspace_code_execution_policy_api.py b/src/otari/_client/api/workspace_code_execution_policy_api.py index 9ac933c1..fde0e2a1 100644 --- a/src/otari/_client/api/workspace_code_execution_policy_api.py +++ b/src/otari/_client/api/workspace_code_execution_policy_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/workspace_member_budget_policies_api.py b/src/otari/_client/api/workspace_member_budget_policies_api.py index 980e2b0f..f3d4f9b1 100644 --- a/src/otari/_client/api/workspace_member_budget_policies_api.py +++ b/src/otari/_client/api/workspace_member_budget_policies_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/workspace_web_search_api.py b/src/otari/_client/api/workspace_web_search_api.py index 9242637c..58dddff6 100644 --- a/src/otari/_client/api/workspace_web_search_api.py +++ b/src/otari/_client/api/workspace_web_search_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/api/workspaces_api.py b/src/otari/_client/api/workspaces_api.py index d565c081..8015f806 100644 --- a/src/otari/_client/api/workspaces_api.py +++ b/src/otari/_client/api/workspaces_api.py @@ -3,7 +3,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 ed291ea8..19067534 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 e4c52166..47efc107 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -573,7 +573,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.5.0\n"\ + "Version of the API: 0.0.0-dev\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 4a48c3df..60f18424 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 774d4a48..1473ddcf 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,13 +38,16 @@ from otari._client.models.agent_telemetry_usage import AgentTelemetryUsage from otari._client.models.alias_request import AliasRequest from otari._client.models.alias_response import AliasResponse +from otari._client.models.annotations import Annotations from otari._client.models.api_key_id import ApiKeyId from otari._client.models.applied_edits_inner import AppliedEditsInner +from otari._client.models.audio_content import AudioContent from otari._client.models.audio_speech_request import AudioSpeechRequest from otari._client.models.authenticate_passkey_request import AuthenticatePasskeyRequest from otari._client.models.authorize_response import AuthorizeResponse from otari._client.models.batch_request_item import BatchRequestItem from otari._client.models.billing_meters import BillingMeters +from otari._client.models.blob_resource_contents import BlobResourceContents from otari._client.models.budget_reset_log_response import BudgetResetLogResponse from otari._client.models.budget_response import BudgetResponse from otari._client.models.cc_chat_completion_audio import CCChatCompletionAudio @@ -74,6 +77,7 @@ from otari._client.models.cc_prompt_tokens_details import CCPromptTokensDetails from otari._client.models.cc_top_logprob import CCTopLogprob from otari._client.models.cache_miss_reason import CacheMissReason +from otari._client.models.call_tool_result import CallToolResult from otari._client.models.caller import Caller from otari._client.models.caller1 import Caller1 from otari._client.models.caller_identity_public import CallerIdentityPublic @@ -108,6 +112,7 @@ from otari._client.models.content8 import Content8 from otari._client.models.content9 import Content9 from otari._client.models.content_any_of_inner import ContentAnyOfInner +from otari._client.models.content_inner import ContentInner from otari._client.models.conversation import Conversation from otari._client.models.count_tokens_request import CountTokensRequest from otari._client.models.count_tokens_response import CountTokensResponse @@ -134,7 +139,9 @@ from otari._client.models.dropped_response import DroppedResponse from otari._client.models.emb_embedding import EMBEmbedding from otari._client.models.emb_usage import EMBUsage +from otari._client.models.embedded_resource import EmbeddedResource from otari._client.models.embedding_request import EmbeddingRequest +from otari._client.models.execution_state import ExecutionState from otari._client.models.explain_request import ExplainRequest from otari._client.models.explain_response import ExplainResponse from otari._client.models.external_events_request import ExternalEventsRequest @@ -148,6 +155,8 @@ from otari._client.models.img_usage import IMGUsage from otari._client.models.img_usage_input_tokens_details import IMGUsageInputTokensDetails from otari._client.models.img_usage_output_tokens_details import IMGUsageOutputTokensDetails +from otari._client.models.icon import Icon +from otari._client.models.image_content import ImageContent from otari._client.models.image_generation_request import ImageGenerationRequest from otari._client.models.images_response import ImagesResponse from otari._client.models.in_flight_entry import InFlightEntry @@ -305,7 +314,12 @@ from otari._client.models.mail_settings import MailSettings from otari._client.models.maintenance_mode import MaintenanceMode from otari._client.models.managed_tool import ManagedTool +from otari._client.models.mcp_error_body import McpErrorBody +from otari._client.models.mcp_execute_request import McpExecuteRequest from otari._client.models.mcp_server_config import McpServerConfig +from otari._client.models.mcp_tool_definition import McpToolDefinition +from otari._client.models.mcp_tool_warning import McpToolWarning +from otari._client.models.mcp_tools_response import McpToolsResponse from otari._client.models.message import Message from otari._client.models.message_response import MessageResponse from otari._client.models.messages_request import MessagesRequest @@ -383,6 +397,8 @@ from otari._client.models.resend_verification_request import ResendVerificationRequest from otari._client.models.resend_verification_response import ResendVerificationResponse from otari._client.models.reset_password_request import ResetPasswordRequest +from otari._client.models.resource import Resource +from otari._client.models.resource_link import ResourceLink from otari._client.models.responses_request import ResponsesRequest from otari._client.models.rotate_master_key_response import RotateMasterKeyResponse from otari._client.models.router_status import RouterStatus @@ -412,6 +428,8 @@ from otari._client.models.test_provider_response import TestProviderResponse from otari._client.models.test_service_request import TestServiceRequest from otari._client.models.test_service_response import TestServiceResponse +from otari._client.models.text_content import TextContent +from otari._client.models.text_resource_contents import TextResourceContents from otari._client.models.token_charge_line import TokenChargeLine from otari._client.models.tool_calls_inner import ToolCallsInner from otari._client.models.tool_choice import ToolChoice diff --git a/src/otari/_client/models/accept_invitation_request.py b/src/otari/_client/models/accept_invitation_request.py index b9490c9f..103c38a4 100644 --- a/src/otari/_client/models/accept_invitation_request.py +++ b/src/otari/_client/models/accept_invitation_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/accept_invitation_result_public.py b/src/otari/_client/models/accept_invitation_result_public.py index ab9b77f4..16c67a0f 100644 --- a/src/otari/_client/models/accept_invitation_result_public.py +++ b/src/otari/_client/models/accept_invitation_result_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/activation_api_key_public.py b/src/otari/_client/models/activation_api_key_public.py index ff93a31e..87e14edd 100644 --- a/src/otari/_client/models/activation_api_key_public.py +++ b/src/otari/_client/models/activation_api_key_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/activation_attempt_public.py b/src/otari/_client/models/activation_attempt_public.py index 621ad4bd..377fac35 100644 --- a/src/otari/_client/models/activation_attempt_public.py +++ b/src/otari/_client/models/activation_attempt_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/active_organization_member_create_request.py b/src/otari/_client/models/active_organization_member_create_request.py index 190e7009..c51ebbfe 100644 --- a/src/otari/_client/models/active_organization_member_create_request.py +++ b/src/otari/_client/models/active_organization_member_create_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/active_organization_member_create_result_public.py b/src/otari/_client/models/active_organization_member_create_result_public.py index 5dce5f66..f288e335 100644 --- a/src/otari/_client/models/active_organization_member_create_result_public.py +++ b/src/otari/_client/models/active_organization_member_create_result_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/active_organization_member_public.py b/src/otari/_client/models/active_organization_member_public.py index faac2811..e042e9b9 100644 --- a/src/otari/_client/models/active_organization_member_public.py +++ b/src/otari/_client/models/active_organization_member_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/active_organization_member_update_request.py b/src/otari/_client/models/active_organization_member_update_request.py index 2d0ab170..251ca757 100644 --- a/src/otari/_client/models/active_organization_member_update_request.py +++ b/src/otari/_client/models/active_organization_member_update_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/active_organization_members_public.py b/src/otari/_client/models/active_organization_members_public.py index 6b3a3140..279f321e 100644 --- a/src/otari/_client/models/active_organization_members_public.py +++ b/src/otari/_client/models/active_organization_members_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/active_organization_update_request.py b/src/otari/_client/models/active_organization_update_request.py index fc5cda7e..64313193 100644 --- a/src/otari/_client/models/active_organization_update_request.py +++ b/src/otari/_client/models/active_organization_update_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/agent_telemetry_behavior.py b/src/otari/_client/models/agent_telemetry_behavior.py index 343206b2..221e2f77 100644 --- a/src/otari/_client/models/agent_telemetry_behavior.py +++ b/src/otari/_client/models/agent_telemetry_behavior.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/agent_telemetry_count.py b/src/otari/_client/models/agent_telemetry_count.py index 0575cc82..b07da916 100644 --- a/src/otari/_client/models/agent_telemetry_count.py +++ b/src/otari/_client/models/agent_telemetry_count.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/agent_telemetry_delete_request.py b/src/otari/_client/models/agent_telemetry_delete_request.py index 734cd4d6..23ba0bfd 100644 --- a/src/otari/_client/models/agent_telemetry_delete_request.py +++ b/src/otari/_client/models/agent_telemetry_delete_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/agent_telemetry_delete_result.py b/src/otari/_client/models/agent_telemetry_delete_result.py index 6d2ace0a..08178d71 100644 --- a/src/otari/_client/models/agent_telemetry_delete_result.py +++ b/src/otari/_client/models/agent_telemetry_delete_result.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/agent_telemetry_group_row.py b/src/otari/_client/models/agent_telemetry_group_row.py index f72daacc..db05bbd5 100644 --- a/src/otari/_client/models/agent_telemetry_group_row.py +++ b/src/otari/_client/models/agent_telemetry_group_row.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/agent_telemetry_grouped_series.py b/src/otari/_client/models/agent_telemetry_grouped_series.py index 51c26919..cfb81e9e 100644 --- a/src/otari/_client/models/agent_telemetry_grouped_series.py +++ b/src/otari/_client/models/agent_telemetry_grouped_series.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/agent_telemetry_grouped_series_point.py b/src/otari/_client/models/agent_telemetry_grouped_series_point.py index ad54dbd2..85c5be7b 100644 --- a/src/otari/_client/models/agent_telemetry_grouped_series_point.py +++ b/src/otari/_client/models/agent_telemetry_grouped_series_point.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/agent_telemetry_measures.py b/src/otari/_client/models/agent_telemetry_measures.py index 1547efe4..663e1f90 100644 --- a/src/otari/_client/models/agent_telemetry_measures.py +++ b/src/otari/_client/models/agent_telemetry_measures.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/agent_telemetry_outcomes.py b/src/otari/_client/models/agent_telemetry_outcomes.py index a6e649b3..d526d15f 100644 --- a/src/otari/_client/models/agent_telemetry_outcomes.py +++ b/src/otari/_client/models/agent_telemetry_outcomes.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/agent_telemetry_series_point.py b/src/otari/_client/models/agent_telemetry_series_point.py index 593639bf..8ce6c757 100644 --- a/src/otari/_client/models/agent_telemetry_series_point.py +++ b/src/otari/_client/models/agent_telemetry_series_point.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/agent_telemetry_summary.py b/src/otari/_client/models/agent_telemetry_summary.py index e35d8af6..4f5f95fd 100644 --- a/src/otari/_client/models/agent_telemetry_summary.py +++ b/src/otari/_client/models/agent_telemetry_summary.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/agent_telemetry_tool_row.py b/src/otari/_client/models/agent_telemetry_tool_row.py index 52614b23..a2ff6e80 100644 --- a/src/otari/_client/models/agent_telemetry_tool_row.py +++ b/src/otari/_client/models/agent_telemetry_tool_row.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/agent_telemetry_usage.py b/src/otari/_client/models/agent_telemetry_usage.py index 1ce51b2b..e3ac45f4 100644 --- a/src/otari/_client/models/agent_telemetry_usage.py +++ b/src/otari/_client/models/agent_telemetry_usage.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/alias_request.py b/src/otari/_client/models/alias_request.py index 8d22d76c..5ddd2667 100644 --- a/src/otari/_client/models/alias_request.py +++ b/src/otari/_client/models/alias_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/alias_response.py b/src/otari/_client/models/alias_response.py index 31660241..497f601a 100644 --- a/src/otari/_client/models/alias_response.py +++ b/src/otari/_client/models/alias_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/annotations.py b/src/otari/_client/models/annotations.py new file mode 100644 index 00000000..3e48ac01 --- /dev/null +++ b/src/otari/_client/models/annotations.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class Annotations(BaseModel): + """ + Annotations + """ # noqa: E501 + audience: Optional[List[StrictStr]] = None + priority: Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["audience", "priority"] + + @field_validator('audience') + def audience_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['user', 'assistant']): + raise ValueError("each list item must be one of ('user', 'assistant')") + return value + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Annotations from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if audience (nullable) is None + # and model_fields_set contains the field + if self.audience is None and "audience" in self.model_fields_set: + _dict['audience'] = None + + # set to None if priority (nullable) is None + # and model_fields_set contains the field + if self.priority is None and "priority" in self.model_fields_set: + _dict['priority'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Annotations from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "audience": obj.get("audience"), + "priority": obj.get("priority") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/src/otari/_client/models/api_key_id.py b/src/otari/_client/models/api_key_id.py index 2e920736..eaa9ad52 100644 --- a/src/otari/_client/models/api_key_id.py +++ b/src/otari/_client/models/api_key_id.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/applied_edits_inner.py b/src/otari/_client/models/applied_edits_inner.py index a7db8b6b..ca1927bc 100644 --- a/src/otari/_client/models/applied_edits_inner.py +++ b/src/otari/_client/models/applied_edits_inner.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/audio_content.py b/src/otari/_client/models/audio_content.py new file mode 100644 index 00000000..6ae3f4d1 --- /dev/null +++ b/src/otari/_client/models/audio_content.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from otari._client.models.annotations import Annotations +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class AudioContent(BaseModel): + """ + Audio content for a message. + """ # noqa: E501 + meta: Optional[Dict[str, Any]] = Field(default=None, alias="_meta") + annotations: Optional[Annotations] = None + data: StrictStr + mime_type: StrictStr = Field(alias="mimeType") + type: StrictStr + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_meta", "annotations", "data", "mimeType", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['audio']): + raise ValueError("must be one of enum values ('audio')") + return value + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AudioContent from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of annotations + if self.annotations: + _dict['annotations'] = self.annotations.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if meta (nullable) is None + # and model_fields_set contains the field + if self.meta is None and "meta" in self.model_fields_set: + _dict['_meta'] = None + + # set to None if annotations (nullable) is None + # and model_fields_set contains the field + if self.annotations is None and "annotations" in self.model_fields_set: + _dict['annotations'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AudioContent from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "_meta": obj.get("_meta"), + "annotations": Annotations.from_dict(obj["annotations"]) if obj.get("annotations") is not None else None, + "data": obj.get("data"), + "mimeType": obj.get("mimeType"), + "type": obj.get("type") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/src/otari/_client/models/audio_speech_request.py b/src/otari/_client/models/audio_speech_request.py index 863f4a66..d4bb85e1 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/authenticate_passkey_request.py b/src/otari/_client/models/authenticate_passkey_request.py index 5f562de2..c41a6538 100644 --- a/src/otari/_client/models/authenticate_passkey_request.py +++ b/src/otari/_client/models/authenticate_passkey_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/authorize_response.py b/src/otari/_client/models/authorize_response.py index fb63eaac..455e8df2 100644 --- a/src/otari/_client/models/authorize_response.py +++ b/src/otari/_client/models/authorize_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -28,7 +28,7 @@ class AuthorizeResponse(BaseModel): Where to send the browser, and the state to check when it comes back. """ # noqa: E501 authorization_url: StrictStr = Field(description="The provider consent screen to navigate to.") - state: StrictStr = Field(description="An opaque CSRF value to keep for the length of the redirect and compare against the 'state' the provider returns. It is not stored on this deployment, so a callback whose state does not match the one held by the browser that started the flow must be abandoned by the client rather than sent here.") + state: StrictStr = Field(description="An opaque CSRF value to keep for the length of the redirect, compare against the 'state' the provider returns, and send back with the authorization code. A callback whose state does not match the one held by the browser that started the flow should be abandoned by the client rather than sent here; one that does is checked again against this deployment's own record of it. The response also sets an HttpOnly cookie that the callback requires, so the exchange can only be completed from the browser this call was made from.") __properties: ClassVar[List[str]] = ["authorization_url", "state"] model_config = ConfigDict( diff --git a/src/otari/_client/models/batch_request_item.py b/src/otari/_client/models/batch_request_item.py index b7f65d29..1bfd5a98 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/billing_meters.py b/src/otari/_client/models/billing_meters.py index 746dbf84..116ee732 100644 --- a/src/otari/_client/models/billing_meters.py +++ b/src/otari/_client/models/billing_meters.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/blob_resource_contents.py b/src/otari/_client/models/blob_resource_contents.py new file mode 100644 index 00000000..a487ae97 --- /dev/null +++ b/src/otari/_client/models/blob_resource_contents.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class BlobResourceContents(BaseModel): + """ + Binary contents of a resource. + """ # noqa: E501 + meta: Optional[Dict[str, Any]] = Field(default=None, alias="_meta") + blob: StrictStr + mime_type: Optional[StrictStr] = Field(default=None, alias="mimeType") + uri: Annotated[str, Field(min_length=1, strict=True)] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_meta", "blob", "mimeType", "uri"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BlobResourceContents from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if meta (nullable) is None + # and model_fields_set contains the field + if self.meta is None and "meta" in self.model_fields_set: + _dict['_meta'] = None + + # set to None if mime_type (nullable) is None + # and model_fields_set contains the field + if self.mime_type is None and "mime_type" in self.model_fields_set: + _dict['mimeType'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BlobResourceContents from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "_meta": obj.get("_meta"), + "blob": obj.get("blob"), + "mimeType": obj.get("mimeType"), + "uri": obj.get("uri") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/src/otari/_client/models/budget_reset_log_response.py b/src/otari/_client/models/budget_reset_log_response.py index 220a7e11..7f86e81e 100644 --- a/src/otari/_client/models/budget_reset_log_response.py +++ b/src/otari/_client/models/budget_reset_log_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 d103aee6..0c56363c 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/cache_miss_reason.py b/src/otari/_client/models/cache_miss_reason.py index 7aa79fd7..790e4d67 100644 --- a/src/otari/_client/models/cache_miss_reason.py +++ b/src/otari/_client/models/cache_miss_reason.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/call_tool_result.py b/src/otari/_client/models/call_tool_result.py new file mode 100644 index 00000000..bcf9ba8c --- /dev/null +++ b/src/otari/_client/models/call_tool_result.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from otari._client.models.content_inner import ContentInner +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CallToolResult(BaseModel): + """ + The server's response to a tool call. + """ # noqa: E501 + meta: Optional[Dict[str, Any]] = Field(default=None, alias="_meta") + content: List[ContentInner] + is_error: Optional[StrictBool] = Field(default=False, alias="isError") + structured_content: Optional[Dict[str, Any]] = Field(default=None, description="Provider-native request fields used as defaults (e.g. exa's 'type', searxng's 'engines').", alias="structuredContent") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_meta", "content", "isError", "structuredContent"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CallToolResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in content (list) + _items = [] + if self.content: + for _item_content in self.content: + if _item_content: + _items.append(_item_content.to_dict()) + _dict['content'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if meta (nullable) is None + # and model_fields_set contains the field + if self.meta is None and "meta" in self.model_fields_set: + _dict['_meta'] = None + + # set to None if structured_content (nullable) is None + # and model_fields_set contains the field + if self.structured_content is None and "structured_content" in self.model_fields_set: + _dict['structuredContent'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CallToolResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "_meta": obj.get("_meta"), + "content": [ContentInner.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None, + "isError": obj.get("isError") if obj.get("isError") is not None else False, + "structuredContent": obj.get("structuredContent") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/src/otari/_client/models/caller.py b/src/otari/_client/models/caller.py index b09ea7fe..5e140323 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/caller1.py b/src/otari/_client/models/caller1.py index 5571c5f7..bcfa7fc9 100644 --- a/src/otari/_client/models/caller1.py +++ b/src/otari/_client/models/caller1.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/caller_identity_public.py b/src/otari/_client/models/caller_identity_public.py index a8a8158a..4d8f5ccc 100644 --- a/src/otari/_client/models/caller_identity_public.py +++ b/src/otari/_client/models/caller_identity_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/caller_organization_membership_public.py b/src/otari/_client/models/caller_organization_membership_public.py index 07a52cf0..379a68e2 100644 --- a/src/otari/_client/models/caller_organization_membership_public.py +++ b/src/otari/_client/models/caller_organization_membership_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/caller_organization_memberships_public.py b/src/otari/_client/models/caller_organization_memberships_public.py index c52868ca..114f7aa1 100644 --- a/src/otari/_client/models/caller_organization_memberships_public.py +++ b/src/otari/_client/models/caller_organization_memberships_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/caller_workspace_membership_public.py b/src/otari/_client/models/caller_workspace_membership_public.py index 9830cc41..fe918266 100644 --- a/src/otari/_client/models/caller_workspace_membership_public.py +++ b/src/otari/_client/models/caller_workspace_membership_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/candidate_response.py b/src/otari/_client/models/candidate_response.py index 2c1a0336..36362de2 100644 --- a/src/otari/_client/models/candidate_response.py +++ b/src/otari/_client/models/candidate_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 ade5deb9..05b06233 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 9c2f8590..877fd26e 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 fa3734f6..170020d1 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 c0d6e7c6..c0589f8e 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 40fad90c..5409aa0e 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 4e802842..16080339 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 cb1cbda8..9c97311a 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 e7ad1f74..48ec8d8b 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 64fd0204..55a36b7e 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 a3474e39..fa7f7ebb 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 a4f86b3b..952bfce0 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 bc46708f..28f4e3b8 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 31a890dd..7e6621a9 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 5ca2b292..024c5cb5 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 7bf444e3..07b46ae3 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 6043bec2..d7458408 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 daeca6d2..c7b8152c 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 30e24fdc..6a337351 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 5d3b3805..06ab174c 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 0b0b1093..322e1db3 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 d2af710a..f29fd857 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 35abf713..ce336288 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 4ac2304b..1650fae1 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 9708544f..be68c7e0 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 9fcb6dbc..49183659 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 04455f96..cd28e2f2 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 520b15ec..7ed29cae 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 d286e24e..1650b2d3 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 70ef79ae..6bd00236 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -51,7 +51,7 @@ class ChatCompletionRequest(BaseModel): presence_penalty: Optional[Union[StrictFloat, StrictInt]] = None prompt_cache_key: Optional[StrictStr] = None reasoning_effort: Optional[StrictStr] = None - response_format: Optional[Dict[str, Any]] = None + response_format: Optional[Dict[str, Any]] = Field(default=None, description="Provider-native request fields used as defaults (e.g. exa's 'type', searxng's 'engines').") seed: Optional[StrictInt] = 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.") diff --git a/src/otari/_client/models/chat_completion_request_tools_inner.py b/src/otari/_client/models/chat_completion_request_tools_inner.py index 13c6c5e8..3068f35c 100644 --- a/src/otari/_client/models/chat_completion_request_tools_inner.py +++ b/src/otari/_client/models/chat_completion_request_tools_inner.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/chat_message_input.py b/src/otari/_client/models/chat_message_input.py index c335c845..293271c4 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/config_field.py b/src/otari/_client/models/config_field.py index 5962323f..fd09c130 100644 --- a/src/otari/_client/models/config_field.py +++ b/src/otari/_client/models/config_field.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/config_search_tool_schema.py b/src/otari/_client/models/config_search_tool_schema.py index 80f8f5f6..8db242d9 100644 --- a/src/otari/_client/models/config_search_tool_schema.py +++ b/src/otari/_client/models/config_search_tool_schema.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 4c1f0e4b..e82740d0 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 6ffbeea6..621772b2 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content10.py b/src/otari/_client/models/content10.py index 412876ab..f654c06e 100644 --- a/src/otari/_client/models/content10.py +++ b/src/otari/_client/models/content10.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content11.py b/src/otari/_client/models/content11.py index 5a4fd6d2..caadf5f1 100644 --- a/src/otari/_client/models/content11.py +++ b/src/otari/_client/models/content11.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content12.py b/src/otari/_client/models/content12.py index c133bd15..6337fc50 100644 --- a/src/otari/_client/models/content12.py +++ b/src/otari/_client/models/content12.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content13.py b/src/otari/_client/models/content13.py index de575c5c..8eebfcdd 100644 --- a/src/otari/_client/models/content13.py +++ b/src/otari/_client/models/content13.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content14.py b/src/otari/_client/models/content14.py index 9a1f8962..b2231677 100644 --- a/src/otari/_client/models/content14.py +++ b/src/otari/_client/models/content14.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content15.py b/src/otari/_client/models/content15.py index b4f1a9f9..5ab1a714 100644 --- a/src/otari/_client/models/content15.py +++ b/src/otari/_client/models/content15.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content16.py b/src/otari/_client/models/content16.py index 315d9d1b..43006e80 100644 --- a/src/otari/_client/models/content16.py +++ b/src/otari/_client/models/content16.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content17_inner.py b/src/otari/_client/models/content17_inner.py index 92041b9d..d3283788 100644 --- a/src/otari/_client/models/content17_inner.py +++ b/src/otari/_client/models/content17_inner.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 ffb394a4..bcfe5c02 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 fec0ddd4..ac41fe0f 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 2aaeb50f..ad185541 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 a94023cc..58b802ef 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 5f33cfff..afb2f6fa 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 34f4c0ff..64a54b1a 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 a58ed930..87b6177b 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 769f0f53..2b9b042d 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content9.py b/src/otari/_client/models/content9.py index d5f8e745..7c021cc7 100644 --- a/src/otari/_client/models/content9.py +++ b/src/otari/_client/models/content9.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 901d7ddd..190701b8 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/content_inner.py b/src/otari/_client/models/content_inner.py new file mode 100644 index 00000000..2d5511d3 --- /dev/null +++ b/src/otari/_client/models/content_inner.py @@ -0,0 +1,179 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + 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 Optional +from otari._client.models.audio_content import AudioContent +from otari._client.models.embedded_resource import EmbeddedResource +from otari._client.models.image_content import ImageContent +from otari._client.models.resource_link import ResourceLink +from otari._client.models.text_content import TextContent +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +CONTENTINNER_ANY_OF_SCHEMAS = ["AudioContent", "EmbeddedResource", "ImageContent", "ResourceLink", "TextContent"] + +class ContentInner(BaseModel): + """ + ContentInner + """ + + # data type: TextContent + anyof_schema_1_validator: Optional[TextContent] = None + # data type: ImageContent + anyof_schema_2_validator: Optional[ImageContent] = None + # data type: AudioContent + anyof_schema_3_validator: Optional[AudioContent] = None + # data type: ResourceLink + anyof_schema_4_validator: Optional[ResourceLink] = None + # data type: EmbeddedResource + anyof_schema_5_validator: Optional[EmbeddedResource] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[AudioContent, EmbeddedResource, ImageContent, ResourceLink, TextContent]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "AudioContent", "EmbeddedResource", "ImageContent", "ResourceLink", "TextContent" } + + 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 = ContentInner.model_construct() + error_messages = [] + # validate data type: TextContent + if not isinstance(v, TextContent): + error_messages.append(f"Error! Input type `{type(v)}` is not `TextContent`") + else: + return v + + # validate data type: ImageContent + if not isinstance(v, ImageContent): + error_messages.append(f"Error! Input type `{type(v)}` is not `ImageContent`") + else: + return v + + # validate data type: AudioContent + if not isinstance(v, AudioContent): + error_messages.append(f"Error! Input type `{type(v)}` is not `AudioContent`") + else: + return v + + # validate data type: ResourceLink + if not isinstance(v, ResourceLink): + error_messages.append(f"Error! Input type `{type(v)}` is not `ResourceLink`") + else: + return v + + # validate data type: EmbeddedResource + if not isinstance(v, EmbeddedResource): + error_messages.append(f"Error! Input type `{type(v)}` is not `EmbeddedResource`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in ContentInner with anyOf schemas: AudioContent, EmbeddedResource, ImageContent, ResourceLink, TextContent. 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 = [] + # anyof_schema_1_validator: Optional[TextContent] = None + try: + instance.actual_instance = TextContent.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[ImageContent] = None + try: + instance.actual_instance = ImageContent.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_3_validator: Optional[AudioContent] = None + try: + instance.actual_instance = AudioContent.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_4_validator: Optional[ResourceLink] = None + try: + instance.actual_instance = ResourceLink.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_5_validator: Optional[EmbeddedResource] = None + try: + instance.actual_instance = EmbeddedResource.from_json(json_str) + 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 ContentInner with anyOf schemas: AudioContent, EmbeddedResource, ImageContent, ResourceLink, TextContent. 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], AudioContent, EmbeddedResource, ImageContent, ResourceLink, TextContent]]: + """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/conversation.py b/src/otari/_client/models/conversation.py index c367a047..b4ce930f 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 c7b21a9a..978a5976 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 900ec2cd..744ad13d 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 6f33227b..ff8dadda 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 73235f06..0884a933 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 c8eb06de..7af73348 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 2fb2cb2f..393b779f 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 018280aa..36b03dd2 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/create_own_key_request.py b/src/otari/_client/models/create_own_key_request.py index 38acbf4a..0141f24a 100644 --- a/src/otari/_client/models/create_own_key_request.py +++ b/src/otari/_client/models/create_own_key_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/create_scoped_budget_request.py b/src/otari/_client/models/create_scoped_budget_request.py index c852e52f..86f16208 100644 --- a/src/otari/_client/models/create_scoped_budget_request.py +++ b/src/otari/_client/models/create_scoped_budget_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/create_search_tool_request.py b/src/otari/_client/models/create_search_tool_request.py index bf2f9a17..c544c40c 100644 --- a/src/otari/_client/models/create_search_tool_request.py +++ b/src/otari/_client/models/create_search_tool_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/create_session_request.py b/src/otari/_client/models/create_session_request.py index 799ee232..52740c48 100644 --- a/src/otari/_client/models/create_session_request.py +++ b/src/otari/_client/models/create_session_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/create_stored_provider_request.py b/src/otari/_client/models/create_stored_provider_request.py index bb98f2aa..5247e368 100644 --- a/src/otari/_client/models/create_stored_provider_request.py +++ b/src/otari/_client/models/create_stored_provider_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 101cb4c0..9dfefecf 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/deployment_admin_access_public.py b/src/otari/_client/models/deployment_admin_access_public.py index 859d8356..142a2bcb 100644 --- a/src/otari/_client/models/deployment_admin_access_public.py +++ b/src/otari/_client/models/deployment_admin_access_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/deployment_bootstrap.py b/src/otari/_client/models/deployment_bootstrap.py index 54523ff2..6bfa0b07 100644 --- a/src/otari/_client/models/deployment_bootstrap.py +++ b/src/otari/_client/models/deployment_bootstrap.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/deployment_user_organization_public.py b/src/otari/_client/models/deployment_user_organization_public.py index e35c26b7..1781e921 100644 --- a/src/otari/_client/models/deployment_user_organization_public.py +++ b/src/otari/_client/models/deployment_user_organization_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/deployment_user_public.py b/src/otari/_client/models/deployment_user_public.py index bdfeea71..5bd6602e 100644 --- a/src/otari/_client/models/deployment_user_public.py +++ b/src/otari/_client/models/deployment_user_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/deployment_user_update_request.py b/src/otari/_client/models/deployment_user_update_request.py index a22d6237..0805480c 100644 --- a/src/otari/_client/models/deployment_user_update_request.py +++ b/src/otari/_client/models/deployment_user_update_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/deployment_users_public.py b/src/otari/_client/models/deployment_users_public.py index b0909634..60e0f788 100644 --- a/src/otari/_client/models/deployment_users_public.py +++ b/src/otari/_client/models/deployment_users_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/discoverable_model.py b/src/otari/_client/models/discoverable_model.py index 9305efb6..34e7128d 100644 --- a/src/otari/_client/models/discoverable_model.py +++ b/src/otari/_client/models/discoverable_model.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/discoverable_models_response.py b/src/otari/_client/models/discoverable_models_response.py index 706578ed..fad5da1f 100644 --- a/src/otari/_client/models/discoverable_models_response.py +++ b/src/otari/_client/models/discoverable_models_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/discoverable_provider.py b/src/otari/_client/models/discoverable_provider.py index b0b6e0c0..b74f53a8 100644 --- a/src/otari/_client/models/discoverable_provider.py +++ b/src/otari/_client/models/discoverable_provider.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/dropped_response.py b/src/otari/_client/models/dropped_response.py index 7fe88f3f..3f834c31 100644 --- a/src/otari/_client/models/dropped_response.py +++ b/src/otari/_client/models/dropped_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 39054d8c..e5af620c 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 f7989449..bbb18718 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/embedded_resource.py b/src/otari/_client/models/embedded_resource.py new file mode 100644 index 00000000..93e592ed --- /dev/null +++ b/src/otari/_client/models/embedded_resource.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from otari._client.models.annotations import Annotations +from otari._client.models.resource import Resource +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class EmbeddedResource(BaseModel): + """ + The contents of a resource, embedded into a prompt or tool call result. It is up to the client how best to render embedded resources for the benefit of the LLM and/or the user. + """ # noqa: E501 + meta: Optional[Dict[str, Any]] = Field(default=None, alias="_meta") + annotations: Optional[Annotations] = None + resource: Resource + type: StrictStr + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_meta", "annotations", "resource", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['resource']): + raise ValueError("must be one of enum values ('resource')") + return value + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EmbeddedResource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of annotations + if self.annotations: + _dict['annotations'] = self.annotations.to_dict() + # override the default output from pydantic by calling `to_dict()` of resource + if self.resource: + _dict['resource'] = self.resource.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if meta (nullable) is None + # and model_fields_set contains the field + if self.meta is None and "meta" in self.model_fields_set: + _dict['_meta'] = None + + # set to None if annotations (nullable) is None + # and model_fields_set contains the field + if self.annotations is None and "annotations" in self.model_fields_set: + _dict['annotations'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EmbeddedResource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "_meta": obj.get("_meta"), + "annotations": Annotations.from_dict(obj["annotations"]) if obj.get("annotations") is not None else None, + "resource": Resource.from_dict(obj["resource"]) if obj.get("resource") is not None else None, + "type": obj.get("type") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/src/otari/_client/models/embedding_request.py b/src/otari/_client/models/embedding_request.py index 99c9a8a4..1e8dc682 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/execution_state.py b/src/otari/_client/models/execution_state.py new file mode 100644 index 00000000..49a88a93 --- /dev/null +++ b/src/otari/_client/models/execution_state.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class ExecutionState(str, Enum): + """ + Whether the remote tool may have run (R-ERR-2). A retry-safety classification, not a description of how the HTTP request went. ``NOT_STARTED`` is Otari saying it knows the tool did not run; ``OUTCOME_UNKNOWN`` is Otari saying it cannot know, which is the only honest answer once the transport has begun writing ``tools/call``. + """ + + """ + allowed enum values + """ + NOT_STARTED = 'not_started' + OUTCOME_UNKNOWN = 'outcome_unknown' + COMPLETED = 'completed' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of ExecutionState from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/src/otari/_client/models/explain_request.py b/src/otari/_client/models/explain_request.py index acbb8bfc..37a9d14d 100644 --- a/src/otari/_client/models/explain_request.py +++ b/src/otari/_client/models/explain_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/explain_response.py b/src/otari/_client/models/explain_response.py index 6d6d133a..2c6e8208 100644 --- a/src/otari/_client/models/explain_response.py +++ b/src/otari/_client/models/explain_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/external_events_request.py b/src/otari/_client/models/external_events_request.py index 8b70e982..a5e9e880 100644 --- a/src/otari/_client/models/external_events_request.py +++ b/src/otari/_client/models/external_events_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/external_ingest_error.py b/src/otari/_client/models/external_ingest_error.py index e1d759b7..02c6276b 100644 --- a/src/otari/_client/models/external_ingest_error.py +++ b/src/otari/_client/models/external_ingest_error.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/external_ingest_result.py b/src/otari/_client/models/external_ingest_result.py index 3f976b00..f5d02f13 100644 --- a/src/otari/_client/models/external_ingest_result.py +++ b/src/otari/_client/models/external_ingest_result.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/external_usage_event.py b/src/otari/_client/models/external_usage_event.py index d04271b8..a6a0cdef 100644 --- a/src/otari/_client/models/external_usage_event.py +++ b/src/otari/_client/models/external_usage_event.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/gateway_settings.py b/src/otari/_client/models/gateway_settings.py index 79197922..a65079c2 100644 --- a/src/otari/_client/models/gateway_settings.py +++ b/src/otari/_client/models/gateway_settings.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 e096b37b..f5af1344 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 5744c54c..73168719 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/icon.py b/src/otari/_client/models/icon.py new file mode 100644 index 00000000..30caaec9 --- /dev/null +++ b/src/otari/_client/models/icon.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class Icon(BaseModel): + """ + An icon for display in user interfaces. + """ # noqa: E501 + mime_type: Optional[StrictStr] = Field(default=None, alias="mimeType") + sizes: Optional[List[StrictStr]] = None + src: StrictStr + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["mimeType", "sizes", "src"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Icon from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if mime_type (nullable) is None + # and model_fields_set contains the field + if self.mime_type is None and "mime_type" in self.model_fields_set: + _dict['mimeType'] = None + + # set to None if sizes (nullable) is None + # and model_fields_set contains the field + if self.sizes is None and "sizes" in self.model_fields_set: + _dict['sizes'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Icon from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "mimeType": obj.get("mimeType"), + "sizes": obj.get("sizes"), + "src": obj.get("src") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/src/otari/_client/models/image_content.py b/src/otari/_client/models/image_content.py new file mode 100644 index 00000000..bc0d9e13 --- /dev/null +++ b/src/otari/_client/models/image_content.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from otari._client.models.annotations import Annotations +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ImageContent(BaseModel): + """ + Image content for a message. + """ # noqa: E501 + meta: Optional[Dict[str, Any]] = Field(default=None, alias="_meta") + annotations: Optional[Annotations] = None + data: StrictStr + mime_type: StrictStr = Field(alias="mimeType") + type: StrictStr + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_meta", "annotations", "data", "mimeType", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['image']): + raise ValueError("must be one of enum values ('image')") + return value + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ImageContent from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of annotations + if self.annotations: + _dict['annotations'] = self.annotations.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if meta (nullable) is None + # and model_fields_set contains the field + if self.meta is None and "meta" in self.model_fields_set: + _dict['_meta'] = None + + # set to None if annotations (nullable) is None + # and model_fields_set contains the field + if self.annotations is None and "annotations" in self.model_fields_set: + _dict['annotations'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ImageContent from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "_meta": obj.get("_meta"), + "annotations": Annotations.from_dict(obj["annotations"]) if obj.get("annotations") is not None else None, + "data": obj.get("data"), + "mimeType": obj.get("mimeType"), + "type": obj.get("type") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/src/otari/_client/models/image_generation_request.py b/src/otari/_client/models/image_generation_request.py index 03d17237..84ffe0ee 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 29d5910b..0af3d89e 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 a195792c..646bdf44 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 9bc45b52..a3d9bd1f 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 1641af2a..50e58762 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 5e0080bf..762b237b 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/in_flight_entry.py b/src/otari/_client/models/in_flight_entry.py index a402ba1a..f0773e29 100644 --- a/src/otari/_client/models/in_flight_entry.py +++ b/src/otari/_client/models/in_flight_entry.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/in_flight_response.py b/src/otari/_client/models/in_flight_response.py index 3ba35b04..357d2b6a 100644 --- a/src/otari/_client/models/in_flight_response.py +++ b/src/otari/_client/models/in_flight_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 8a20a10a..9ec3ecfd 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 f2ed17c1..0c733ae9 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/invitation_preview_public.py b/src/otari/_client/models/invitation_preview_public.py index 5de164a5..29f7f487 100644 --- a/src/otari/_client/models/invitation_preview_public.py +++ b/src/otari/_client/models/invitation_preview_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/invite_organization_member_request.py b/src/otari/_client/models/invite_organization_member_request.py index 667bc869..69aad877 100644 --- a/src/otari/_client/models/invite_organization_member_request.py +++ b/src/otari/_client/models/invite_organization_member_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/invite_organization_member_result_public.py b/src/otari/_client/models/invite_organization_member_result_public.py index 4dd6d08f..9ae557d2 100644 --- a/src/otari/_client/models/invite_organization_member_result_public.py +++ b/src/otari/_client/models/invite_organization_member_result_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 4f2f69b7..ab50a4d1 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/known_provider_schema.py b/src/otari/_client/models/known_provider_schema.py index 52f6c1c3..68c46738 100644 --- a/src/otari/_client/models/known_provider_schema.py +++ b/src/otari/_client/models/known_provider_schema.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/known_provider_summary_schema.py b/src/otari/_client/models/known_provider_summary_schema.py index c08da467..32cfbfa6 100644 --- a/src/otari/_client/models/known_provider_summary_schema.py +++ b/src/otari/_client/models/known_provider_summary_schema.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/learned_policy.py b/src/otari/_client/models/learned_policy.py index a77e7362..325b2eec 100644 --- a/src/otari/_client/models/learned_policy.py +++ b/src/otari/_client/models/learned_policy.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 9aac598c..da39cc01 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mail_settings.py b/src/otari/_client/models/mail_settings.py index 78e461bf..b2baddc7 100644 --- a/src/otari/_client/models/mail_settings.py +++ b/src/otari/_client/models/mail_settings.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/maintenance_mode.py b/src/otari/_client/models/maintenance_mode.py index b2fd4b37..60411c4f 100644 --- a/src/otari/_client/models/maintenance_mode.py +++ b/src/otari/_client/models/maintenance_mode.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/managed_tool.py b/src/otari/_client/models/managed_tool.py index 0acfdecf..00e9e2f5 100644 --- a/src/otari/_client/models/managed_tool.py +++ b/src/otari/_client/models/managed_tool.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mcp_error_body.py b/src/otari/_client/models/mcp_error_body.py new file mode 100644 index 00000000..0c6a63ab --- /dev/null +++ b/src/otari/_client/models/mcp_error_body.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from otari._client.models.execution_state import ExecutionState +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class McpErrorBody(BaseModel): + """ + The one error shape both stored-server endpoints return (R-ERR-1). + """ # noqa: E501 + code: StrictStr + detail: StrictStr + execution_state: ExecutionState + request_id: StrictStr + __properties: ClassVar[List[str]] = ["code", "detail", "execution_state", "request_id"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of McpErrorBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of McpErrorBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "code": obj.get("code"), + "detail": obj.get("detail"), + "execution_state": obj.get("execution_state"), + "request_id": obj.get("request_id") + }) + return _obj + + diff --git a/src/otari/_client/models/mcp_execute_request.py b/src/otari/_client/models/mcp_execute_request.py new file mode 100644 index 00000000..3d33e846 --- /dev/null +++ b/src/otari/_client/models/mcp_execute_request.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from uuid import UUID +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class McpExecuteRequest(BaseModel): + """ + One stored server, and the exact call the application authorized. No inline server fields (R-REQ-4): a caller registers a remote MCP server through the control plane once and refers to it by id afterwards, which keeps URLs, credentials, revocation and allowlist policy on Otari's side of the boundary instead of in every request. Extras are forbidden rather than ignored, so a caller still sending the old inline ``server`` block is told its configuration was not used instead of watching Otari quietly execute against a different server than the one it named. + """ # noqa: E501 + arguments: Optional[Dict[str, Any]] = Field(default=None, description="The exact caller-authorized JSON-object arguments.") + client_execution_id: UUID = Field(description="A caller-generated UUID, for correlation only. It is not proof of approval and not an idempotency key: repeating a request with the same value may execute the tool again, so this request must never be retried automatically.") + mcp_server_id: UUID = Field(description="The stored MCP server to execute against.") + server_revision: Annotated[str, Field(strict=True)] = Field(description="The stored-server revision returned by tool discovery. Required, and compared against the current one so a configuration change since the caller authorized this call is refused rather than executed. Not an approval credential.") + tool_name: Annotated[str, Field(min_length=1, strict=True, max_length=256)] = Field(description="The remote MCP tool name the caller authorized for this one execution.") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["arguments", "client_execution_id", "mcp_server_id", "server_revision", "tool_name"] + + @field_validator('server_revision') + def server_revision_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not isinstance(value, str): + value = str(value) + + if not re.match(r"^[A-Za-z0-9._:\-]{1,128}$", value): + raise ValueError(r"must validate the regular expression /^[A-Za-z0-9._:\-]{1,128}$/") + return value + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of McpExecuteRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of McpExecuteRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "arguments": obj.get("arguments"), + "client_execution_id": obj.get("client_execution_id"), + "mcp_server_id": obj.get("mcp_server_id"), + "server_revision": obj.get("server_revision"), + "tool_name": obj.get("tool_name") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/src/otari/_client/models/mcp_server_config.py b/src/otari/_client/models/mcp_server_config.py index bc4add6d..8dcc7082 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,7 +26,7 @@ class McpServerConfig(BaseModel): """ - Inline MCP server configuration accepted on the chat completions request. Streamable HTTP transport. The `url` must be reachable from the gateway process. URL safety (SSRF guard against private/link-local/reserved IP ranges, plus rejecting plain ``http://`` when ``authorization_token`` is set) is enforced by :func:`gateway.services.url_safety.validate_mcp_url`, called from the async request pipeline (``prepare_gateway_tools``) rather than here at parse time: the safety check does a DNS lookup, which must be awaited so it can't block the event loop, and Pydantic validators run synchronously during request-body parsing. + Inline MCP server configuration accepted by generation requests. Streamable HTTP transport. The `url` must be reachable from the gateway process. URL safety (SSRF guard against private/link-local/reserved IP ranges, plus rejecting plain ``http://`` when ``authorization_token`` is set) is enforced by :func:`gateway.services.url_safety.validate_mcp_url`, called from the async request pipeline (``prepare_gateway_tools``) rather than here at parse time: the safety check does a DNS lookup, which must be awaited so it can't block the event loop, and Pydantic validators run synchronously during request-body parsing. """ # noqa: E501 allowed_tools: Optional[List[StrictStr]] = None authorization_token: Optional[StrictStr] = None diff --git a/src/otari/_client/models/mcp_tool_definition.py b/src/otari/_client/models/mcp_tool_definition.py new file mode 100644 index 00000000..99a8da3c --- /dev/null +++ b/src/otari/_client/models/mcp_tool_definition.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class McpToolDefinition(BaseModel): + """ + One live tool a caller-orchestrated application may expose to its model. ``annotations`` is the remote server's own metadata, passed through as untrusted data. Otari never turns ``readOnlyHint`` into an authorization decision (R-RISK-1); each application owns its risk policy, and a server cannot waive an application's approval gate by labeling itself read-only. + """ # noqa: E501 + annotations: Optional[Dict[str, Any]] = Field(default=None, description="Provider-native request fields used as defaults (e.g. exa's 'type', searxng's 'engines').") + description: Optional[StrictStr] = Field(default=None, description="The server's own description, untrusted.") + input_schema: Dict[str, Any] = Field(description="The tool's MCP inputSchema, unmodified.") + name: StrictStr = Field(description="The remote MCP tool name to send back to /v1/mcp/execute.") + __properties: ClassVar[List[str]] = ["annotations", "description", "input_schema", "name"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of McpToolDefinition from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if annotations (nullable) is None + # and model_fields_set contains the field + if self.annotations is None and "annotations" in self.model_fields_set: + _dict['annotations'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of McpToolDefinition from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "annotations": obj.get("annotations"), + "description": obj.get("description"), + "input_schema": obj.get("input_schema"), + "name": obj.get("name") + }) + return _obj + + diff --git a/src/otari/_client/models/mcp_tool_warning.py b/src/otari/_client/models/mcp_tool_warning.py new file mode 100644 index 00000000..65414841 --- /dev/null +++ b/src/otari/_client/models/mcp_tool_warning.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class McpToolWarning(BaseModel): + """ + One tool that was omitted, and the code that omitted it (R-SCHEMA-3). + """ # noqa: E501 + code: StrictStr + tool_name: StrictStr + __properties: ClassVar[List[str]] = ["code", "tool_name"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of McpToolWarning from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of McpToolWarning from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "code": obj.get("code"), + "tool_name": obj.get("tool_name") + }) + return _obj + + diff --git a/src/otari/_client/models/mcp_tools_response.py b/src/otari/_client/models/mcp_tools_response.py new file mode 100644 index 00000000..eaaf070b --- /dev/null +++ b/src/otari/_client/models/mcp_tools_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from uuid import UUID +from otari._client.models.mcp_tool_definition import McpToolDefinition +from otari._client.models.mcp_tool_warning import McpToolWarning +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class McpToolsResponse(BaseModel): + """ + The authorized catalog for one stored server. Carries no server URL, no credential, and no allowlist entry that the live catalog did not return (R-DISC-2). ``server_revision`` is what an application persists with a proposed call and sends back to ``/v1/mcp/execute``, so a stored-configuration change between the two is refused rather than executed. + """ # noqa: E501 + server_id: UUID + server_revision: StrictStr = Field(description="An opaque revision of the stored server's URL, credential, enabled state and allowlist. It detects Otari-side and platform-side configuration changes only: a remote server that changes its own catalog or a tool's behavior behind an unchanged URL will not move it.") + tools: Annotated[List[McpToolDefinition], Field(max_length=200)] + warnings: List[McpToolWarning] + __properties: ClassVar[List[str]] = ["server_id", "server_revision", "tools", "warnings"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of McpToolsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # 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 + # override the default output from pydantic by calling `to_dict()` of each item in warnings (list) + _items = [] + if self.warnings: + for _item_warnings in self.warnings: + if _item_warnings: + _items.append(_item_warnings.to_dict()) + _dict['warnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of McpToolsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "server_id": obj.get("server_id"), + "server_revision": obj.get("server_revision"), + "tools": [McpToolDefinition.from_dict(_item) for _item in obj["tools"]] if obj.get("tools") is not None else None, + "warnings": [McpToolWarning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None + }) + return _obj + + diff --git a/src/otari/_client/models/message.py b/src/otari/_client/models/message.py index 9888d332..accc70b4 100644 --- a/src/otari/_client/models/message.py +++ b/src/otari/_client/models/message.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 08a6abd0..4d2fc105 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 181d4e5c..fa63ccb0 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/model.py b/src/otari/_client/models/model.py index 94792035..581e7355 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/model1.py b/src/otari/_client/models/model1.py index bef5103f..cbfbc17e 100644 --- a/src/otari/_client/models/model1.py +++ b/src/otari/_client/models/model1.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 25ec4ec6..3dfaaf5f 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/model_metadata.py b/src/otari/_client/models/model_metadata.py index 11ab36fb..8f334fc8 100644 --- a/src/otari/_client/models/model_metadata.py +++ b/src/otari/_client/models/model_metadata.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/model_metadata_response.py b/src/otari/_client/models/model_metadata_response.py index a98fe970..ca2a0b21 100644 --- a/src/otari/_client/models/model_metadata_response.py +++ b/src/otari/_client/models/model_metadata_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 36b7b42d..9c900234 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 416fd215..a8f8107b 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 6766293b..aded4b31 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 1f54fb24..b1afb7b7 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 4a574eb9..98893e05 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_anthropic_types_thinking_block_thinking_block.py b/src/otari/_client/models/mr_anthropic_types_thinking_block_thinking_block.py index 7f4dd8d6..8d04f5ee 100644 --- a/src/otari/_client/models/mr_anthropic_types_thinking_block_thinking_block.py +++ b/src/otari/_client/models/mr_anthropic_types_thinking_block_thinking_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_any_llm_types_messages_thinking_block.py b/src/otari/_client/models/mr_any_llm_types_messages_thinking_block.py index 16edd2eb..8249edc3 100644 --- a/src/otari/_client/models/mr_any_llm_types_messages_thinking_block.py +++ b/src/otari/_client/models/mr_any_llm_types_messages_thinking_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 61bfc0b0..4ca361b5 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 d08ccb67..af44d3f8 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 cabd6a20..aab683ad 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 e2b93767..d4503ca7 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 53931937..65ce09a1 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_advisor_message_iteration_usage.py b/src/otari/_client/models/mr_beta_advisor_message_iteration_usage.py index 112e825b..24f49126 100644 --- a/src/otari/_client/models/mr_beta_advisor_message_iteration_usage.py +++ b/src/otari/_client/models/mr_beta_advisor_message_iteration_usage.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_advisor_redacted_result_block.py b/src/otari/_client/models/mr_beta_advisor_redacted_result_block.py index c47152f6..d2da4218 100644 --- a/src/otari/_client/models/mr_beta_advisor_redacted_result_block.py +++ b/src/otari/_client/models/mr_beta_advisor_redacted_result_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_advisor_result_block.py b/src/otari/_client/models/mr_beta_advisor_result_block.py index 345d4cf3..45f2ea60 100644 --- a/src/otari/_client/models/mr_beta_advisor_result_block.py +++ b/src/otari/_client/models/mr_beta_advisor_result_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_advisor_tool_result_block.py b/src/otari/_client/models/mr_beta_advisor_tool_result_block.py index e5dea7cb..29fcbf32 100644 --- a/src/otari/_client/models/mr_beta_advisor_tool_result_block.py +++ b/src/otari/_client/models/mr_beta_advisor_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_advisor_tool_result_error.py b/src/otari/_client/models/mr_beta_advisor_tool_result_error.py index 2f430be0..9f918a88 100644 --- a/src/otari/_client/models/mr_beta_advisor_tool_result_error.py +++ b/src/otari/_client/models/mr_beta_advisor_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_base64_pdf_source.py b/src/otari/_client/models/mr_beta_base64_pdf_source.py index bb0a0388..f0696886 100644 --- a/src/otari/_client/models/mr_beta_base64_pdf_source.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_bash_code_execution_output_block.py b/src/otari/_client/models/mr_beta_bash_code_execution_output_block.py index dc3e7430..6f51b5d1 100644 --- a/src/otari/_client/models/mr_beta_bash_code_execution_output_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_bash_code_execution_result_block.py b/src/otari/_client/models/mr_beta_bash_code_execution_result_block.py index a691fb55..747a814a 100644 --- a/src/otari/_client/models/mr_beta_bash_code_execution_result_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_bash_code_execution_tool_result_block.py b/src/otari/_client/models/mr_beta_bash_code_execution_tool_result_block.py index 5dcf98db..359459f4 100644 --- a/src/otari/_client/models/mr_beta_bash_code_execution_tool_result_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_bash_code_execution_tool_result_error.py b/src/otari/_client/models/mr_beta_bash_code_execution_tool_result_error.py index 65532ebd..bd14db2b 100644 --- a/src/otari/_client/models/mr_beta_bash_code_execution_tool_result_error.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_cache_creation.py b/src/otari/_client/models/mr_beta_cache_creation.py index db614ce0..1fead4cb 100644 --- a/src/otari/_client/models/mr_beta_cache_creation.py +++ b/src/otari/_client/models/mr_beta_cache_creation.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_cache_miss_messages_changed.py b/src/otari/_client/models/mr_beta_cache_miss_messages_changed.py index 137651d6..c4519c79 100644 --- a/src/otari/_client/models/mr_beta_cache_miss_messages_changed.py +++ b/src/otari/_client/models/mr_beta_cache_miss_messages_changed.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_cache_miss_model_changed.py b/src/otari/_client/models/mr_beta_cache_miss_model_changed.py index ca5596fb..fa6491e4 100644 --- a/src/otari/_client/models/mr_beta_cache_miss_model_changed.py +++ b/src/otari/_client/models/mr_beta_cache_miss_model_changed.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_cache_miss_previous_message_not_found.py b/src/otari/_client/models/mr_beta_cache_miss_previous_message_not_found.py index cfe4dd99..a237f884 100644 --- a/src/otari/_client/models/mr_beta_cache_miss_previous_message_not_found.py +++ b/src/otari/_client/models/mr_beta_cache_miss_previous_message_not_found.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_cache_miss_system_changed.py b/src/otari/_client/models/mr_beta_cache_miss_system_changed.py index 106cbbc0..3e72f294 100644 --- a/src/otari/_client/models/mr_beta_cache_miss_system_changed.py +++ b/src/otari/_client/models/mr_beta_cache_miss_system_changed.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_cache_miss_tools_changed.py b/src/otari/_client/models/mr_beta_cache_miss_tools_changed.py index c763e335..611d1df2 100644 --- a/src/otari/_client/models/mr_beta_cache_miss_tools_changed.py +++ b/src/otari/_client/models/mr_beta_cache_miss_tools_changed.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_cache_miss_unavailable.py b/src/otari/_client/models/mr_beta_cache_miss_unavailable.py index 43b77f99..ce527451 100644 --- a/src/otari/_client/models/mr_beta_cache_miss_unavailable.py +++ b/src/otari/_client/models/mr_beta_cache_miss_unavailable.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_citation_char_location.py b/src/otari/_client/models/mr_beta_citation_char_location.py index d6614f64..3d6a40a8 100644 --- a/src/otari/_client/models/mr_beta_citation_char_location.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_citation_config.py b/src/otari/_client/models/mr_beta_citation_config.py index c3475764..32bb1b78 100644 --- a/src/otari/_client/models/mr_beta_citation_config.py +++ b/src/otari/_client/models/mr_beta_citation_config.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_citation_content_block_location.py b/src/otari/_client/models/mr_beta_citation_content_block_location.py index 47013cd2..9c0b4d7c 100644 --- a/src/otari/_client/models/mr_beta_citation_content_block_location.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_citation_page_location.py b/src/otari/_client/models/mr_beta_citation_page_location.py index fe572ec6..ba65a482 100644 --- a/src/otari/_client/models/mr_beta_citation_page_location.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_citation_search_result_location.py b/src/otari/_client/models/mr_beta_citation_search_result_location.py index 650d1e8d..f3c7d593 100644 --- a/src/otari/_client/models/mr_beta_citation_search_result_location.py +++ b/src/otari/_client/models/mr_beta_citation_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_citations_web_search_result_location.py b/src/otari/_client/models/mr_beta_citations_web_search_result_location.py index 0f1d54a6..bddb756a 100644 --- a/src/otari/_client/models/mr_beta_citations_web_search_result_location.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_clear_thinking20251015_edit_response.py b/src/otari/_client/models/mr_beta_clear_thinking20251015_edit_response.py index e65724bd..6525c1f9 100644 --- a/src/otari/_client/models/mr_beta_clear_thinking20251015_edit_response.py +++ b/src/otari/_client/models/mr_beta_clear_thinking20251015_edit_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_clear_tool_uses20250919_edit_response.py b/src/otari/_client/models/mr_beta_clear_tool_uses20250919_edit_response.py index 886c9bb2..e87c7093 100644 --- a/src/otari/_client/models/mr_beta_clear_tool_uses20250919_edit_response.py +++ b/src/otari/_client/models/mr_beta_clear_tool_uses20250919_edit_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_code_execution_output_block.py b/src/otari/_client/models/mr_beta_code_execution_output_block.py index 55033f76..bcba85ec 100644 --- a/src/otari/_client/models/mr_beta_code_execution_output_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_code_execution_result_block.py b/src/otari/_client/models/mr_beta_code_execution_result_block.py index 8c3f37c3..ec28af55 100644 --- a/src/otari/_client/models/mr_beta_code_execution_result_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_code_execution_tool_result_block.py b/src/otari/_client/models/mr_beta_code_execution_tool_result_block.py index 850584e8..9a4f82b6 100644 --- a/src/otari/_client/models/mr_beta_code_execution_tool_result_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_code_execution_tool_result_error.py b/src/otari/_client/models/mr_beta_code_execution_tool_result_error.py index dc394651..7fd8f345 100644 --- a/src/otari/_client/models/mr_beta_code_execution_tool_result_error.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_compaction_block.py b/src/otari/_client/models/mr_beta_compaction_block.py index 9c7b4d9c..8920f23d 100644 --- a/src/otari/_client/models/mr_beta_compaction_block.py +++ b/src/otari/_client/models/mr_beta_compaction_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_compaction_iteration_usage.py b/src/otari/_client/models/mr_beta_compaction_iteration_usage.py index a834c6b7..dd378e81 100644 --- a/src/otari/_client/models/mr_beta_compaction_iteration_usage.py +++ b/src/otari/_client/models/mr_beta_compaction_iteration_usage.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_container.py b/src/otari/_client/models/mr_beta_container.py index c1f54853..5857bbd6 100644 --- a/src/otari/_client/models/mr_beta_container.py +++ b/src/otari/_client/models/mr_beta_container.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_container_upload_block.py b/src/otari/_client/models/mr_beta_container_upload_block.py index f156c39e..cc5e1ac6 100644 --- a/src/otari/_client/models/mr_beta_container_upload_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_context_management_response.py b/src/otari/_client/models/mr_beta_context_management_response.py index f9788113..7ecfa38e 100644 --- a/src/otari/_client/models/mr_beta_context_management_response.py +++ b/src/otari/_client/models/mr_beta_context_management_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_diagnostics.py b/src/otari/_client/models/mr_beta_diagnostics.py index fc3e6e6c..bdc6439f 100644 --- a/src/otari/_client/models/mr_beta_diagnostics.py +++ b/src/otari/_client/models/mr_beta_diagnostics.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_direct_caller.py b/src/otari/_client/models/mr_beta_direct_caller.py index d350d37f..61a187a9 100644 --- a/src/otari/_client/models/mr_beta_direct_caller.py +++ b/src/otari/_client/models/mr_beta_direct_caller.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_document_block.py b/src/otari/_client/models/mr_beta_document_block.py index 13d8ed1d..335b7b32 100644 --- a/src/otari/_client/models/mr_beta_document_block.py +++ b/src/otari/_client/models/mr_beta_document_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_encrypted_code_execution_result_block.py b/src/otari/_client/models/mr_beta_encrypted_code_execution_result_block.py index 04bdf879..2382fa4c 100644 --- a/src/otari/_client/models/mr_beta_encrypted_code_execution_result_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_fallback_block.py b/src/otari/_client/models/mr_beta_fallback_block.py index f3c9a294..cf329f75 100644 --- a/src/otari/_client/models/mr_beta_fallback_block.py +++ b/src/otari/_client/models/mr_beta_fallback_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_fallback_info.py b/src/otari/_client/models/mr_beta_fallback_info.py index b6305098..8b5cc768 100644 --- a/src/otari/_client/models/mr_beta_fallback_info.py +++ b/src/otari/_client/models/mr_beta_fallback_info.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_fallback_message_iteration_usage.py b/src/otari/_client/models/mr_beta_fallback_message_iteration_usage.py index 2cd2265b..f92b3595 100644 --- a/src/otari/_client/models/mr_beta_fallback_message_iteration_usage.py +++ b/src/otari/_client/models/mr_beta_fallback_message_iteration_usage.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_fallback_refusal_trigger.py b/src/otari/_client/models/mr_beta_fallback_refusal_trigger.py index 68fb8e2d..ebc10a47 100644 --- a/src/otari/_client/models/mr_beta_fallback_refusal_trigger.py +++ b/src/otari/_client/models/mr_beta_fallback_refusal_trigger.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_mcp_tool_result_block.py b/src/otari/_client/models/mr_beta_mcp_tool_result_block.py index ca4ccbb3..a05da8e9 100644 --- a/src/otari/_client/models/mr_beta_mcp_tool_result_block.py +++ b/src/otari/_client/models/mr_beta_mcp_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_mcp_tool_use_block.py b/src/otari/_client/models/mr_beta_mcp_tool_use_block.py index d72a837c..e1f99457 100644 --- a/src/otari/_client/models/mr_beta_mcp_tool_use_block.py +++ b/src/otari/_client/models/mr_beta_mcp_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_message_iteration_usage.py b/src/otari/_client/models/mr_beta_message_iteration_usage.py index 72b63bb6..5d0b0761 100644 --- a/src/otari/_client/models/mr_beta_message_iteration_usage.py +++ b/src/otari/_client/models/mr_beta_message_iteration_usage.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_plain_text_source.py b/src/otari/_client/models/mr_beta_plain_text_source.py index 9bcc3e51..2beb9dd6 100644 --- a/src/otari/_client/models/mr_beta_plain_text_source.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_redacted_thinking_block.py b/src/otari/_client/models/mr_beta_redacted_thinking_block.py index 44ba7155..3bfb002e 100644 --- a/src/otari/_client/models/mr_beta_redacted_thinking_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_server_tool_caller.py b/src/otari/_client/models/mr_beta_server_tool_caller.py index 06c3bcbe..5900af33 100644 --- a/src/otari/_client/models/mr_beta_server_tool_caller.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_server_tool_caller20260120.py b/src/otari/_client/models/mr_beta_server_tool_caller20260120.py index 2fc2c6fe..12a7bf42 100644 --- a/src/otari/_client/models/mr_beta_server_tool_caller20260120.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_server_tool_use_block.py b/src/otari/_client/models/mr_beta_server_tool_use_block.py index 976fa437..2501aec7 100644 --- a/src/otari/_client/models/mr_beta_server_tool_use_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_skill.py b/src/otari/_client/models/mr_beta_skill.py index 977cb885..3ea9089f 100644 --- a/src/otari/_client/models/mr_beta_skill.py +++ b/src/otari/_client/models/mr_beta_skill.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_text_block.py b/src/otari/_client/models/mr_beta_text_block.py index 3ea898e9..2d42458c 100644 --- a/src/otari/_client/models/mr_beta_text_block.py +++ b/src/otari/_client/models/mr_beta_text_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_text_block_citations_inner.py b/src/otari/_client/models/mr_beta_text_block_citations_inner.py index 0380795d..9c1d9a74 100644 --- a/src/otari/_client/models/mr_beta_text_block_citations_inner.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_text_editor_code_execution_create_result_block.py b/src/otari/_client/models/mr_beta_text_editor_code_execution_create_result_block.py index c8f8daa2..93c80c64 100644 --- a/src/otari/_client/models/mr_beta_text_editor_code_execution_create_result_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_text_editor_code_execution_str_replace_result_block.py b/src/otari/_client/models/mr_beta_text_editor_code_execution_str_replace_result_block.py index ef8d5494..584af3ec 100644 --- a/src/otari/_client/models/mr_beta_text_editor_code_execution_str_replace_result_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_text_editor_code_execution_tool_result_block.py b/src/otari/_client/models/mr_beta_text_editor_code_execution_tool_result_block.py index 3ac92adb..47af5a07 100644 --- a/src/otari/_client/models/mr_beta_text_editor_code_execution_tool_result_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_text_editor_code_execution_tool_result_error.py b/src/otari/_client/models/mr_beta_text_editor_code_execution_tool_result_error.py index 4ce1599b..78367da6 100644 --- a/src/otari/_client/models/mr_beta_text_editor_code_execution_tool_result_error.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_text_editor_code_execution_view_result_block.py b/src/otari/_client/models/mr_beta_text_editor_code_execution_view_result_block.py index 5f1b78c6..d64132a4 100644 --- a/src/otari/_client/models/mr_beta_text_editor_code_execution_view_result_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_thinking_block.py b/src/otari/_client/models/mr_beta_thinking_block.py index df758950..95c5e5f7 100644 --- a/src/otari/_client/models/mr_beta_thinking_block.py +++ b/src/otari/_client/models/mr_beta_thinking_block.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_tool_reference_block.py b/src/otari/_client/models/mr_beta_tool_reference_block.py index 32c1c640..df6ce95d 100644 --- a/src/otari/_client/models/mr_beta_tool_reference_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_tool_search_tool_result_block.py b/src/otari/_client/models/mr_beta_tool_search_tool_result_block.py index ea8bf9cf..f22120ba 100644 --- a/src/otari/_client/models/mr_beta_tool_search_tool_result_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_tool_search_tool_result_error.py b/src/otari/_client/models/mr_beta_tool_search_tool_result_error.py index 5a2e0415..f9312e7e 100644 --- a/src/otari/_client/models/mr_beta_tool_search_tool_result_error.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_tool_search_tool_search_result_block.py b/src/otari/_client/models/mr_beta_tool_search_tool_search_result_block.py index 018f25f5..688d7e59 100644 --- a/src/otari/_client/models/mr_beta_tool_search_tool_search_result_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_tool_use_block.py b/src/otari/_client/models/mr_beta_tool_use_block.py index 5a34180e..e3f30d8d 100644 --- a/src/otari/_client/models/mr_beta_tool_use_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_web_fetch_block.py b/src/otari/_client/models/mr_beta_web_fetch_block.py index a2f22fad..eef6c8d3 100644 --- a/src/otari/_client/models/mr_beta_web_fetch_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_web_fetch_tool_result_block.py b/src/otari/_client/models/mr_beta_web_fetch_tool_result_block.py index 5eb78aac..25219862 100644 --- a/src/otari/_client/models/mr_beta_web_fetch_tool_result_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_web_fetch_tool_result_error_block.py b/src/otari/_client/models/mr_beta_web_fetch_tool_result_error_block.py index 8aad76f3..a1256c09 100644 --- a/src/otari/_client/models/mr_beta_web_fetch_tool_result_error_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_web_search_result_block.py b/src/otari/_client/models/mr_beta_web_search_result_block.py index 6617f135..f5cf373a 100644 --- a/src/otari/_client/models/mr_beta_web_search_result_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_web_search_tool_result_block.py b/src/otari/_client/models/mr_beta_web_search_tool_result_block.py index e6774472..4699c605 100644 --- a/src/otari/_client/models/mr_beta_web_search_tool_result_block.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_beta_web_search_tool_result_error.py b/src/otari/_client/models/mr_beta_web_search_tool_result_error.py index 4e24161b..4fd2e940 100644 --- a/src/otari/_client/models/mr_beta_web_search_tool_result_error.py +++ b/src/otari/_client/models/mr_beta_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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 e473d7e6..c8702a37 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 f50939c5..77ee8193 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 ae780b31..82a4130a 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 de1b12f4..a439b4d6 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 5d6ca7db..a8b0abc3 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 f1da49b3..c4000c56 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 4c9da5be..ccc35286 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 7f2837fc..f1c4aaca 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 534349f2..2844b19c 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 946b64f3..508caa69 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 01d4fa81..c248d256 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 eb548e6d..8d4af0ee 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 ae04191f..82a65f80 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 8ec1961e..3af57bfb 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 fbc67595..0cd22884 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_message_usage.py b/src/otari/_client/models/mr_message_usage.py index a9bcef49..9561a825 100644 --- a/src/otari/_client/models/mr_message_usage.py +++ b/src/otari/_client/models/mr_message_usage.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_message_usage_iterations_inner.py b/src/otari/_client/models/mr_message_usage_iterations_inner.py index ab3d7c4f..77c6d75b 100644 --- a/src/otari/_client/models/mr_message_usage_iterations_inner.py +++ b/src/otari/_client/models/mr_message_usage_iterations_inner.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/mr_output_tokens_details.py b/src/otari/_client/models/mr_output_tokens_details.py index b230873b..b5c09ff5 100644 --- a/src/otari/_client/models/mr_output_tokens_details.py +++ b/src/otari/_client/models/mr_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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 1ef84b01..396af6d5 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 f0ac49b3..542c1fc9 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 acf5952e..43dbd127 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 e17537eb..335a2831 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 50991b38..7b52504e 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 2016d849..bfe86f61 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 e5967b53..fe9146b4 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 7d7a24e6..3f045bf0 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 855de4b8..344c6319 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 8ae1d81c..1c879c02 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 9c40145d..255c4743 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 31137a49..86957e69 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 8f43e7eb..b8630ed1 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 7488ee24..19b1062b 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 a7b34db1..5dfce594 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 e95592d8..f823c8e6 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 7c95490e..153e2ac2 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 309652fb..288f7a37 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 69b5838d..aa70599c 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 e5feb766..b165e685 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 07968fea..2cd13605 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 825756d1..743bed40 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 c383b8c9..2b3bf8d7 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 bca4c514..419fc6ed 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 a834edf8..01a33f08 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 f7f154a0..f18858b7 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 6ab3e67d..dcb2f546 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 f0f6a49d..bf99579b 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 a3b9924c..6d5dc60e 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 b602ec14..c4026955 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 28819604..e9037185 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 7d810184..7e2d68a7 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 8a3f93dd..541c4276 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 bdde63b0..4494541c 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 b3e0e5a9..d0c0d6b9 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 f5d2afee..3ac90085 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 effa3fe7..520fdc43 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 93028f12..de7944be 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 6f2a3260..bc452c58 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 dbf4c061..c381cf7c 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 a5bfc742..e9ca9f7f 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 2ff765ac..ff55fc4e 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 4d0f154f..ac0d2126 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 1bbe8cde..22c94d66 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 b99f4f73..c2c5a949 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/o_auth_callback_request.py b/src/otari/_client/models/o_auth_callback_request.py index 455cfabd..566011ea 100644 --- a/src/otari/_client/models/o_auth_callback_request.py +++ b/src/otari/_client/models/o_auth_callback_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,10 +26,11 @@ class OAuthCallbackRequest(BaseModel): """ - The authorization code a provider handed the browser. No ``redirect_uri``: this deployment derives its own from ``public_base_url`` so the URI used to build the authorization request and the one sent with the exchange are the same string by construction, and a browser cannot choose what this server sends to a provider. No ``state`` either, and that is not an omission. The state is checked in the browser, against the value that browser stored when it started the flow; sending it here would let this deployment compare a value to itself, which proves nothing without somewhere to have kept the original. + The authorization code a provider handed the browser. No ``redirect_uri``: this deployment derives its own from ``public_base_url`` so the URI used to build the authorization request and the one sent with the exchange are the same string by construction, and a browser cannot choose what this server sends to a provider. ``state`` is required, and is what binds this callback to an authorization request this deployment actually made: it is claimed from ``oauth_pending_state`` before the code is sent anywhere, and the row it claims is what carries the PKCE verifier the exchange needs. The flow cookie ``/authorize`` set travels alongside and binds it to the browser. """ # noqa: E501 code: Annotated[str, Field(strict=True, max_length=2048)] = Field(description="The authorization code from the provider's redirect.") - __properties: ClassVar[List[str]] = ["code"] + state: Annotated[str, Field(strict=True, max_length=512)] = Field(description="The 'state' from the provider's redirect, as issued by /authorize.") + __properties: ClassVar[List[str]] = ["code", "state"] model_config = ConfigDict( validate_by_name=True, @@ -82,7 +83,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "code": obj.get("code") + "code": obj.get("code"), + "state": obj.get("state") }) return _obj diff --git a/src/otari/_client/models/o_auth_session_response.py b/src/otari/_client/models/o_auth_session_response.py index 1b586671..807628d4 100644 --- a/src/otari/_client/models/o_auth_session_response.py +++ b/src/otari/_client/models/o_auth_session_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/org_provider_key_create_request.py b/src/otari/_client/models/org_provider_key_create_request.py index 6b19bee9..f2e8abbc 100644 --- a/src/otari/_client/models/org_provider_key_create_request.py +++ b/src/otari/_client/models/org_provider_key_create_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/org_provider_key_public.py b/src/otari/_client/models/org_provider_key_public.py index b441379f..9061e024 100644 --- a/src/otari/_client/models/org_provider_key_public.py +++ b/src/otari/_client/models/org_provider_key_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/org_provider_key_update_request.py b/src/otari/_client/models/org_provider_key_update_request.py index 7298281d..82c54455 100644 --- a/src/otari/_client/models/org_provider_key_update_request.py +++ b/src/otari/_client/models/org_provider_key_update_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/org_provider_keys_public.py b/src/otari/_client/models/org_provider_keys_public.py index 65adc60a..6d4c4b17 100644 --- a/src/otari/_client/models/org_provider_keys_public.py +++ b/src/otari/_client/models/org_provider_keys_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_budget_create.py b/src/otari/_client/models/organization_budget_create.py index f1a79d71..ff5523bc 100644 --- a/src/otari/_client/models/organization_budget_create.py +++ b/src/otari/_client/models/organization_budget_create.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_budget_public.py b/src/otari/_client/models/organization_budget_public.py index 8cad599e..39f1df52 100644 --- a/src/otari/_client/models/organization_budget_public.py +++ b/src/otari/_client/models/organization_budget_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_budget_update.py b/src/otari/_client/models/organization_budget_update.py index fae06682..e7398e01 100644 --- a/src/otari/_client/models/organization_budget_update.py +++ b/src/otari/_client/models/organization_budget_update.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_budgets_public.py b/src/otari/_client/models/organization_budgets_public.py index 8967634b..8965009c 100644 --- a/src/otari/_client/models/organization_budgets_public.py +++ b/src/otari/_client/models/organization_budgets_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_create_request.py b/src/otari/_client/models/organization_create_request.py index 09da2377..78697d6a 100644 --- a/src/otari/_client/models/organization_create_request.py +++ b/src/otari/_client/models/organization_create_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_domain_create_request.py b/src/otari/_client/models/organization_domain_create_request.py index 2de01e67..643c2754 100644 --- a/src/otari/_client/models/organization_domain_create_request.py +++ b/src/otari/_client/models/organization_domain_create_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_domain_public.py b/src/otari/_client/models/organization_domain_public.py index c947e4a6..4ba4501e 100644 --- a/src/otari/_client/models/organization_domain_public.py +++ b/src/otari/_client/models/organization_domain_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_domain_update_request.py b/src/otari/_client/models/organization_domain_update_request.py index 41b8812d..6c307ab5 100644 --- a/src/otari/_client/models/organization_domain_update_request.py +++ b/src/otari/_client/models/organization_domain_update_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_domains_public.py b/src/otari/_client/models/organization_domains_public.py index d7b46aad..452df92e 100644 --- a/src/otari/_client/models/organization_domains_public.py +++ b/src/otari/_client/models/organization_domains_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_guardrail_create.py b/src/otari/_client/models/organization_guardrail_create.py index 0ccdd0a4..ae23e798 100644 --- a/src/otari/_client/models/organization_guardrail_create.py +++ b/src/otari/_client/models/organization_guardrail_create.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_guardrail_public.py b/src/otari/_client/models/organization_guardrail_public.py index 2bc36ed7..d56fe3a9 100644 --- a/src/otari/_client/models/organization_guardrail_public.py +++ b/src/otari/_client/models/organization_guardrail_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_guardrail_update.py b/src/otari/_client/models/organization_guardrail_update.py index 56477127..a1ea31d7 100644 --- a/src/otari/_client/models/organization_guardrail_update.py +++ b/src/otari/_client/models/organization_guardrail_update.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_guardrails_public.py b/src/otari/_client/models/organization_guardrails_public.py index e52b2be6..cfceb4b1 100644 --- a/src/otari/_client/models/organization_guardrails_public.py +++ b/src/otari/_client/models/organization_guardrails_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_membership_context_public.py b/src/otari/_client/models/organization_membership_context_public.py index 6b1739e0..50802fcd 100644 --- a/src/otari/_client/models/organization_membership_context_public.py +++ b/src/otari/_client/models/organization_membership_context_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_model_pricing_create.py b/src/otari/_client/models/organization_model_pricing_create.py index f2b03b49..9e8b133d 100644 --- a/src/otari/_client/models/organization_model_pricing_create.py +++ b/src/otari/_client/models/organization_model_pricing_create.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_model_pricing_public.py b/src/otari/_client/models/organization_model_pricing_public.py index 47118af4..ae596dd5 100644 --- a/src/otari/_client/models/organization_model_pricing_public.py +++ b/src/otari/_client/models/organization_model_pricing_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_model_pricing_update.py b/src/otari/_client/models/organization_model_pricing_update.py index 186c5398..b4913ac2 100644 --- a/src/otari/_client/models/organization_model_pricing_update.py +++ b/src/otari/_client/models/organization_model_pricing_update.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_model_pricings_public.py b/src/otari/_client/models/organization_model_pricings_public.py index 6c84146a..84e60987 100644 --- a/src/otari/_client/models/organization_model_pricings_public.py +++ b/src/otari/_client/models/organization_model_pricings_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_public.py b/src/otari/_client/models/organization_public.py index 35ca3700..9f492d03 100644 --- a/src/otari/_client/models/organization_public.py +++ b/src/otari/_client/models/organization_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_scoped_budget_create.py b/src/otari/_client/models/organization_scoped_budget_create.py index 0303d3f9..b801cb67 100644 --- a/src/otari/_client/models/organization_scoped_budget_create.py +++ b/src/otari/_client/models/organization_scoped_budget_create.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_scoped_budget_public.py b/src/otari/_client/models/organization_scoped_budget_public.py index 4466fb1a..cfdc1ab3 100644 --- a/src/otari/_client/models/organization_scoped_budget_public.py +++ b/src/otari/_client/models/organization_scoped_budget_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_scoped_budget_update.py b/src/otari/_client/models/organization_scoped_budget_update.py index 72fc4bb3..928e95a8 100644 --- a/src/otari/_client/models/organization_scoped_budget_update.py +++ b/src/otari/_client/models/organization_scoped_budget_update.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/organization_scoped_budgets_public.py b/src/otari/_client/models/organization_scoped_budgets_public.py index 9a615b87..3846155d 100644 --- a/src/otari/_client/models/organization_scoped_budgets_public.py +++ b/src/otari/_client/models/organization_scoped_budgets_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/passkey_session_response.py b/src/otari/_client/models/passkey_session_response.py index cdd03d4a..3040830a 100644 --- a/src/otari/_client/models/passkey_session_response.py +++ b/src/otari/_client/models/passkey_session_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/password_response.py b/src/otari/_client/models/password_response.py index 05a4a36a..a9d7480b 100644 --- a/src/otari/_client/models/password_response.py +++ b/src/otari/_client/models/password_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/pending_organization_invitation_public.py b/src/otari/_client/models/pending_organization_invitation_public.py index e886b7bb..9c447b6a 100644 --- a/src/otari/_client/models/pending_organization_invitation_public.py +++ b/src/otari/_client/models/pending_organization_invitation_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/pending_organization_invitations_public.py b/src/otari/_client/models/pending_organization_invitations_public.py index 8ef46c50..036eadd6 100644 --- a/src/otari/_client/models/pending_organization_invitations_public.py +++ b/src/otari/_client/models/pending_organization_invitations_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/policy_request.py b/src/otari/_client/models/policy_request.py index 6b016819..6232b2b1 100644 --- a/src/otari/_client/models/policy_request.py +++ b/src/otari/_client/models/policy_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/policy_response.py b/src/otari/_client/models/policy_response.py index 94abc05e..17dfdc0c 100644 --- a/src/otari/_client/models/policy_response.py +++ b/src/otari/_client/models/policy_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/pool_status.py b/src/otari/_client/models/pool_status.py index d65b618f..f77cb569 100644 --- a/src/otari/_client/models/pool_status.py +++ b/src/otari/_client/models/pool_status.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/pricing_refresh_change_response.py b/src/otari/_client/models/pricing_refresh_change_response.py index ece95161..ec494f9e 100644 --- a/src/otari/_client/models/pricing_refresh_change_response.py +++ b/src/otari/_client/models/pricing_refresh_change_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/pricing_refresh_confirmation_response.py b/src/otari/_client/models/pricing_refresh_confirmation_response.py index c0b99066..ef4329a2 100644 --- a/src/otari/_client/models/pricing_refresh_confirmation_response.py +++ b/src/otari/_client/models/pricing_refresh_confirmation_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/pricing_refresh_preview_response.py b/src/otari/_client/models/pricing_refresh_preview_response.py index 4d0f991b..54c08875 100644 --- a/src/otari/_client/models/pricing_refresh_preview_response.py +++ b/src/otari/_client/models/pricing_refresh_preview_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 f4f59f8e..ad1caadd 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/pricing_tier.py b/src/otari/_client/models/pricing_tier.py index 4be181f2..2ff1dc49 100644 --- a/src/otari/_client/models/pricing_tier.py +++ b/src/otari/_client/models/pricing_tier.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/pricing_tiers_inner.py b/src/otari/_client/models/pricing_tiers_inner.py index 8ad2879a..21a983a1 100644 --- a/src/otari/_client/models/pricing_tiers_inner.py +++ b/src/otari/_client/models/pricing_tiers_inner.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/pricing_tiers_inner_any_of_value.py b/src/otari/_client/models/pricing_tiers_inner_any_of_value.py index f89e115d..07fd43ae 100644 --- a/src/otari/_client/models/pricing_tiers_inner_any_of_value.py +++ b/src/otari/_client/models/pricing_tiers_inner_any_of_value.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/provider_capabilities_schema.py b/src/otari/_client/models/provider_capabilities_schema.py index 14160fbd..8ce33878 100644 --- a/src/otari/_client/models/provider_capabilities_schema.py +++ b/src/otari/_client/models/provider_capabilities_schema.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/provider_health_response.py b/src/otari/_client/models/provider_health_response.py index cda4177e..28185350 100644 --- a/src/otari/_client/models/provider_health_response.py +++ b/src/otari/_client/models/provider_health_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/provider_health_schema.py b/src/otari/_client/models/provider_health_schema.py index c004cd52..a6f320ce 100644 --- a/src/otari/_client/models/provider_health_schema.py +++ b/src/otari/_client/models/provider_health_schema.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/provider_info_schema.py b/src/otari/_client/models/provider_info_schema.py index 6052a475..9118b392 100644 --- a/src/otari/_client/models/provider_info_schema.py +++ b/src/otari/_client/models/provider_info_schema.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/providers_response.py b/src/otari/_client/models/providers_response.py index c5ae2f37..3c11c97a 100644 --- a/src/otari/_client/models/providers_response.py +++ b/src/otari/_client/models/providers_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/rank_request.py b/src/otari/_client/models/rank_request.py index 160bc8f4..508b44d1 100644 --- a/src/otari/_client/models/rank_request.py +++ b/src/otari/_client/models/rank_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/rank_response.py b/src/otari/_client/models/rank_response.py index c3f4e63b..8f6ca96b 100644 --- a/src/otari/_client/models/rank_response.py +++ b/src/otari/_client/models/rank_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/recorded_pool.py b/src/otari/_client/models/recorded_pool.py index 87684bae..23ebb3b9 100644 --- a/src/otari/_client/models/recorded_pool.py +++ b/src/otari/_client/models/recorded_pool.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/reencrypt_provider_credentials_response.py b/src/otari/_client/models/reencrypt_provider_credentials_response.py index 5208ff68..0364b7a3 100644 --- a/src/otari/_client/models/reencrypt_provider_credentials_response.py +++ b/src/otari/_client/models/reencrypt_provider_credentials_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/reencrypt_search_tools_response.py b/src/otari/_client/models/reencrypt_search_tools_response.py index 7374bd62..132307c9 100644 --- a/src/otari/_client/models/reencrypt_search_tools_response.py +++ b/src/otari/_client/models/reencrypt_search_tools_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/register_passkey_request.py b/src/otari/_client/models/register_passkey_request.py index 090dbc07..8dd8d1bc 100644 --- a/src/otari/_client/models/register_passkey_request.py +++ b/src/otari/_client/models/register_passkey_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/request_password_reset_request.py b/src/otari/_client/models/request_password_reset_request.py index d8e2d674..438bbf42 100644 --- a/src/otari/_client/models/request_password_reset_request.py +++ b/src/otari/_client/models/request_password_reset_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/request_password_reset_response.py b/src/otari/_client/models/request_password_reset_response.py index 71970dfb..920bd64d 100644 --- a/src/otari/_client/models/request_password_reset_response.py +++ b/src/otari/_client/models/request_password_reset_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 9011c015..cee0d325 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 024202da..f915cb27 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/resend_verification_request.py b/src/otari/_client/models/resend_verification_request.py index 1a1d5f05..e9173898 100644 --- a/src/otari/_client/models/resend_verification_request.py +++ b/src/otari/_client/models/resend_verification_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/resend_verification_response.py b/src/otari/_client/models/resend_verification_response.py index e7e0e60d..53bdd286 100644 --- a/src/otari/_client/models/resend_verification_response.py +++ b/src/otari/_client/models/resend_verification_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/reset_password_request.py b/src/otari/_client/models/reset_password_request.py index cd21cc4b..c7c39647 100644 --- a/src/otari/_client/models/reset_password_request.py +++ b/src/otari/_client/models/reset_password_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/resource.py b/src/otari/_client/models/resource.py new file mode 100644 index 00000000..c823c8aa --- /dev/null +++ b/src/otari/_client/models/resource.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + 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 Optional +from otari._client.models.blob_resource_contents import BlobResourceContents +from otari._client.models.text_resource_contents import TextResourceContents +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +RESOURCE_ANY_OF_SCHEMAS = ["BlobResourceContents", "TextResourceContents"] + +class Resource(BaseModel): + """ + Resource + """ + + # data type: TextResourceContents + anyof_schema_1_validator: Optional[TextResourceContents] = None + # data type: BlobResourceContents + anyof_schema_2_validator: Optional[BlobResourceContents] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[BlobResourceContents, TextResourceContents]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "BlobResourceContents", "TextResourceContents" } + + 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 = Resource.model_construct() + error_messages = [] + # validate data type: TextResourceContents + if not isinstance(v, TextResourceContents): + error_messages.append(f"Error! Input type `{type(v)}` is not `TextResourceContents`") + else: + return v + + # validate data type: BlobResourceContents + if not isinstance(v, BlobResourceContents): + error_messages.append(f"Error! Input type `{type(v)}` is not `BlobResourceContents`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in Resource with anyOf schemas: BlobResourceContents, TextResourceContents. 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 = [] + # anyof_schema_1_validator: Optional[TextResourceContents] = None + try: + instance.actual_instance = TextResourceContents.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[BlobResourceContents] = None + try: + instance.actual_instance = BlobResourceContents.from_json(json_str) + 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 Resource with anyOf schemas: BlobResourceContents, TextResourceContents. 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], BlobResourceContents, TextResourceContents]]: + """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/resource_link.py b/src/otari/_client/models/resource_link.py new file mode 100644 index 00000000..01a914f5 --- /dev/null +++ b/src/otari/_client/models/resource_link.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from otari._client.models.annotations import Annotations +from otari._client.models.icon import Icon +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ResourceLink(BaseModel): + """ + A resource that the server is capable of reading, included in a prompt or tool call result. Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests. + """ # noqa: E501 + meta: Optional[Dict[str, Any]] = Field(default=None, alias="_meta") + annotations: Optional[Annotations] = None + description: Optional[StrictStr] = None + icons: Optional[List[Icon]] = None + mime_type: Optional[StrictStr] = Field(default=None, alias="mimeType") + name: StrictStr + size: Optional[StrictInt] = None + title: Optional[StrictStr] = None + type: StrictStr + uri: Annotated[str, Field(min_length=1, strict=True)] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_meta", "annotations", "description", "icons", "mimeType", "name", "size", "title", "type", "uri"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['resource_link']): + raise ValueError("must be one of enum values ('resource_link')") + return value + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ResourceLink from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of annotations + if self.annotations: + _dict['annotations'] = self.annotations.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in icons (list) + _items = [] + if self.icons: + for _item_icons in self.icons: + if _item_icons: + _items.append(_item_icons.to_dict()) + _dict['icons'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if meta (nullable) is None + # and model_fields_set contains the field + if self.meta is None and "meta" in self.model_fields_set: + _dict['_meta'] = None + + # set to None if annotations (nullable) is None + # and model_fields_set contains the field + if self.annotations is None and "annotations" in self.model_fields_set: + _dict['annotations'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + # set to None if icons (nullable) is None + # and model_fields_set contains the field + if self.icons is None and "icons" in self.model_fields_set: + _dict['icons'] = None + + # set to None if mime_type (nullable) is None + # and model_fields_set contains the field + if self.mime_type is None and "mime_type" in self.model_fields_set: + _dict['mimeType'] = None + + # set to None if size (nullable) is None + # and model_fields_set contains the field + if self.size is None and "size" in self.model_fields_set: + _dict['size'] = None + + # set to None if title (nullable) is None + # and model_fields_set contains the field + if self.title is None and "title" in self.model_fields_set: + _dict['title'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ResourceLink from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "_meta": obj.get("_meta"), + "annotations": Annotations.from_dict(obj["annotations"]) if obj.get("annotations") is not None else None, + "description": obj.get("description"), + "icons": [Icon.from_dict(_item) for _item in obj["icons"]] if obj.get("icons") is not None else None, + "mimeType": obj.get("mimeType"), + "name": obj.get("name"), + "size": obj.get("size"), + "title": obj.get("title"), + "type": obj.get("type"), + "uri": obj.get("uri") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/src/otari/_client/models/responses_request.py b/src/otari/_client/models/responses_request.py index 0286e28b..119a1cf1 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/rotate_master_key_response.py b/src/otari/_client/models/rotate_master_key_response.py index 488adbb7..db122a6b 100644 --- a/src/otari/_client/models/rotate_master_key_response.py +++ b/src/otari/_client/models/rotate_master_key_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/router_status.py b/src/otari/_client/models/router_status.py index e6f8cda2..c64f8bf2 100644 --- a/src/otari/_client/models/router_status.py +++ b/src/otari/_client/models/router_status.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/rr_rerank_meta.py b/src/otari/_client/models/rr_rerank_meta.py index a6209849..63cfb6cf 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 d38b002d..9b32dfa1 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 d2b3bfc2..c6553551 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/scoped_budget_response.py b/src/otari/_client/models/scoped_budget_response.py index b8f7e517..9e80d6e7 100644 --- a/src/otari/_client/models/scoped_budget_response.py +++ b/src/otari/_client/models/scoped_budget_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/scored_example.py b/src/otari/_client/models/scored_example.py index 437e874a..25854049 100644 --- a/src/otari/_client/models/scored_example.py +++ b/src/otari/_client/models/scored_example.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/search_provider_schema.py b/src/otari/_client/models/search_provider_schema.py index a0ff153b..fa4f222e 100644 --- a/src/otari/_client/models/search_provider_schema.py +++ b/src/otari/_client/models/search_provider_schema.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/search_request.py b/src/otari/_client/models/search_request.py index e05dc275..5a3a39d1 100644 --- a/src/otari/_client/models/search_request.py +++ b/src/otari/_client/models/search_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/search_response.py b/src/otari/_client/models/search_response.py index 0f5f3748..ca2518c8 100644 --- a/src/otari/_client/models/search_response.py +++ b/src/otari/_client/models/search_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/search_result_item.py b/src/otari/_client/models/search_result_item.py index c66a0a4d..53b25950 100644 --- a/src/otari/_client/models/search_result_item.py +++ b/src/otari/_client/models/search_result_item.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/search_tools_response.py b/src/otari/_client/models/search_tools_response.py index d9399ff6..129b14b9 100644 --- a/src/otari/_client/models/search_tools_response.py +++ b/src/otari/_client/models/search_tools_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/send_test_mail_request.py b/src/otari/_client/models/send_test_mail_request.py index fff3d308..fc4cd1c2 100644 --- a/src/otari/_client/models/send_test_mail_request.py +++ b/src/otari/_client/models/send_test_mail_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/send_test_mail_response.py b/src/otari/_client/models/send_test_mail_response.py index 8f8d7223..8fa194f2 100644 --- a/src/otari/_client/models/send_test_mail_response.py +++ b/src/otari/_client/models/send_test_mail_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/session_response.py b/src/otari/_client/models/session_response.py index 551ca1bf..6a6730d9 100644 --- a/src/otari/_client/models/session_response.py +++ b/src/otari/_client/models/session_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/set_password_request.py b/src/otari/_client/models/set_password_request.py index 3b330be2..f4376a12 100644 --- a/src/otari/_client/models/set_password_request.py +++ b/src/otari/_client/models/set_password_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 911c950b..56aac288 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/signup_request.py b/src/otari/_client/models/signup_request.py index ea69d474..cef43e4d 100644 --- a/src/otari/_client/models/signup_request.py +++ b/src/otari/_client/models/signup_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/signup_response.py b/src/otari/_client/models/signup_response.py index b7b71889..2536d2a1 100644 --- a/src/otari/_client/models/signup_response.py +++ b/src/otari/_client/models/signup_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 950695b6..00bdb174 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/source1.py b/src/otari/_client/models/source1.py index f4455511..dd53362b 100644 --- a/src/otari/_client/models/source1.py +++ b/src/otari/_client/models/source1.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 93d89d87..7bc8a120 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/stored_provider_response.py b/src/otari/_client/models/stored_provider_response.py index 791626b1..b9a04297 100644 --- a/src/otari/_client/models/stored_provider_response.py +++ b/src/otari/_client/models/stored_provider_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/stored_search_tool_schema.py b/src/otari/_client/models/stored_search_tool_schema.py index e4f2a375..fbfd0283 100644 --- a/src/otari/_client/models/stored_search_tool_schema.py +++ b/src/otari/_client/models/stored_search_tool_schema.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/switch_active_organization_request.py b/src/otari/_client/models/switch_active_organization_request.py index dff3786e..62e5918b 100644 --- a/src/otari/_client/models/switch_active_organization_request.py +++ b/src/otari/_client/models/switch_active_organization_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 1022d369..90304b0a 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/task_pool.py b/src/otari/_client/models/task_pool.py index 0ca918f1..34fa473a 100644 --- a/src/otari/_client/models/task_pool.py +++ b/src/otari/_client/models/task_pool.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/test_provider_request.py b/src/otari/_client/models/test_provider_request.py index fea30fd7..d534fc28 100644 --- a/src/otari/_client/models/test_provider_request.py +++ b/src/otari/_client/models/test_provider_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/test_provider_response.py b/src/otari/_client/models/test_provider_response.py index adf9382f..32878f2f 100644 --- a/src/otari/_client/models/test_provider_response.py +++ b/src/otari/_client/models/test_provider_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/test_service_request.py b/src/otari/_client/models/test_service_request.py index 65fb32f4..0ed30fa9 100644 --- a/src/otari/_client/models/test_service_request.py +++ b/src/otari/_client/models/test_service_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/test_service_response.py b/src/otari/_client/models/test_service_response.py index edabfadc..e67f722b 100644 --- a/src/otari/_client/models/test_service_response.py +++ b/src/otari/_client/models/test_service_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/text_content.py b/src/otari/_client/models/text_content.py new file mode 100644 index 00000000..629f4431 --- /dev/null +++ b/src/otari/_client/models/text_content.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from otari._client.models.annotations import Annotations +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class TextContent(BaseModel): + """ + Text content for a message. + """ # noqa: E501 + meta: Optional[Dict[str, Any]] = Field(default=None, alias="_meta") + annotations: Optional[Annotations] = None + text: StrictStr + type: StrictStr + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_meta", "annotations", "text", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['text']): + raise ValueError("must be one of enum values ('text')") + return value + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TextContent from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of annotations + if self.annotations: + _dict['annotations'] = self.annotations.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if meta (nullable) is None + # and model_fields_set contains the field + if self.meta is None and "meta" in self.model_fields_set: + _dict['_meta'] = None + + # set to None if annotations (nullable) is None + # and model_fields_set contains the field + if self.annotations is None and "annotations" in self.model_fields_set: + _dict['annotations'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TextContent from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "_meta": obj.get("_meta"), + "annotations": Annotations.from_dict(obj["annotations"]) if obj.get("annotations") is not None else None, + "text": obj.get("text"), + "type": obj.get("type") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/src/otari/_client/models/text_resource_contents.py b/src/otari/_client/models/text_resource_contents.py new file mode 100644 index 00000000..df39d20d --- /dev/null +++ b/src/otari/_client/models/text_resource_contents.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + otari + + Otari, an OpenAI-compatible LLM gateway with API key management + + The version of the OpenAPI document: 0.0.0-dev + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class TextResourceContents(BaseModel): + """ + Text contents of a resource. + """ # noqa: E501 + meta: Optional[Dict[str, Any]] = Field(default=None, alias="_meta") + mime_type: Optional[StrictStr] = Field(default=None, alias="mimeType") + text: StrictStr + uri: Annotated[str, Field(min_length=1, strict=True)] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_meta", "mimeType", "text", "uri"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TextResourceContents from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if meta (nullable) is None + # and model_fields_set contains the field + if self.meta is None and "meta" in self.model_fields_set: + _dict['_meta'] = None + + # set to None if mime_type (nullable) is None + # and model_fields_set contains the field + if self.mime_type is None and "mime_type" in self.model_fields_set: + _dict['mimeType'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TextResourceContents from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "_meta": obj.get("_meta"), + "mimeType": obj.get("mimeType"), + "text": obj.get("text"), + "uri": obj.get("uri") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/src/otari/_client/models/token_charge_line.py b/src/otari/_client/models/token_charge_line.py index 9eff2145..c5960d55 100644 --- a/src/otari/_client/models/token_charge_line.py +++ b/src/otari/_client/models/token_charge_line.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 24633dae..bdac489b 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 0e351121..aa12e760 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 b032e085..c49cee4a 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/tool_meter.py b/src/otari/_client/models/tool_meter.py index 3f73c869..1f0d2238 100644 --- a/src/otari/_client/models/tool_meter.py +++ b/src/otari/_client/models/tool_meter.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/tool_setting_field.py b/src/otari/_client/models/tool_setting_field.py index 9e3f6a39..66ee0720 100644 --- a/src/otari/_client/models/tool_setting_field.py +++ b/src/otari/_client/models/tool_setting_field.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/tool_settings_response.py b/src/otari/_client/models/tool_settings_response.py index d0f0047f..1fe2ff3e 100644 --- a/src/otari/_client/models/tool_settings_response.py +++ b/src/otari/_client/models/tool_settings_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/tools_response.py b/src/otari/_client/models/tools_response.py index 66ef0fc1..bc495dc4 100644 --- a/src/otari/_client/models/tools_response.py +++ b/src/otari/_client/models/tools_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/unit_charge_line.py b/src/otari/_client/models/unit_charge_line.py index f0c03020..9ffb7a39 100644 --- a/src/otari/_client/models/unit_charge_line.py +++ b/src/otari/_client/models/unit_charge_line.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/units.py b/src/otari/_client/models/units.py index b46774ab..a8d4dafe 100644 --- a/src/otari/_client/models/units.py +++ b/src/otari/_client/models/units.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/units1.py b/src/otari/_client/models/units1.py index 839885ac..d586672e 100644 --- a/src/otari/_client/models/units1.py +++ b/src/otari/_client/models/units1.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 991f22e2..77a2cf88 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.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 3124baf3..32015de0 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/update_maintenance_mode_request.py b/src/otari/_client/models/update_maintenance_mode_request.py index 4d0ad521..d48184b3 100644 --- a/src/otari/_client/models/update_maintenance_mode_request.py +++ b/src/otari/_client/models/update_maintenance_mode_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/update_own_key_request.py b/src/otari/_client/models/update_own_key_request.py index 92f0180e..050459c6 100644 --- a/src/otari/_client/models/update_own_key_request.py +++ b/src/otari/_client/models/update_own_key_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/update_scoped_budget_request.py b/src/otari/_client/models/update_scoped_budget_request.py index 48f66136..9521f7cd 100644 --- a/src/otari/_client/models/update_scoped_budget_request.py +++ b/src/otari/_client/models/update_scoped_budget_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/update_search_tool_request.py b/src/otari/_client/models/update_search_tool_request.py index 94808b87..ca86a64b 100644 --- a/src/otari/_client/models/update_search_tool_request.py +++ b/src/otari/_client/models/update_search_tool_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/update_settings_request.py b/src/otari/_client/models/update_settings_request.py index 5ec99a59..17f58e76 100644 --- a/src/otari/_client/models/update_settings_request.py +++ b/src/otari/_client/models/update_settings_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/update_stored_provider_request.py b/src/otari/_client/models/update_stored_provider_request.py index 795402ba..7a37245f 100644 --- a/src/otari/_client/models/update_stored_provider_request.py +++ b/src/otari/_client/models/update_stored_provider_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/update_tool_settings_request.py b/src/otari/_client/models/update_tool_settings_request.py index 2ff03b8b..83534c46 100644 --- a/src/otari/_client/models/update_tool_settings_request.py +++ b/src/otari/_client/models/update_tool_settings_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 865daf75..7003d12f 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/usage_count.py b/src/otari/_client/models/usage_count.py index a9cca3f6..493e412e 100644 --- a/src/otari/_client/models/usage_count.py +++ b/src/otari/_client/models/usage_count.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/usage_delete_request.py b/src/otari/_client/models/usage_delete_request.py index cb3fe12e..37457d6c 100644 --- a/src/otari/_client/models/usage_delete_request.py +++ b/src/otari/_client/models/usage_delete_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/usage_delete_result.py b/src/otari/_client/models/usage_delete_result.py index 256b3320..82d16e2e 100644 --- a/src/otari/_client/models/usage_delete_result.py +++ b/src/otari/_client/models/usage_delete_result.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 95bb8449..2ed56e96 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/usage_entry_pricing_breakdown_inner.py b/src/otari/_client/models/usage_entry_pricing_breakdown_inner.py index 21f1b28f..3579dd72 100644 --- a/src/otari/_client/models/usage_entry_pricing_breakdown_inner.py +++ b/src/otari/_client/models/usage_entry_pricing_breakdown_inner.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/usage_error_code_row.py b/src/otari/_client/models/usage_error_code_row.py index 1a5b043d..de39a304 100644 --- a/src/otari/_client/models/usage_error_code_row.py +++ b/src/otari/_client/models/usage_error_code_row.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/usage_group_row.py b/src/otari/_client/models/usage_group_row.py index 6402dd9a..9ada0955 100644 --- a/src/otari/_client/models/usage_group_row.py +++ b/src/otari/_client/models/usage_group_row.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/usage_grouped_series.py b/src/otari/_client/models/usage_grouped_series.py index fe8cb554..6f579dff 100644 --- a/src/otari/_client/models/usage_grouped_series.py +++ b/src/otari/_client/models/usage_grouped_series.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/usage_grouped_series_point.py b/src/otari/_client/models/usage_grouped_series_point.py index 0c7019fa..d954c0ad 100644 --- a/src/otari/_client/models/usage_grouped_series_point.py +++ b/src/otari/_client/models/usage_grouped_series_point.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/usage_log_response.py b/src/otari/_client/models/usage_log_response.py index 0ba49ea6..7c010db7 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/usage_series_point.py b/src/otari/_client/models/usage_series_point.py index 0d986fd8..5fe57808 100644 --- a/src/otari/_client/models/usage_series_point.py +++ b/src/otari/_client/models/usage_series_point.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/usage_set_price_request.py b/src/otari/_client/models/usage_set_price_request.py index 3f9841ba..939df239 100644 --- a/src/otari/_client/models/usage_set_price_request.py +++ b/src/otari/_client/models/usage_set_price_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/usage_set_price_result.py b/src/otari/_client/models/usage_set_price_result.py index 72e9b675..d29c1267 100644 --- a/src/otari/_client/models/usage_set_price_result.py +++ b/src/otari/_client/models/usage_set_price_result.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/usage_summary.py b/src/otari/_client/models/usage_summary.py index fdd7dd6e..d4c0d150 100644 --- a/src/otari/_client/models/usage_summary.py +++ b/src/otari/_client/models/usage_summary.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/usage_tool_row.py b/src/otari/_client/models/usage_tool_row.py index 4d88f805..1020dd56 100644 --- a/src/otari/_client/models/usage_tool_row.py +++ b/src/otari/_client/models/usage_tool_row.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/usage_totals.py b/src/otari/_client/models/usage_totals.py index 649fe578..1ff64f55 100644 --- a/src/otari/_client/models/usage_totals.py +++ b/src/otari/_client/models/usage_totals.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/user_id.py b/src/otari/_client/models/user_id.py index 5fc3b2da..51ca65f0 100644 --- a/src/otari/_client/models/user_id.py +++ b/src/otari/_client/models/user_id.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 f7c2f5e2..d20943ec 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/validate_invitation_request.py b/src/otari/_client/models/validate_invitation_request.py index f74a7de2..890123a4 100644 --- a/src/otari/_client/models/validate_invitation_request.py +++ b/src/otari/_client/models/validate_invitation_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 1a54a610..5147febb 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/value.py b/src/otari/_client/models/value.py index 6b8eae89..b7018441 100644 --- a/src/otari/_client/models/value.py +++ b/src/otari/_client/models/value.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/value1.py b/src/otari/_client/models/value1.py index be5b8675..38b23a2c 100644 --- a/src/otari/_client/models/value1.py +++ b/src/otari/_client/models/value1.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/verify_email_request.py b/src/otari/_client/models/verify_email_request.py index 2aa54542..22f7b3fc 100644 --- a/src/otari/_client/models/verify_email_request.py +++ b/src/otari/_client/models/verify_email_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/verify_email_response.py b/src/otari/_client/models/verify_email_response.py index f122b32e..215b2d3f 100644 --- a/src/otari/_client/models/verify_email_response.py +++ b/src/otari/_client/models/verify_email_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/web_authn_credential_public.py b/src/otari/_client/models/web_authn_credential_public.py index fb3229b7..75f520c4 100644 --- a/src/otari/_client/models/web_authn_credential_public.py +++ b/src/otari/_client/models/web_authn_credential_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/web_authn_credential_update.py b/src/otari/_client/models/web_authn_credential_update.py index 5a55d762..4e45c227 100644 --- a/src/otari/_client/models/web_authn_credential_update.py +++ b/src/otari/_client/models/web_authn_credential_update.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/web_authn_credentials_public.py b/src/otari/_client/models/web_authn_credentials_public.py index 9c2fe0e1..34fce15d 100644 --- a/src/otari/_client/models/web_authn_credentials_public.py +++ b/src/otari/_client/models/web_authn_credentials_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/web_search_backend_response.py b/src/otari/_client/models/web_search_backend_response.py index d6255280..c7e13e4d 100644 --- a/src/otari/_client/models/web_search_backend_response.py +++ b/src/otari/_client/models/web_search_backend_response.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/web_search_backend_result.py b/src/otari/_client/models/web_search_backend_result.py index 728859e5..c87daea8 100644 --- a/src/otari/_client/models/web_search_backend_result.py +++ b/src/otari/_client/models/web_search_backend_result.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_activation_public.py b/src/otari/_client/models/workspace_activation_public.py index 7249813e..5c8049ab 100644 --- a/src/otari/_client/models/workspace_activation_public.py +++ b/src/otari/_client/models/workspace_activation_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_assignment_request.py b/src/otari/_client/models/workspace_assignment_request.py index 6d3a0cb1..468fc923 100644 --- a/src/otari/_client/models/workspace_assignment_request.py +++ b/src/otari/_client/models/workspace_assignment_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_code_execution_policy_public.py b/src/otari/_client/models/workspace_code_execution_policy_public.py index b0c44f29..60e030fb 100644 --- a/src/otari/_client/models/workspace_code_execution_policy_public.py +++ b/src/otari/_client/models/workspace_code_execution_policy_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_code_execution_policy_update.py b/src/otari/_client/models/workspace_code_execution_policy_update.py index 22afcb93..ae98cade 100644 --- a/src/otari/_client/models/workspace_code_execution_policy_update.py +++ b/src/otari/_client/models/workspace_code_execution_policy_update.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_create.py b/src/otari/_client/models/workspace_create.py index 6f36ff91..e7dc4715 100644 --- a/src/otari/_client/models/workspace_create.py +++ b/src/otari/_client/models/workspace_create.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_mcp_server_create.py b/src/otari/_client/models/workspace_mcp_server_create.py index 609ed4ed..00f45250 100644 --- a/src/otari/_client/models/workspace_mcp_server_create.py +++ b/src/otari/_client/models/workspace_mcp_server_create.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_mcp_server_public.py b/src/otari/_client/models/workspace_mcp_server_public.py index 3e4b8f39..32965a07 100644 --- a/src/otari/_client/models/workspace_mcp_server_public.py +++ b/src/otari/_client/models/workspace_mcp_server_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_mcp_server_update.py b/src/otari/_client/models/workspace_mcp_server_update.py index 5a1dadb7..d27d2fb2 100644 --- a/src/otari/_client/models/workspace_mcp_server_update.py +++ b/src/otari/_client/models/workspace_mcp_server_update.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_mcp_servers_public.py b/src/otari/_client/models/workspace_mcp_servers_public.py index 73c44824..330091de 100644 --- a/src/otari/_client/models/workspace_mcp_servers_public.py +++ b/src/otari/_client/models/workspace_mcp_servers_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_member_budget_policies_public.py b/src/otari/_client/models/workspace_member_budget_policies_public.py index e31fb0c5..241ea688 100644 --- a/src/otari/_client/models/workspace_member_budget_policies_public.py +++ b/src/otari/_client/models/workspace_member_budget_policies_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_member_budget_policy_create.py b/src/otari/_client/models/workspace_member_budget_policy_create.py index d6fa15a2..a6cdcbbd 100644 --- a/src/otari/_client/models/workspace_member_budget_policy_create.py +++ b/src/otari/_client/models/workspace_member_budget_policy_create.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_member_budget_policy_public.py b/src/otari/_client/models/workspace_member_budget_policy_public.py index a5a3af11..df2b11ad 100644 --- a/src/otari/_client/models/workspace_member_budget_policy_public.py +++ b/src/otari/_client/models/workspace_member_budget_policy_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_member_budget_policy_update.py b/src/otari/_client/models/workspace_member_budget_policy_update.py index b71aeb24..b88251e6 100644 --- a/src/otari/_client/models/workspace_member_budget_policy_update.py +++ b/src/otari/_client/models/workspace_member_budget_policy_update.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_member_public.py b/src/otari/_client/models/workspace_member_public.py index c27466d9..9da4dafe 100644 --- a/src/otari/_client/models/workspace_member_public.py +++ b/src/otari/_client/models/workspace_member_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_members_public.py b/src/otari/_client/models/workspace_members_public.py index 274e544f..e04d7575 100644 --- a/src/otari/_client/models/workspace_members_public.py +++ b/src/otari/_client/models/workspace_members_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_provider_key_override_public.py b/src/otari/_client/models/workspace_provider_key_override_public.py index 6801b8b1..899f2b41 100644 --- a/src/otari/_client/models/workspace_provider_key_override_public.py +++ b/src/otari/_client/models/workspace_provider_key_override_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_provider_key_override_request.py b/src/otari/_client/models/workspace_provider_key_override_request.py index 25dcd5c5..e2acff58 100644 --- a/src/otari/_client/models/workspace_provider_key_override_request.py +++ b/src/otari/_client/models/workspace_provider_key_override_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_provider_key_overrides_public.py b/src/otari/_client/models/workspace_provider_key_overrides_public.py index 08a73c9e..a8e3abdc 100644 --- a/src/otari/_client/models/workspace_provider_key_overrides_public.py +++ b/src/otari/_client/models/workspace_provider_key_overrides_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_provider_model_restriction_request.py b/src/otari/_client/models/workspace_provider_model_restriction_request.py index e470a76e..2b4a0a0a 100644 --- a/src/otari/_client/models/workspace_provider_model_restriction_request.py +++ b/src/otari/_client/models/workspace_provider_model_restriction_request.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_provider_model_restrictions_public.py b/src/otari/_client/models/workspace_provider_model_restrictions_public.py index db777658..9b8487e6 100644 --- a/src/otari/_client/models/workspace_provider_model_restrictions_public.py +++ b/src/otari/_client/models/workspace_provider_model_restrictions_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_public.py b/src/otari/_client/models/workspace_public.py index 2270c6de..588aff3f 100644 --- a/src/otari/_client/models/workspace_public.py +++ b/src/otari/_client/models/workspace_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_update.py b/src/otari/_client/models/workspace_update.py index 111ea356..1311b831 100644 --- a/src/otari/_client/models/workspace_update.py +++ b/src/otari/_client/models/workspace_update.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_web_search_config_public.py b/src/otari/_client/models/workspace_web_search_config_public.py index 90577a99..afe6ce05 100644 --- a/src/otari/_client/models/workspace_web_search_config_public.py +++ b/src/otari/_client/models/workspace_web_search_config_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspace_web_search_config_update.py b/src/otari/_client/models/workspace_web_search_config_update.py index 7fcac461..0c8b668a 100644 --- a/src/otari/_client/models/workspace_web_search_config_update.py +++ b/src/otari/_client/models/workspace_web_search_config_update.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/otari/_client/models/workspaces_public.py b/src/otari/_client/models/workspaces_public.py index f0d8e394..89d5d4f5 100644 --- a/src/otari/_client/models/workspaces_public.py +++ b/src/otari/_client/models/workspaces_public.py @@ -5,7 +5,7 @@ Otari, an OpenAI-compatible LLM gateway with API key management - The version of the OpenAPI document: 0.5.0 + The version of the OpenAPI document: 0.0.0-dev 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 92009a4f..5d07c8de 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.5.0 + The version of the OpenAPI document: 0.0.0-dev Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually.