Skip to content

Commit a4f0294

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#447)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 2a65de5 commit a4f0294

1 file changed

Lines changed: 29 additions & 21 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5790,27 +5790,7 @@ components:
57905790
type: integer
57915791
type: object
57925792
server_tool_use_details:
5793-
description: Usage for server-side tool execution (e.g., web search)
5794-
nullable: true
5795-
properties:
5796-
tool_calls_executed:
5797-
description: Number of OpenRouter server tool calls that executed and produced a result
5798-
nullable: true
5799-
type: integer
5800-
tool_calls_requested:
5801-
description: >-
5802-
Total number of OpenRouter server-orchestrated tool calls the model requested, across all tool types.
5803-
Provider-native tools (e.g. native web search) are not counted here.
5804-
nullable: true
5805-
type: integer
5806-
web_search_requests:
5807-
description: >-
5808-
Number of web searches performed by server-side tools. For server-orchestrated tool calls a web search
5809-
is also counted in tool_calls_requested; provider-native web search may report web_search_requests only.
5810-
Do not sum the two.
5811-
nullable: true
5812-
type: integer
5813-
type: object
5793+
$ref: '#/components/schemas/ServerToolUseDetails'
58145794
total_tokens:
58155795
description: Total number of tokens
58165796
type: integer
@@ -20715,6 +20695,32 @@ components:
2071520695
- high
2071620696
example: medium
2071720697
type: string
20698+
ServerToolUseDetails:
20699+
description: Usage for server-side tool execution (e.g., web search)
20700+
example:
20701+
tool_calls_executed: 2
20702+
tool_calls_requested: 2
20703+
web_search_requests: 2
20704+
nullable: true
20705+
properties:
20706+
tool_calls_executed:
20707+
description: Number of OpenRouter server tool calls that executed and produced a result.
20708+
nullable: true
20709+
type: integer
20710+
tool_calls_requested:
20711+
description: >-
20712+
Total number of OpenRouter server-orchestrated tool calls the model requested, across all tool types.
20713+
Provider-native tools (e.g. native web search) are not counted here.
20714+
nullable: true
20715+
type: integer
20716+
web_search_requests:
20717+
description: >-
20718+
Number of web searches performed by server-side tools. For server-orchestrated tool calls a web search is
20719+
also counted in tool_calls_requested; provider-native web search may report web_search_requests only. Do not
20720+
sum the two.
20721+
nullable: true
20722+
type: integer
20723+
type: object
2071820724
ServiceTier:
2071920725
enum:
2072020726
- auto
@@ -23025,6 +23031,8 @@ components:
2302523031
is_byok:
2302623032
description: Whether a request was made using a Bring Your Own Key configuration
2302723033
type: boolean
23034+
server_tool_use_details:
23035+
$ref: '#/components/schemas/ServerToolUseDetails'
2302823036
type: object
2302923037
description: Token usage information for the response
2303023038
example:

0 commit comments

Comments
 (0)