From 58d4022f59cf8a824364e620e247fdb535e7d23d Mon Sep 17 00:00:00 2001 From: OpenRouter SDK Bot Date: Mon, 28 Sep 2026 18:08:00 +0000 Subject: [PATCH] chore: update OpenAPI spec [sdk-bot] --- .speakeasy/in.openapi.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index cfb0a418..a33f25b6 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -2625,6 +2625,7 @@ components: - 'invalid_tool_input' - 'url_too_long' - 'url_not_allowed' + - 'url_not_in_prior_context' - 'url_not_accessible' - 'unsupported_content_type' - 'too_many_requests' @@ -16246,6 +16247,7 @@ components: - 'max_uses_exceeded' - 'too_many_requests' - 'query_too_long' + - 'request_too_large' type: 'string' type: enum: @@ -25278,6 +25280,9 @@ components: model_id: 'openai/gpt-4' model_name: 'GPT-4' name: 'OpenAI: GPT-4' + native_tools: + openrouter:web_search: + type: 'web_search_20260209' perf_last_30m_by_workload: text_generation: latency: @@ -25343,6 +25348,20 @@ components: type: 'string' name: type: 'string' + native_tools: + additionalProperties: + properties: + type: + description: 'The provider tool type the request is translated to when this tool runs natively, e.g. `web_search_20260209` on Anthropic or `google_search` on Gemini.' + type: 'string' + required: + - 'type' + type: 'object' + description: 'The server tools this endpoint accepts as the provider''s own built-in tool (`engine: "native"`) instead of an OpenRouter engine, keyed by canonical `openrouter:*` name. Each value names the provider tool type the request is translated to. Where that tool runs (provider-side, or returned to the client as with Anthropic bash) is documented per tool. Empty when the provider has none.' + example: + openrouter:web_search: + type: 'web_search_20260209' + type: 'object' perf_last_30m_by_workload: additionalProperties: false description: 'Endpoint performance over the last 30 minutes, keyed by the kind of request served (e.g. `text_generation`, `image_generation`). Additive to the legacy singular latency and throughput fields; image and video generation report end-to-end latency. Only visible when authenticated with an API key or cookie.' @@ -25653,6 +25672,7 @@ components: - 'uptime_last_5m' - 'uptime_last_1d' - 'supports_implicit_caching' + - 'native_tools' - 'latency_last_30m' - 'throughput_last_30m' type: 'object' @@ -35881,6 +35901,7 @@ paths: model_id: 'openai/gpt-4' model_name: 'GPT-4' name: 'OpenAI: GPT-4' + native_tools: {} pricing: completion: '0.00006' image: '0' @@ -35920,6 +35941,7 @@ paths: model_id: 'openai/gpt-4' model_name: 'GPT-4' name: 'OpenAI: GPT-4' + native_tools: {} pricing: completion: '0.00006' image: '0' @@ -42447,6 +42469,7 @@ paths: model_id: 'openai/gpt-4' model_name: 'GPT-4' name: 'OpenAI: GPT-4' + native_tools: {} pricing: completion: '0.00006' image: '0'