mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-09-10 12:22:13 +08:00
chore: update OpenAPI spec from monorepo (#447)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
co-authored by
OpenRouter SDK Bot
parent
2a65de50d3
commit
a4f0294713
+29
-21
@@ -5790,27 +5790,7 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
type: object
|
type: object
|
||||||
server_tool_use_details:
|
server_tool_use_details:
|
||||||
description: Usage for server-side tool execution (e.g., web search)
|
$ref: '#/components/schemas/ServerToolUseDetails'
|
||||||
nullable: true
|
|
||||||
properties:
|
|
||||||
tool_calls_executed:
|
|
||||||
description: Number of OpenRouter server tool calls that executed and produced a result
|
|
||||||
nullable: true
|
|
||||||
type: integer
|
|
||||||
tool_calls_requested:
|
|
||||||
description: >-
|
|
||||||
Total number of OpenRouter server-orchestrated tool calls the model requested, across all tool types.
|
|
||||||
Provider-native tools (e.g. native web search) are not counted here.
|
|
||||||
nullable: true
|
|
||||||
type: integer
|
|
||||||
web_search_requests:
|
|
||||||
description: >-
|
|
||||||
Number of web searches performed by server-side tools. For server-orchestrated tool calls a web search
|
|
||||||
is also counted in tool_calls_requested; provider-native web search may report web_search_requests only.
|
|
||||||
Do not sum the two.
|
|
||||||
nullable: true
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
total_tokens:
|
total_tokens:
|
||||||
description: Total number of tokens
|
description: Total number of tokens
|
||||||
type: integer
|
type: integer
|
||||||
@@ -20715,6 +20695,32 @@ components:
|
|||||||
- high
|
- high
|
||||||
example: medium
|
example: medium
|
||||||
type: string
|
type: string
|
||||||
|
ServerToolUseDetails:
|
||||||
|
description: Usage for server-side tool execution (e.g., web search)
|
||||||
|
example:
|
||||||
|
tool_calls_executed: 2
|
||||||
|
tool_calls_requested: 2
|
||||||
|
web_search_requests: 2
|
||||||
|
nullable: true
|
||||||
|
properties:
|
||||||
|
tool_calls_executed:
|
||||||
|
description: Number of OpenRouter server tool calls that executed and produced a result.
|
||||||
|
nullable: true
|
||||||
|
type: integer
|
||||||
|
tool_calls_requested:
|
||||||
|
description: >-
|
||||||
|
Total number of OpenRouter server-orchestrated tool calls the model requested, across all tool types.
|
||||||
|
Provider-native tools (e.g. native web search) are not counted here.
|
||||||
|
nullable: true
|
||||||
|
type: integer
|
||||||
|
web_search_requests:
|
||||||
|
description: >-
|
||||||
|
Number of web searches performed by server-side tools. For server-orchestrated tool calls a web search is
|
||||||
|
also counted in tool_calls_requested; provider-native web search may report web_search_requests only. Do not
|
||||||
|
sum the two.
|
||||||
|
nullable: true
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
ServiceTier:
|
ServiceTier:
|
||||||
enum:
|
enum:
|
||||||
- auto
|
- auto
|
||||||
@@ -23025,6 +23031,8 @@ components:
|
|||||||
is_byok:
|
is_byok:
|
||||||
description: Whether a request was made using a Bring Your Own Key configuration
|
description: Whether a request was made using a Bring Your Own Key configuration
|
||||||
type: boolean
|
type: boolean
|
||||||
|
server_tool_use_details:
|
||||||
|
$ref: '#/components/schemas/ServerToolUseDetails'
|
||||||
type: object
|
type: object
|
||||||
description: Token usage information for the response
|
description: Token usage information for the response
|
||||||
example:
|
example:
|
||||||
|
|||||||
Reference in New Issue
Block a user