Skip to content

Commit f5be2e0

Browse files
author
OpenRouter SDK Bot
committed
chore: update OpenAPI spec [sdk-bot]
1 parent c417c69 commit f5be2e0

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21634,6 +21634,11 @@ components:
2163421634
- 'top_p'
2163521635
- 'max_tokens'
2163621636
supports_implicit_caching: true
21637+
supports_tool_choice:
21638+
auto: true
21639+
function: true
21640+
none: true
21641+
required: true
2163721642
supports_voice_cloning: false
2163821643
tag: 'openai'
2163921644
throughput_last_30m:
@@ -21737,6 +21742,8 @@ components:
2173721742
type: 'array'
2173821743
supports_implicit_caching:
2173921744
type: 'boolean'
21745+
supports_tool_choice:
21746+
$ref: '#/components/schemas/ToolChoiceSupport'
2174021747
supports_voice_cloning:
2174121748
default: false
2174221749
description: 'Whether this TTS endpoint accepts inline reference audio (`input_references`) for stateless voice cloning. Requests carrying reference audio are only routed to endpoints where this is true.'
@@ -21776,6 +21783,7 @@ components:
2177621783
- 'max_completion_tokens'
2177721784
- 'max_prompt_tokens'
2177821785
- 'supported_parameters'
21786+
- 'supports_tool_choice'
2177921787
- 'uptime_last_30m'
2178021788
- 'uptime_last_5m'
2178121789
- 'uptime_last_1d'
@@ -24578,6 +24586,32 @@ components:
2457824586
- 'mode'
2457924587
- 'tools'
2458024588
type: 'object'
24589+
ToolChoiceSupport:
24590+
description: 'Per-variant `tool_choice` support. `tool_choice` in `supported_parameters` only says the parameter is accepted; these flags say which of its values passed testing.'
24591+
example:
24592+
auto: true
24593+
function: true
24594+
none: true
24595+
required: true
24596+
properties:
24597+
auto:
24598+
description: 'Whether the endpoint supports `"tool_choice": "auto"`.'
24599+
type: 'boolean'
24600+
function:
24601+
description: 'Whether the endpoint supports naming a function, `"tool_choice": {"type": "function", ...}`.'
24602+
type: 'boolean'
24603+
none:
24604+
description: 'Whether the endpoint supports `"tool_choice": "none"`.'
24605+
type: 'boolean'
24606+
required:
24607+
description: 'Whether the endpoint supports `"tool_choice": "required"`.'
24608+
type: 'boolean'
24609+
required:
24610+
- 'none'
24611+
- 'auto'
24612+
- 'required'
24613+
- 'function'
24614+
type: 'object'
2458124615
ToolSearchServerTool:
2458224616
description: 'OpenRouter built-in server tool: finds tools marked `defer_loading` and makes them callable'
2458324617
example:

0 commit comments

Comments
 (0)