Skip to content

Commit c455685

Browse files
robert-j-yOpenRouter SDK Bot
andauthored
chore: update OpenAPI spec [sdk-bot] (#235)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent d040583 commit c455685

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.speakeasy/in.openapi.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ components:
591591
- end_page_number
592592
type: object
593593
AnthropicCitationsConfig:
594+
default: null
594595
example:
595596
enabled: true
596597
nullable: true
@@ -892,7 +893,6 @@ components:
892893
- document
893894
type: string
894895
required:
895-
- citations
896896
- source
897897
- title
898898
- type
@@ -4593,6 +4593,20 @@ components:
45934593
required:
45944594
- type
45954595
type: object
4596+
ChatServerToolChoice:
4597+
description: >-
4598+
OpenRouter extension: force a specific server tool by naming it directly in `tool_choice.type` instead of
4599+
wrapping it in `{ type: "function", function: { name } }`.
4600+
example:
4601+
type: openrouter:web_search
4602+
properties:
4603+
type:
4604+
description: OpenRouter server-tool type to force (e.g. `openrouter:web_search`, `web_search`, `web_search_preview`).
4605+
example: openrouter:web_search
4606+
type: string
4607+
required:
4608+
- type
4609+
type: object
45964610
ChatStreamChoice:
45974611
description: Streaming completion choice chunk
45984612
example:
@@ -4957,6 +4971,7 @@ components:
49574971
- required
49584972
type: string
49594973
- $ref: '#/components/schemas/ChatNamedToolChoice'
4974+
- $ref: '#/components/schemas/ChatServerToolChoice'
49604975
description: Tool choice configuration
49614976
example: auto
49624977
ChatToolMessage:

0 commit comments

Comments
 (0)