From 460658428f29d995424cab89d1e78b48346f1c85 Mon Sep 17 00:00:00 2001 From: robert-j-y <212159665+robert-j-y@users.noreply.github.com> Date: Tue, 19 May 2026 17:32:47 -0700 Subject: [PATCH] chore: update OpenAPI spec from monorepo (#263) Co-authored-by: OpenRouter SDK Bot --- .speakeasy/in.openapi.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 5de3c0c..3ab32be 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -591,6 +591,7 @@ components: - end_page_number type: object AnthropicCitationsConfig: + default: null example: enabled: true nullable: true @@ -892,7 +893,6 @@ components: - document type: string required: - - citations - source - title - type @@ -4593,6 +4593,20 @@ components: required: - type type: object + ChatServerToolChoice: + description: >- + OpenRouter extension: force a specific server tool by naming it directly in `tool_choice.type` instead of + wrapping it in `{ type: "function", function: { name } }`. + example: + type: openrouter:web_search + properties: + type: + description: OpenRouter server-tool type to force (e.g. `openrouter:web_search`, `web_search`, `web_search_preview`). + example: openrouter:web_search + type: string + required: + - type + type: object ChatStreamChoice: description: Streaming completion choice chunk example: @@ -4957,6 +4971,7 @@ components: - required type: string - $ref: '#/components/schemas/ChatNamedToolChoice' + - $ref: '#/components/schemas/ChatServerToolChoice' description: Tool choice configuration example: auto ChatToolMessage: