From 907c572446d74aaa9cfefcf369fac59ec3fa3330 Mon Sep 17 00:00:00 2001 From: OpenRouter SDK Bot Date: Thu, 3 Dec 2026 19:23:18 +0000 Subject: [PATCH] chore: update OpenAPI spec [sdk-bot] --- .speakeasy/in.openapi.yaml | 108 +++++++++++++++---------------------- 1 file changed, 43 insertions(+), 65 deletions(-) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 07771701..4b3c2294 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -13243,6 +13243,7 @@ components: unit: 'token' value: 8192 type: 'text' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/text-embedding-3-small/endpoints' @@ -13303,6 +13304,7 @@ components: unit: 'token' value: 8192 type: 'text' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/text-embedding-3-small/endpoints' @@ -22558,11 +22560,17 @@ components: created: 1692901234 default_parameters: null description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.' + endpoints: + - '/api/v1/chat/completions' + - '/api/v1/completions' + - '/api/v1/messages' + - '/api/v1/responses' expiration_date: null id: 'openai/gpt-4' + is_open_weight: false knowledge_cutoff: null links: - details: '/api/v1/models/openai/gpt-5.4/endpoints' + details: '/api/v1/models/openai/gpt-4/endpoints' name: 'GPT-4' per_request_limits: null pricing: @@ -22570,15 +22578,6 @@ components: image: '0' prompt: '0.00003' request: '0' - reasoning: - default_effort: 'medium' - default_enabled: true - mandatory: false - supported_efforts: - - 'high' - - 'medium' - - 'low' - - 'minimal' supported_parameters: - 'temperature' - 'top_p' @@ -22641,6 +22640,10 @@ components: description: 'Unique identifier for the model' example: 'openai/gpt-4' type: 'string' + is_open_weight: + description: 'Whether the model has publicly released weights. A preset reports true only when every listed model is known to be open-weight; routing presets report false.' + example: false + type: 'boolean' knowledge_cutoff: description: 'The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown.' example: '2024-10-01' @@ -23885,6 +23888,7 @@ components: - '/api/v1/responses' expiration_date: null id: 'openai/gpt-4' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/gpt-4/endpoints' @@ -23948,8 +23952,14 @@ components: created: 1692901234 default_parameters: null description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.' + endpoints: + - '/api/v1/chat/completions' + - '/api/v1/completions' + - '/api/v1/messages' + - '/api/v1/responses' expiration_date: null id: 'openai/gpt-4' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/gpt-4/endpoints' @@ -23964,8 +23974,6 @@ components: - 'temperature' - 'top_p' - 'max_tokens' - - 'frequency_penalty' - - 'presence_penalty' supported_voices: null top_provider: context_length: 8192 @@ -24014,8 +24022,14 @@ components: created: 1692901234 default_parameters: null description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.' + endpoints: + - '/api/v1/chat/completions' + - '/api/v1/completions' + - '/api/v1/messages' + - '/api/v1/responses' expiration_date: null id: 'openai/gpt-4' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/gpt-4/endpoints' @@ -34316,11 +34330,17 @@ components: created: 1692901234 default_parameters: null description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.' + endpoints: + - '/api/v1/chat/completions' + - '/api/v1/completions' + - '/api/v1/messages' + - '/api/v1/responses' expiration_date: null id: 'openai/gpt-4' + is_open_weight: false knowledge_cutoff: null links: - details: '/api/v1/models/openai/gpt-5.4/endpoints' + details: '/api/v1/models/openai/gpt-4/endpoints' name: 'GPT-4' per_request_limits: null pricing: @@ -34328,15 +34348,6 @@ components: image: '0' prompt: '0.00003' request: '0' - reasoning: - default_effort: 'medium' - default_enabled: true - mandatory: false - supported_efforts: - - 'high' - - 'medium' - - 'low' - - 'minimal' supported_parameters: - 'temperature' - 'top_p' @@ -34372,8 +34383,14 @@ components: created: 1692901234 default_parameters: null description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.' + endpoints: + - '/api/v1/chat/completions' + - '/api/v1/completions' + - '/api/v1/messages' + - '/api/v1/responses' expiration_date: null id: 'openai/gpt-4' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/gpt-4/endpoints' @@ -34388,8 +34405,6 @@ components: - 'temperature' - 'top_p' - 'max_tokens' - - 'frequency_penalty' - - 'presence_penalty' supported_voices: null top_provider: context_length: 8192 @@ -48239,6 +48254,7 @@ paths: unit: 'token' value: 8192 type: 'text' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/text-embedding-3-small/endpoints' @@ -56650,47 +56666,6 @@ paths: '200': content: application/json: - example: - data: - architecture: - input_modalities: - - 'text' - instruct_type: 'chatml' - modality: 'text->text' - output_modalities: - - 'text' - tokenizer: 'GPT' - canonical_slug: 'openai/gpt-4' - context_length: 8192 - created: 1692901234 - default_parameters: null - description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.' - endpoints: - - '/api/v1/chat/completions' - - '/api/v1/completions' - - '/api/v1/messages' - - '/api/v1/responses' - expiration_date: null - id: 'openai/gpt-4' - knowledge_cutoff: null - links: - details: '/api/v1/models/openai/gpt-4/endpoints' - name: 'GPT-4' - per_request_limits: null - pricing: - completion: '0.00006' - image: '0' - prompt: '0.00003' - request: '0' - supported_parameters: - - 'temperature' - - 'top_p' - - 'max_tokens' - supported_voices: null - top_provider: - context_length: 8192 - is_moderated: true - max_completion_tokens: 4096 schema: $ref: '#/components/schemas/ModelResponse' description: 'Returns the model details' @@ -57337,6 +57312,7 @@ paths: - '/api/v1/responses' expiration_date: null id: 'openai/gpt-4' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/gpt-4/endpoints' @@ -57781,6 +57757,7 @@ paths: - '/api/v1/responses' expiration_date: null id: 'openai/gpt-4' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/gpt-4/endpoints' @@ -62284,6 +62261,7 @@ paths: unit: 'token' value: 4096 type: 'text' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/cohere/rerank-v3.5/endpoints'