mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
chore: update OpenAPI spec from monorepo (#423)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
co-authored by
OpenRouter SDK Bot
parent
4a9b45c2a0
commit
0ade477fcc
@@ -127,6 +127,102 @@ components:
|
|||||||
required:
|
required:
|
||||||
- data
|
- data
|
||||||
type: object
|
type: object
|
||||||
|
AdditionalToolsItem:
|
||||||
|
description: Additional tools made available to the model at this point in the input
|
||||||
|
example:
|
||||||
|
role: developer
|
||||||
|
tools:
|
||||||
|
- name: get_weather
|
||||||
|
parameters:
|
||||||
|
properties:
|
||||||
|
location:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: function
|
||||||
|
type: additional_tools
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
role:
|
||||||
|
enum:
|
||||||
|
- unknown
|
||||||
|
- user
|
||||||
|
- assistant
|
||||||
|
- system
|
||||||
|
- critic
|
||||||
|
- discriminator
|
||||||
|
- developer
|
||||||
|
- tool
|
||||||
|
type: string
|
||||||
|
tools:
|
||||||
|
items:
|
||||||
|
anyOf:
|
||||||
|
- allOf:
|
||||||
|
- $ref: '#/components/schemas/FunctionTool'
|
||||||
|
- properties: {}
|
||||||
|
type: object
|
||||||
|
description: Function tool definition
|
||||||
|
example:
|
||||||
|
description: Get the current weather in a location
|
||||||
|
name: get_weather
|
||||||
|
parameters:
|
||||||
|
properties:
|
||||||
|
location:
|
||||||
|
description: The city and state
|
||||||
|
type: string
|
||||||
|
unit:
|
||||||
|
enum:
|
||||||
|
- celsius
|
||||||
|
- fahrenheit
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- location
|
||||||
|
type: object
|
||||||
|
type: function
|
||||||
|
- $ref: '#/components/schemas/Preview_WebSearchServerTool'
|
||||||
|
- $ref: '#/components/schemas/Preview_20250311_WebSearchServerTool'
|
||||||
|
- $ref: '#/components/schemas/Legacy_WebSearchServerTool'
|
||||||
|
- $ref: '#/components/schemas/WebSearchServerTool'
|
||||||
|
- $ref: '#/components/schemas/FileSearchServerTool'
|
||||||
|
- $ref: '#/components/schemas/ComputerUseServerTool'
|
||||||
|
- $ref: '#/components/schemas/CodeInterpreterServerTool'
|
||||||
|
- $ref: '#/components/schemas/McpServerTool'
|
||||||
|
- $ref: '#/components/schemas/ImageGenerationServerTool'
|
||||||
|
- $ref: '#/components/schemas/CodexLocalShellTool'
|
||||||
|
- $ref: '#/components/schemas/ShellServerTool'
|
||||||
|
- $ref: '#/components/schemas/ApplyPatchServerTool'
|
||||||
|
- $ref: '#/components/schemas/CustomTool'
|
||||||
|
- $ref: '#/components/schemas/AdvisorServerTool_OpenRouter'
|
||||||
|
- $ref: '#/components/schemas/SubagentServerTool_OpenRouter'
|
||||||
|
- $ref: '#/components/schemas/DatetimeServerTool'
|
||||||
|
- $ref: '#/components/schemas/FilesServerTool'
|
||||||
|
- $ref: '#/components/schemas/FusionServerTool_OpenRouter'
|
||||||
|
- $ref: '#/components/schemas/ImageGenerationServerTool_OpenRouter'
|
||||||
|
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
|
||||||
|
- $ref: '#/components/schemas/WebFetchServerTool'
|
||||||
|
- $ref: '#/components/schemas/WebSearchServerTool_OpenRouter'
|
||||||
|
- $ref: '#/components/schemas/ApplyPatchServerTool_OpenRouter'
|
||||||
|
- $ref: '#/components/schemas/BashServerTool'
|
||||||
|
- $ref: '#/components/schemas/ShellServerTool_OpenRouter'
|
||||||
|
- additionalProperties:
|
||||||
|
nullable: true
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- additional_tools
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- role
|
||||||
|
- tools
|
||||||
|
type: object
|
||||||
AdvisorNestedTool:
|
AdvisorNestedTool:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
nullable: true
|
nullable: true
|
||||||
@@ -10391,6 +10487,7 @@ components:
|
|||||||
- $ref: '#/components/schemas/CustomToolCallOutputItem'
|
- $ref: '#/components/schemas/CustomToolCallOutputItem'
|
||||||
- $ref: '#/components/schemas/CompactionItem'
|
- $ref: '#/components/schemas/CompactionItem'
|
||||||
- $ref: '#/components/schemas/ItemReferenceItem'
|
- $ref: '#/components/schemas/ItemReferenceItem'
|
||||||
|
- $ref: '#/components/schemas/AdditionalToolsItem'
|
||||||
type: array
|
type: array
|
||||||
description: Input for a response request - can be a string or array of items
|
description: Input for a response request - can be a string or array of items
|
||||||
example:
|
example:
|
||||||
|
|||||||
Reference in New Issue
Block a user