mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-14 12:30:14 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6bb61f17b3 | ||
|
|
4e84bb736b | ||
|
|
947e92e68d | ||
|
|
bdbd8becc2 | ||
|
|
6ef088e7c7 | ||
|
|
e4e5cc259a |
+560
-8
@@ -1057,6 +1057,33 @@ components:
|
|||||||
- type
|
- type
|
||||||
- data
|
- data
|
||||||
type: object
|
type: object
|
||||||
|
AnthropicRefusalStopDetails:
|
||||||
|
description: Structured information about a refusal
|
||||||
|
example:
|
||||||
|
category: cyber
|
||||||
|
explanation: The request was refused due to policy.
|
||||||
|
type: refusal
|
||||||
|
nullable: true
|
||||||
|
properties:
|
||||||
|
category:
|
||||||
|
enum:
|
||||||
|
- cyber
|
||||||
|
- bio
|
||||||
|
- null
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
explanation:
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- refusal
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- category
|
||||||
|
- explanation
|
||||||
|
type: object
|
||||||
AnthropicSearchResultBlockParam:
|
AnthropicSearchResultBlockParam:
|
||||||
example:
|
example:
|
||||||
content:
|
content:
|
||||||
@@ -2315,6 +2342,7 @@ components:
|
|||||||
id: msg_01XFDUDYJgAACzvnptvVoYEL
|
id: msg_01XFDUDYJgAACzvnptvVoYEL
|
||||||
model: claude-sonnet-4-5-20250929
|
model: claude-sonnet-4-5-20250929
|
||||||
role: assistant
|
role: assistant
|
||||||
|
stop_details: null
|
||||||
stop_reason: end_turn
|
stop_reason: end_turn
|
||||||
stop_sequence: null
|
stop_sequence: null
|
||||||
type: message
|
type: message
|
||||||
@@ -2338,6 +2366,8 @@ components:
|
|||||||
enum:
|
enum:
|
||||||
- assistant
|
- assistant
|
||||||
type: string
|
type: string
|
||||||
|
stop_details:
|
||||||
|
$ref: '#/components/schemas/AnthropicRefusalStopDetails'
|
||||||
stop_reason:
|
stop_reason:
|
||||||
$ref: '#/components/schemas/ORAnthropicStopReason'
|
$ref: '#/components/schemas/ORAnthropicStopReason'
|
||||||
stop_sequence:
|
stop_sequence:
|
||||||
@@ -2375,6 +2405,7 @@ components:
|
|||||||
- content
|
- content
|
||||||
- model
|
- model
|
||||||
- stop_reason
|
- stop_reason
|
||||||
|
- stop_details
|
||||||
- stop_sequence
|
- stop_sequence
|
||||||
- usage
|
- usage
|
||||||
type: object
|
type: object
|
||||||
@@ -4413,6 +4444,66 @@ components:
|
|||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
type: object
|
type: object
|
||||||
|
CodeInterpreterCallItem:
|
||||||
|
description: A code interpreter execution call with outputs
|
||||||
|
example:
|
||||||
|
code: print("Hello, World!")
|
||||||
|
container_id: container-xyz789
|
||||||
|
id: code-abc123
|
||||||
|
outputs:
|
||||||
|
- logs: Hello, World!
|
||||||
|
type: logs
|
||||||
|
status: completed
|
||||||
|
type: code_interpreter_call
|
||||||
|
properties:
|
||||||
|
code:
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
container_id:
|
||||||
|
type: string
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
outputs:
|
||||||
|
items:
|
||||||
|
anyOf:
|
||||||
|
- properties:
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- image
|
||||||
|
type: string
|
||||||
|
url:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- url
|
||||||
|
type: object
|
||||||
|
- properties:
|
||||||
|
logs:
|
||||||
|
type: string
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- logs
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- logs
|
||||||
|
type: object
|
||||||
|
nullable: true
|
||||||
|
type: array
|
||||||
|
status:
|
||||||
|
$ref: '#/components/schemas/ToolCallStatus'
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- code_interpreter_call
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- id
|
||||||
|
- code
|
||||||
|
- outputs
|
||||||
|
- status
|
||||||
|
- container_id
|
||||||
|
type: object
|
||||||
CodeInterpreterServerTool:
|
CodeInterpreterServerTool:
|
||||||
description: Code interpreter tool configuration
|
description: Code interpreter tool configuration
|
||||||
example:
|
example:
|
||||||
@@ -4868,12 +4959,7 @@ components:
|
|||||||
type: openrouter:datetime
|
type: openrouter:datetime
|
||||||
properties:
|
properties:
|
||||||
parameters:
|
parameters:
|
||||||
properties:
|
$ref: '#/components/schemas/DatetimeServerToolConfig'
|
||||||
timezone:
|
|
||||||
description: IANA timezone name (e.g. "America/New_York"). Defaults to UTC.
|
|
||||||
example: America/New_York
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
type:
|
type:
|
||||||
enum:
|
enum:
|
||||||
- openrouter:datetime
|
- openrouter:datetime
|
||||||
@@ -4881,6 +4967,16 @@ components:
|
|||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
type: object
|
type: object
|
||||||
|
DatetimeServerToolConfig:
|
||||||
|
description: Configuration for the openrouter:datetime server tool
|
||||||
|
example:
|
||||||
|
timezone: America/New_York
|
||||||
|
properties:
|
||||||
|
timezone:
|
||||||
|
description: IANA timezone name (e.g. "America/New_York"). Defaults to UTC.
|
||||||
|
example: America/New_York
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
DefaultParameters:
|
DefaultParameters:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
description: Default parameters for this model
|
description: Default parameters for this model
|
||||||
@@ -5320,6 +5416,24 @@ components:
|
|||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
type: object
|
type: object
|
||||||
|
FrameImage:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/ContentPartImage'
|
||||||
|
- properties:
|
||||||
|
frame_type:
|
||||||
|
description: Whether this image represents the first or last frame of the video
|
||||||
|
enum:
|
||||||
|
- first_frame
|
||||||
|
- last_frame
|
||||||
|
example: first_frame
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- frame_type
|
||||||
|
type: object
|
||||||
|
example:
|
||||||
|
image_url:
|
||||||
|
url: https://example.com/image.png
|
||||||
|
type: image_url
|
||||||
FunctionCallArgsDeltaEvent:
|
FunctionCallArgsDeltaEvent:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/BaseFunctionCallArgsDeltaEvent'
|
- $ref: '#/components/schemas/BaseFunctionCallArgsDeltaEvent'
|
||||||
@@ -6672,6 +6786,7 @@ components:
|
|||||||
description: Event sent when the message metadata changes (e.g., stop_reason)
|
description: Event sent when the message metadata changes (e.g., stop_reason)
|
||||||
example:
|
example:
|
||||||
delta:
|
delta:
|
||||||
|
stop_details: null
|
||||||
stop_reason: end_turn
|
stop_reason: end_turn
|
||||||
stop_sequence: null
|
stop_sequence: null
|
||||||
type: message_delta
|
type: message_delta
|
||||||
@@ -6682,6 +6797,8 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
container:
|
container:
|
||||||
$ref: '#/components/schemas/AnthropicContainer'
|
$ref: '#/components/schemas/AnthropicContainer'
|
||||||
|
stop_details:
|
||||||
|
$ref: '#/components/schemas/AnthropicRefusalStopDetails'
|
||||||
stop_reason:
|
stop_reason:
|
||||||
$ref: '#/components/schemas/ORAnthropicStopReason'
|
$ref: '#/components/schemas/ORAnthropicStopReason'
|
||||||
stop_sequence:
|
stop_sequence:
|
||||||
@@ -6689,6 +6806,7 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- container
|
- container
|
||||||
|
- stop_details
|
||||||
- stop_reason
|
- stop_reason
|
||||||
- stop_sequence
|
- stop_sequence
|
||||||
type: object
|
type: object
|
||||||
@@ -7472,6 +7590,7 @@ components:
|
|||||||
id: msg_01XFDUDYJgAACzvnptvVoYEL
|
id: msg_01XFDUDYJgAACzvnptvVoYEL
|
||||||
model: claude-sonnet-4-5-20250929
|
model: claude-sonnet-4-5-20250929
|
||||||
role: assistant
|
role: assistant
|
||||||
|
stop_details: null
|
||||||
stop_reason: end_turn
|
stop_reason: end_turn
|
||||||
stop_sequence: null
|
stop_sequence: null
|
||||||
type: message
|
type: message
|
||||||
@@ -7492,6 +7611,7 @@ components:
|
|||||||
id: msg_01XFDUDYJgAACzvnptvVoYEL
|
id: msg_01XFDUDYJgAACzvnptvVoYEL
|
||||||
model: claude-sonnet-4-5-20250929
|
model: claude-sonnet-4-5-20250929
|
||||||
role: assistant
|
role: assistant
|
||||||
|
stop_details: null
|
||||||
stop_reason: null
|
stop_reason: null
|
||||||
stop_sequence: null
|
stop_sequence: null
|
||||||
type: message
|
type: message
|
||||||
@@ -7623,6 +7743,8 @@ components:
|
|||||||
enum:
|
enum:
|
||||||
- assistant
|
- assistant
|
||||||
type: string
|
type: string
|
||||||
|
stop_details:
|
||||||
|
$ref: '#/components/schemas/AnthropicRefusalStopDetails'
|
||||||
stop_reason:
|
stop_reason:
|
||||||
nullable: true
|
nullable: true
|
||||||
stop_sequence:
|
stop_sequence:
|
||||||
@@ -7659,6 +7781,7 @@ components:
|
|||||||
- content
|
- content
|
||||||
- model
|
- model
|
||||||
- stop_reason
|
- stop_reason
|
||||||
|
- stop_details
|
||||||
- stop_sequence
|
- stop_sequence
|
||||||
- usage
|
- usage
|
||||||
type: object
|
type: object
|
||||||
@@ -8679,6 +8802,181 @@ components:
|
|||||||
example: end_turn
|
example: end_turn
|
||||||
nullable: true
|
nullable: true
|
||||||
type: string
|
type: string
|
||||||
|
OutputApplyPatchServerToolItem:
|
||||||
|
description: An openrouter:apply_patch server tool output item
|
||||||
|
example:
|
||||||
|
filePath: /src/main.ts
|
||||||
|
id: ap_tmp_abc123
|
||||||
|
status: completed
|
||||||
|
type: openrouter:apply_patch
|
||||||
|
properties:
|
||||||
|
filePath:
|
||||||
|
type: string
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
patch:
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
$ref: '#/components/schemas/ToolCallStatus'
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- openrouter:apply_patch
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- status
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
OutputBashServerToolItem:
|
||||||
|
description: An openrouter:bash server tool output item
|
||||||
|
example:
|
||||||
|
command: ls -la
|
||||||
|
exitCode: 0
|
||||||
|
id: bash_tmp_abc123
|
||||||
|
status: completed
|
||||||
|
stdout: |
|
||||||
|
total 0
|
||||||
|
type: openrouter:bash
|
||||||
|
properties:
|
||||||
|
command:
|
||||||
|
type: string
|
||||||
|
exitCode:
|
||||||
|
type: integer
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
$ref: '#/components/schemas/ToolCallStatus'
|
||||||
|
stderr:
|
||||||
|
type: string
|
||||||
|
stdout:
|
||||||
|
type: string
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- openrouter:bash
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- status
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
OutputBrowserUseServerToolItem:
|
||||||
|
description: An openrouter:browser_use server tool output item
|
||||||
|
example:
|
||||||
|
action: screenshot
|
||||||
|
id: bu_tmp_abc123
|
||||||
|
status: completed
|
||||||
|
type: openrouter:browser_use
|
||||||
|
properties:
|
||||||
|
action:
|
||||||
|
type: string
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
screenshotB64:
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
$ref: '#/components/schemas/ToolCallStatus'
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- openrouter:browser_use
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- status
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
OutputCodeInterpreterCallItem:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/CodeInterpreterCallItem'
|
||||||
|
- properties: {}
|
||||||
|
type: object
|
||||||
|
description: A code interpreter execution call with outputs
|
||||||
|
example:
|
||||||
|
code: print("hello")
|
||||||
|
container_id: ctr-xyz789
|
||||||
|
id: ci-abc123
|
||||||
|
outputs:
|
||||||
|
- logs: |
|
||||||
|
hello
|
||||||
|
type: logs
|
||||||
|
status: completed
|
||||||
|
type: code_interpreter_call
|
||||||
|
OutputCodeInterpreterServerToolItem:
|
||||||
|
description: An openrouter:code_interpreter server tool output item
|
||||||
|
example:
|
||||||
|
code: print("hello")
|
||||||
|
id: ci_tmp_abc123
|
||||||
|
language: python
|
||||||
|
status: completed
|
||||||
|
stdout: |
|
||||||
|
hello
|
||||||
|
type: openrouter:code_interpreter
|
||||||
|
properties:
|
||||||
|
code:
|
||||||
|
type: string
|
||||||
|
exitCode:
|
||||||
|
type: integer
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
language:
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
$ref: '#/components/schemas/ToolCallStatus'
|
||||||
|
stderr:
|
||||||
|
type: string
|
||||||
|
stdout:
|
||||||
|
type: string
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- openrouter:code_interpreter
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- status
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
OutputComputerCallItem:
|
||||||
|
example:
|
||||||
|
action:
|
||||||
|
type: screenshot
|
||||||
|
call_id: call-abc123
|
||||||
|
id: cu-abc123
|
||||||
|
pending_safety_checks: []
|
||||||
|
status: completed
|
||||||
|
type: computer_call
|
||||||
|
properties:
|
||||||
|
action:
|
||||||
|
nullable: true
|
||||||
|
call_id:
|
||||||
|
type: string
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
pending_safety_checks:
|
||||||
|
items:
|
||||||
|
properties:
|
||||||
|
code:
|
||||||
|
type: string
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
message:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- code
|
||||||
|
- message
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
status:
|
||||||
|
enum:
|
||||||
|
- completed
|
||||||
|
- incomplete
|
||||||
|
- in_progress
|
||||||
|
type: string
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- computer_call
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- call_id
|
||||||
|
- status
|
||||||
|
- pending_safety_checks
|
||||||
|
type: object
|
||||||
OutputDatetimeItem:
|
OutputDatetimeItem:
|
||||||
description: An openrouter:datetime server tool output item
|
description: An openrouter:datetime server tool output item
|
||||||
example:
|
example:
|
||||||
@@ -8720,6 +9018,31 @@ components:
|
|||||||
results: []
|
results: []
|
||||||
status: completed
|
status: completed
|
||||||
type: file_search_call
|
type: file_search_call
|
||||||
|
OutputFileSearchServerToolItem:
|
||||||
|
description: An openrouter:file_search server tool output item
|
||||||
|
example:
|
||||||
|
id: fs_tmp_abc123
|
||||||
|
queries:
|
||||||
|
- search term
|
||||||
|
status: completed
|
||||||
|
type: openrouter:file_search
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
queries:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
status:
|
||||||
|
$ref: '#/components/schemas/ToolCallStatus'
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- openrouter:file_search
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- status
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
OutputFunctionCallItem:
|
OutputFunctionCallItem:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/OutputItemFunctionCall'
|
- $ref: '#/components/schemas/OutputItemFunctionCall'
|
||||||
@@ -8742,6 +9065,32 @@ components:
|
|||||||
result: null
|
result: null
|
||||||
status: completed
|
status: completed
|
||||||
type: image_generation_call
|
type: image_generation_call
|
||||||
|
OutputImageGenerationServerToolItem:
|
||||||
|
description: An openrouter:image_generation server tool output item
|
||||||
|
example:
|
||||||
|
id: ig_tmp_abc123
|
||||||
|
imageUrl: https://example.com/image.png
|
||||||
|
status: completed
|
||||||
|
type: openrouter:image_generation
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
imageB64:
|
||||||
|
type: string
|
||||||
|
imageUrl:
|
||||||
|
type: string
|
||||||
|
revisedPrompt:
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
$ref: '#/components/schemas/ToolCallStatus'
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- openrouter:image_generation
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- status
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
OutputItemAddedEvent:
|
OutputItemAddedEvent:
|
||||||
description: Event emitted when a new output item is added to the response
|
description: Event emitted when a new output item is added to the response
|
||||||
example:
|
example:
|
||||||
@@ -8966,11 +9315,24 @@ components:
|
|||||||
description: An output item from the response
|
description: An output item from the response
|
||||||
discriminator:
|
discriminator:
|
||||||
mapping:
|
mapping:
|
||||||
|
code_interpreter_call: '#/components/schemas/OutputCodeInterpreterCallItem'
|
||||||
|
computer_call: '#/components/schemas/OutputComputerCallItem'
|
||||||
file_search_call: '#/components/schemas/OutputFileSearchCallItem'
|
file_search_call: '#/components/schemas/OutputFileSearchCallItem'
|
||||||
function_call: '#/components/schemas/OutputFunctionCallItem'
|
function_call: '#/components/schemas/OutputFunctionCallItem'
|
||||||
image_generation_call: '#/components/schemas/OutputImageGenerationCallItem'
|
image_generation_call: '#/components/schemas/OutputImageGenerationCallItem'
|
||||||
message: '#/components/schemas/OutputMessageItem'
|
message: '#/components/schemas/OutputMessageItem'
|
||||||
|
openrouter:apply_patch: '#/components/schemas/OutputApplyPatchServerToolItem'
|
||||||
|
openrouter:bash: '#/components/schemas/OutputBashServerToolItem'
|
||||||
|
openrouter:browser_use: '#/components/schemas/OutputBrowserUseServerToolItem'
|
||||||
|
openrouter:code_interpreter: '#/components/schemas/OutputCodeInterpreterServerToolItem'
|
||||||
openrouter:datetime: '#/components/schemas/OutputDatetimeItem'
|
openrouter:datetime: '#/components/schemas/OutputDatetimeItem'
|
||||||
|
openrouter:file_search: '#/components/schemas/OutputFileSearchServerToolItem'
|
||||||
|
openrouter:image_generation: '#/components/schemas/OutputImageGenerationServerToolItem'
|
||||||
|
openrouter:mcp: '#/components/schemas/OutputMcpServerToolItem'
|
||||||
|
openrouter:memory: '#/components/schemas/OutputMemoryServerToolItem'
|
||||||
|
openrouter:text_editor: '#/components/schemas/OutputTextEditorServerToolItem'
|
||||||
|
openrouter:tool_search: '#/components/schemas/OutputToolSearchServerToolItem'
|
||||||
|
openrouter:web_fetch: '#/components/schemas/OutputWebFetchServerToolItem'
|
||||||
openrouter:web_search: '#/components/schemas/OutputWebSearchServerToolItem'
|
openrouter:web_search: '#/components/schemas/OutputWebSearchServerToolItem'
|
||||||
reasoning: '#/components/schemas/OutputReasoningItem'
|
reasoning: '#/components/schemas/OutputReasoningItem'
|
||||||
web_search_call: '#/components/schemas/OutputWebSearchCallItem'
|
web_search_call: '#/components/schemas/OutputWebSearchCallItem'
|
||||||
@@ -8990,8 +9352,21 @@ components:
|
|||||||
- $ref: '#/components/schemas/OutputWebSearchCallItem'
|
- $ref: '#/components/schemas/OutputWebSearchCallItem'
|
||||||
- $ref: '#/components/schemas/OutputFileSearchCallItem'
|
- $ref: '#/components/schemas/OutputFileSearchCallItem'
|
||||||
- $ref: '#/components/schemas/OutputImageGenerationCallItem'
|
- $ref: '#/components/schemas/OutputImageGenerationCallItem'
|
||||||
|
- $ref: '#/components/schemas/OutputCodeInterpreterCallItem'
|
||||||
|
- $ref: '#/components/schemas/OutputComputerCallItem'
|
||||||
- $ref: '#/components/schemas/OutputDatetimeItem'
|
- $ref: '#/components/schemas/OutputDatetimeItem'
|
||||||
- $ref: '#/components/schemas/OutputWebSearchServerToolItem'
|
- $ref: '#/components/schemas/OutputWebSearchServerToolItem'
|
||||||
|
- $ref: '#/components/schemas/OutputCodeInterpreterServerToolItem'
|
||||||
|
- $ref: '#/components/schemas/OutputFileSearchServerToolItem'
|
||||||
|
- $ref: '#/components/schemas/OutputImageGenerationServerToolItem'
|
||||||
|
- $ref: '#/components/schemas/OutputBrowserUseServerToolItem'
|
||||||
|
- $ref: '#/components/schemas/OutputBashServerToolItem'
|
||||||
|
- $ref: '#/components/schemas/OutputTextEditorServerToolItem'
|
||||||
|
- $ref: '#/components/schemas/OutputApplyPatchServerToolItem'
|
||||||
|
- $ref: '#/components/schemas/OutputWebFetchServerToolItem'
|
||||||
|
- $ref: '#/components/schemas/OutputToolSearchServerToolItem'
|
||||||
|
- $ref: '#/components/schemas/OutputMemoryServerToolItem'
|
||||||
|
- $ref: '#/components/schemas/OutputMcpServerToolItem'
|
||||||
OutputItemWebSearchCall:
|
OutputItemWebSearchCall:
|
||||||
example:
|
example:
|
||||||
action:
|
action:
|
||||||
@@ -9061,6 +9436,62 @@ components:
|
|||||||
- action
|
- action
|
||||||
- status
|
- status
|
||||||
type: object
|
type: object
|
||||||
|
OutputMcpServerToolItem:
|
||||||
|
description: An openrouter:mcp server tool output item
|
||||||
|
example:
|
||||||
|
id: mcp_tmp_abc123
|
||||||
|
serverLabel: my-server
|
||||||
|
status: completed
|
||||||
|
toolName: get_data
|
||||||
|
type: openrouter:mcp
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
serverLabel:
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
$ref: '#/components/schemas/ToolCallStatus'
|
||||||
|
toolName:
|
||||||
|
type: string
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- openrouter:mcp
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- status
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
OutputMemoryServerToolItem:
|
||||||
|
description: An openrouter:memory server tool output item
|
||||||
|
example:
|
||||||
|
action: read
|
||||||
|
id: mem_tmp_abc123
|
||||||
|
key: user_preference
|
||||||
|
status: completed
|
||||||
|
type: openrouter:memory
|
||||||
|
properties:
|
||||||
|
action:
|
||||||
|
enum:
|
||||||
|
- read
|
||||||
|
- write
|
||||||
|
- delete
|
||||||
|
type: string
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
key:
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
$ref: '#/components/schemas/ToolCallStatus'
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- openrouter:memory
|
||||||
|
type: string
|
||||||
|
value:
|
||||||
|
nullable: true
|
||||||
|
required:
|
||||||
|
- status
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
OutputMessage:
|
OutputMessage:
|
||||||
example:
|
example:
|
||||||
content:
|
content:
|
||||||
@@ -9178,6 +9609,85 @@ components:
|
|||||||
- text: Analyzed the problem and found the optimal solution.
|
- text: Analyzed the problem and found the optimal solution.
|
||||||
type: summary_text
|
type: summary_text
|
||||||
type: reasoning
|
type: reasoning
|
||||||
|
OutputTextEditorServerToolItem:
|
||||||
|
description: An openrouter:text_editor server tool output item
|
||||||
|
example:
|
||||||
|
command: view
|
||||||
|
filePath: /src/main.ts
|
||||||
|
id: te_tmp_abc123
|
||||||
|
status: completed
|
||||||
|
type: openrouter:text_editor
|
||||||
|
properties:
|
||||||
|
command:
|
||||||
|
enum:
|
||||||
|
- view
|
||||||
|
- create
|
||||||
|
- str_replace
|
||||||
|
- insert
|
||||||
|
type: string
|
||||||
|
filePath:
|
||||||
|
type: string
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
$ref: '#/components/schemas/ToolCallStatus'
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- openrouter:text_editor
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- status
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
OutputToolSearchServerToolItem:
|
||||||
|
description: An openrouter:tool_search server tool output item
|
||||||
|
example:
|
||||||
|
id: ts_tmp_abc123
|
||||||
|
query: weather tools
|
||||||
|
status: completed
|
||||||
|
type: openrouter:tool_search
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
query:
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
$ref: '#/components/schemas/ToolCallStatus'
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- openrouter:tool_search
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- status
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
OutputWebFetchServerToolItem:
|
||||||
|
description: An openrouter:web_fetch server tool output item
|
||||||
|
example:
|
||||||
|
id: wf_tmp_abc123
|
||||||
|
status: completed
|
||||||
|
title: Example Domain
|
||||||
|
type: openrouter:web_fetch
|
||||||
|
url: https://example.com
|
||||||
|
properties:
|
||||||
|
content:
|
||||||
|
type: string
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
status:
|
||||||
|
$ref: '#/components/schemas/ToolCallStatus'
|
||||||
|
title:
|
||||||
|
type: string
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- openrouter:web_fetch
|
||||||
|
type: string
|
||||||
|
url:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- status
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
OutputWebSearchCallItem:
|
OutputWebSearchCallItem:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/OutputItemWebSearchCall'
|
- $ref: '#/components/schemas/OutputItemWebSearchCall'
|
||||||
@@ -11657,10 +12167,17 @@ components:
|
|||||||
exclusiveMinimum: true
|
exclusiveMinimum: true
|
||||||
minimum: 0
|
minimum: 0
|
||||||
type: integer
|
type: integer
|
||||||
|
frame_images:
|
||||||
|
description: >-
|
||||||
|
Images to use as the first and/or last frame of the generated video. Each image must specify a frame_type of
|
||||||
|
first_frame or last_frame.
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/FrameImage'
|
||||||
|
type: array
|
||||||
generate_audio:
|
generate_audio:
|
||||||
description: >-
|
description: >-
|
||||||
Whether to generate audio alongside the video. Defaults to true for models that support audio output, false
|
Whether to generate audio alongside the video. Defaults to the endpoint's generate_audio capability flag,
|
||||||
otherwise.
|
false if not set.
|
||||||
example: true
|
example: true
|
||||||
type: boolean
|
type: boolean
|
||||||
input_references:
|
input_references:
|
||||||
@@ -12184,15 +12701,20 @@ components:
|
|||||||
canonical_slug: google/veo-3.1
|
canonical_slug: google/veo-3.1
|
||||||
created: 1700000000
|
created: 1700000000
|
||||||
description: Google video generation model
|
description: Google video generation model
|
||||||
|
generate_audio: true
|
||||||
id: google/veo-3.1
|
id: google/veo-3.1
|
||||||
name: Veo 3.1
|
name: Veo 3.1
|
||||||
pricing_skus:
|
pricing_skus:
|
||||||
generate: '0.50'
|
generate: '0.50'
|
||||||
|
seed: null
|
||||||
supported_aspect_ratios:
|
supported_aspect_ratios:
|
||||||
- '16:9'
|
- '16:9'
|
||||||
supported_durations:
|
supported_durations:
|
||||||
- 5
|
- 5
|
||||||
- 8
|
- 8
|
||||||
|
supported_frame_images:
|
||||||
|
- first_frame
|
||||||
|
- last_frame
|
||||||
supported_resolutions:
|
supported_resolutions:
|
||||||
- 720p
|
- 720p
|
||||||
supported_sizes: null
|
supported_sizes: null
|
||||||
@@ -12214,6 +12736,10 @@ components:
|
|||||||
description: Description of the model
|
description: Description of the model
|
||||||
example: GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.
|
example: GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.
|
||||||
type: string
|
type: string
|
||||||
|
generate_audio:
|
||||||
|
description: Whether the model supports generating audio alongside video
|
||||||
|
nullable: true
|
||||||
|
type: boolean
|
||||||
hugging_face_id:
|
hugging_face_id:
|
||||||
description: Hugging Face model identifier, if applicable
|
description: Hugging Face model identifier, if applicable
|
||||||
example: microsoft/DialoGPT-medium
|
example: microsoft/DialoGPT-medium
|
||||||
@@ -12233,6 +12759,10 @@ components:
|
|||||||
description: Pricing SKUs with provider prefix stripped, values as strings
|
description: Pricing SKUs with provider prefix stripped, values as strings
|
||||||
nullable: true
|
nullable: true
|
||||||
type: object
|
type: object
|
||||||
|
seed:
|
||||||
|
description: Whether the model supports deterministic generation via seed parameter
|
||||||
|
nullable: true
|
||||||
|
type: boolean
|
||||||
supported_aspect_ratios:
|
supported_aspect_ratios:
|
||||||
description: Supported output aspect ratios
|
description: Supported output aspect ratios
|
||||||
items:
|
items:
|
||||||
@@ -12253,6 +12783,15 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
nullable: true
|
nullable: true
|
||||||
type: array
|
type: array
|
||||||
|
supported_frame_images:
|
||||||
|
description: Supported frame image types (e.g. first_frame, last_frame)
|
||||||
|
items:
|
||||||
|
enum:
|
||||||
|
- first_frame
|
||||||
|
- last_frame
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
type: array
|
||||||
supported_resolutions:
|
supported_resolutions:
|
||||||
description: Supported output resolutions
|
description: Supported output resolutions
|
||||||
items:
|
items:
|
||||||
@@ -12310,6 +12849,9 @@ components:
|
|||||||
- supported_aspect_ratios
|
- supported_aspect_ratios
|
||||||
- supported_sizes
|
- supported_sizes
|
||||||
- supported_durations
|
- supported_durations
|
||||||
|
- supported_frame_images
|
||||||
|
- generate_audio
|
||||||
|
- seed
|
||||||
- allowed_passthrough_parameters
|
- allowed_passthrough_parameters
|
||||||
type: object
|
type: object
|
||||||
VideoModelsListResponse:
|
VideoModelsListResponse:
|
||||||
@@ -12319,15 +12861,20 @@ components:
|
|||||||
canonical_slug: google/veo-3.1
|
canonical_slug: google/veo-3.1
|
||||||
created: 1700000000
|
created: 1700000000
|
||||||
description: Google video generation model
|
description: Google video generation model
|
||||||
|
generate_audio: true
|
||||||
id: google/veo-3.1
|
id: google/veo-3.1
|
||||||
name: Veo 3.1
|
name: Veo 3.1
|
||||||
pricing_skus:
|
pricing_skus:
|
||||||
generate: '0.50'
|
generate: '0.50'
|
||||||
|
seed: null
|
||||||
supported_aspect_ratios:
|
supported_aspect_ratios:
|
||||||
- '16:9'
|
- '16:9'
|
||||||
supported_durations:
|
supported_durations:
|
||||||
- 5
|
- 5
|
||||||
- 8
|
- 8
|
||||||
|
supported_frame_images:
|
||||||
|
- first_frame
|
||||||
|
- last_frame
|
||||||
supported_resolutions:
|
supported_resolutions:
|
||||||
- 720p
|
- 720p
|
||||||
supported_sizes: null
|
supported_sizes: null
|
||||||
@@ -18633,15 +19180,20 @@ paths:
|
|||||||
canonical_slug: google/veo-3.1
|
canonical_slug: google/veo-3.1
|
||||||
created: 1700000000
|
created: 1700000000
|
||||||
description: Google video generation model
|
description: Google video generation model
|
||||||
|
generate_audio: true
|
||||||
id: google/veo-3.1
|
id: google/veo-3.1
|
||||||
name: Veo 3.1
|
name: Veo 3.1
|
||||||
pricing_skus:
|
pricing_skus:
|
||||||
generate: '0.50'
|
generate: '0.50'
|
||||||
|
seed: null
|
||||||
supported_aspect_ratios:
|
supported_aspect_ratios:
|
||||||
- '16:9'
|
- '16:9'
|
||||||
supported_durations:
|
supported_durations:
|
||||||
- 5
|
- 5
|
||||||
- 8
|
- 8
|
||||||
|
supported_frame_images:
|
||||||
|
- first_frame
|
||||||
|
- last_frame
|
||||||
supported_resolutions:
|
supported_resolutions:
|
||||||
- 720p
|
- 720p
|
||||||
supported_sizes: null
|
supported_sizes: null
|
||||||
|
|||||||
Reference in New Issue
Block a user