diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index d6bc004b..6aa9dedc 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -12901,6 +12901,135 @@ components: - 'throughput' - 'request_count' type: 'object' + EmbeddingsModel: + allOf: + - $ref: '#/components/schemas/Model' + - properties: + input_modalities: + description: 'Typed inputs the model accepts, following the Models API V2 document. The text input carries the context length.' + items: + $ref: '#/components/schemas/ModelInputModalityV2' + minItems: 1 + type: 'array' + output_modalities: + description: 'Typed outputs with the request fields each accepts, following the Models API V2 document. Pricing stays in `pricing`.' + items: + $ref: '#/components/schemas/ModelOutputModalityV2' + minItems: 1 + type: 'array' + type: 'object' + description: 'An embeddings model available on OpenRouter' + example: + architecture: + input_modalities: + - 'text' + instruct_type: null + modality: 'text->embeddings' + output_modalities: + - 'embeddings' + tokenizer: 'GPT' + canonical_slug: 'openai/text-embedding-3-small' + context_length: 8192 + created: 1692901234 + default_parameters: null + description: 'OpenAI text embedding model optimized for performance.' + endpoints: + - '/api/v1/embeddings' + expiration_date: null + id: 'openai/text-embedding-3-small' + input_modalities: + - supported_inputs: + max_context_length: + unit: 'token' + value: 8192 + type: 'text' + knowledge_cutoff: null + links: + details: '/api/v1/models/openai/text-embedding-3-small/endpoints' + name: 'Text Embedding 3 Small' + output_modalities: + - supported_parameters: + encoding_format: + type: 'enum' + values: + - 'float' + - 'base64' + type: 'embeddings' + per_request_limits: null + pricing: + completion: '0' + image: '0' + prompt: '0.00000002' + request: '0' + supported_parameters: [] + supported_voices: null + top_provider: + context_length: 8192 + is_moderated: false + max_completion_tokens: null + EmbeddingsModelsListResponse: + allOf: + - $ref: '#/components/schemas/ModelsListResponse' + - properties: + data: + description: 'List of embeddings models' + items: + $ref: '#/components/schemas/EmbeddingsModel' + type: 'array' + type: 'object' + description: 'List of embeddings models available through the embeddings API' + example: + data: + - architecture: + input_modalities: + - 'text' + instruct_type: null + modality: 'text->embeddings' + output_modalities: + - 'embeddings' + tokenizer: 'GPT' + canonical_slug: 'openai/text-embedding-3-small' + context_length: 8192 + created: 1692901234 + default_parameters: null + description: 'OpenAI text embedding model optimized for performance.' + endpoints: + - '/api/v1/embeddings' + expiration_date: null + id: 'openai/text-embedding-3-small' + input_modalities: + - supported_inputs: + max_context_length: + unit: 'token' + value: 8192 + type: 'text' + knowledge_cutoff: null + links: + details: '/api/v1/models/openai/text-embedding-3-small/endpoints' + name: 'Text Embedding 3 Small' + output_modalities: + - supported_parameters: + encoding_format: + type: 'enum' + values: + - 'float' + - 'base64' + type: 'embeddings' + per_request_limits: null + pricing: + completion: '0' + image: '0' + prompt: '0.00000002' + request: '0' + supported_parameters: [] + supported_voices: null + top_provider: + context_length: 8192 + is_moderated: false + max_completion_tokens: null + links: + next: null + total_count: 1 EndpointInfo: example: model: 'openai/gpt-4o' @@ -32573,6 +32702,12 @@ components: - type: 'null' description: 'The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.' example: 'price' + tee: + description: 'Whether to restrict routing to TEE endpoints, where the request is encrypted to a key held inside the provider enclave. When true, only TEE endpoints will be used.' + example: true + type: + - 'boolean' + - 'null' zdr: description: 'Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.' example: true @@ -46926,10 +47061,24 @@ paths: - '/api/v1/embeddings' expiration_date: null id: 'openai/text-embedding-3-small' + input_modalities: + - supported_inputs: + max_context_length: + unit: 'token' + value: 8192 + type: 'text' knowledge_cutoff: null links: details: '/api/v1/models/openai/text-embedding-3-small/endpoints' name: 'Text Embedding 3 Small' + output_modalities: + - supported_parameters: + encoding_format: + type: 'enum' + values: + - 'float' + - 'base64' + type: 'embeddings' per_request_limits: null pricing: completion: '0' @@ -46943,7 +47092,7 @@ paths: is_moderated: false max_completion_tokens: null schema: - $ref: '#/components/schemas/ModelsListResponse' + $ref: '#/components/schemas/EmbeddingsModelsListResponse' description: 'Returns a list of embeddings models' '400': content: