chore: update OpenAPI spec from monorepo (#263)

Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
robert-j-y
2026-05-19 17:32:47 -07:00
committed by GitHub
co-authored by OpenRouter SDK Bot
parent 5d441447a9
commit 460658428f
+16 -1
View File
@@ -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: