mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-01 12:40:23 +08:00
chore: update OpenAPI specification from openrouter-web (#10)
Co-authored-by: mattapperson <192433+mattapperson@users.noreply.github.com>
This commit is contained in:
co-authored by
mattapperson
parent
8e8271ba55
commit
07e2eff913
+114
-186
@@ -168,6 +168,19 @@ components:
|
|||||||
content:
|
content:
|
||||||
- type: output_text
|
- type: output_text
|
||||||
text: Hello! How can I help you today?
|
text: Hello! How can I help you today?
|
||||||
|
ResponsesOutputMessage:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/OutputMessage'
|
||||||
|
- type: object
|
||||||
|
properties: {}
|
||||||
|
example:
|
||||||
|
id: msg-abc123
|
||||||
|
role: assistant
|
||||||
|
type: message
|
||||||
|
status: completed
|
||||||
|
content:
|
||||||
|
- type: output_text
|
||||||
|
text: Hello! How can I help you today?
|
||||||
ReasoningTextContent:
|
ReasoningTextContent:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -198,6 +211,29 @@ components:
|
|||||||
example:
|
example:
|
||||||
type: summary_text
|
type: summary_text
|
||||||
text: Analyzed the problem using first principles
|
text: Analyzed the problem using first principles
|
||||||
|
ResponsesOutputItemReasoning:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- reasoning
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
content:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ReasoningTextContent'
|
||||||
|
summary:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ReasoningSummaryText'
|
||||||
|
encrypted_content:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- summary
|
||||||
OutputItemFunctionCall:
|
OutputItemFunctionCall:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -224,6 +260,17 @@ components:
|
|||||||
name: get_weather
|
name: get_weather
|
||||||
arguments: '{"location":"San Francisco","unit":"celsius"}'
|
arguments: '{"location":"San Francisco","unit":"celsius"}'
|
||||||
call_id: call-abc123
|
call_id: call-abc123
|
||||||
|
ResponsesOutputItemFunctionCall:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/OutputItemFunctionCall'
|
||||||
|
- type: object
|
||||||
|
properties: {}
|
||||||
|
example:
|
||||||
|
type: function_call
|
||||||
|
id: call-abc123
|
||||||
|
name: get_weather
|
||||||
|
arguments: '{"location":"San Francisco","unit":"celsius"}'
|
||||||
|
call_id: call-abc123
|
||||||
WebSearchStatus:
|
WebSearchStatus:
|
||||||
type: string
|
type: string
|
||||||
enum:
|
enum:
|
||||||
@@ -251,6 +298,15 @@ components:
|
|||||||
type: web_search_call
|
type: web_search_call
|
||||||
id: search-abc123
|
id: search-abc123
|
||||||
status: completed
|
status: completed
|
||||||
|
ResponsesWebSearchCallOutput:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/OutputItemWebSearchCall'
|
||||||
|
- type: object
|
||||||
|
properties: {}
|
||||||
|
example:
|
||||||
|
type: web_search_call
|
||||||
|
id: search-abc123
|
||||||
|
status: completed
|
||||||
OutputItemFileSearchCall:
|
OutputItemFileSearchCall:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -278,6 +334,18 @@ components:
|
|||||||
- machine learning algorithms
|
- machine learning algorithms
|
||||||
- neural networks
|
- neural networks
|
||||||
status: completed
|
status: completed
|
||||||
|
ResponsesOutputItemFileSearchCall:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/OutputItemFileSearchCall'
|
||||||
|
- type: object
|
||||||
|
properties: {}
|
||||||
|
example:
|
||||||
|
type: file_search_call
|
||||||
|
id: filesearch-abc123
|
||||||
|
queries:
|
||||||
|
- machine learning algorithms
|
||||||
|
- neural networks
|
||||||
|
status: completed
|
||||||
ImageGenerationStatus:
|
ImageGenerationStatus:
|
||||||
type: string
|
type: string
|
||||||
enum:
|
enum:
|
||||||
@@ -310,80 +378,24 @@ components:
|
|||||||
id: imagegen-abc123
|
id: imagegen-abc123
|
||||||
result: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==
|
result: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==
|
||||||
status: completed
|
status: completed
|
||||||
|
ResponsesImageGenerationCall:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/OutputItemImageGenerationCall'
|
||||||
|
- type: object
|
||||||
|
properties: {}
|
||||||
|
example:
|
||||||
|
type: image_generation_call
|
||||||
|
id: imagegen-abc123
|
||||||
|
result: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==
|
||||||
|
status: completed
|
||||||
ResponsesOutputItem:
|
ResponsesOutputItem:
|
||||||
anyOf:
|
anyOf:
|
||||||
- allOf:
|
- $ref: '#/components/schemas/ResponsesOutputMessage'
|
||||||
- $ref: '#/components/schemas/OutputMessage'
|
- $ref: '#/components/schemas/ResponsesOutputItemReasoning'
|
||||||
- type: object
|
- $ref: '#/components/schemas/ResponsesOutputItemFunctionCall'
|
||||||
properties: {}
|
- $ref: '#/components/schemas/ResponsesWebSearchCallOutput'
|
||||||
example:
|
- $ref: '#/components/schemas/ResponsesOutputItemFileSearchCall'
|
||||||
id: msg-abc123
|
- $ref: '#/components/schemas/ResponsesImageGenerationCall'
|
||||||
role: assistant
|
|
||||||
type: message
|
|
||||||
status: completed
|
|
||||||
content:
|
|
||||||
- type: output_text
|
|
||||||
text: Hello! How can I help you today?
|
|
||||||
- type: object
|
|
||||||
properties:
|
|
||||||
type:
|
|
||||||
type: string
|
|
||||||
enum:
|
|
||||||
- reasoning
|
|
||||||
id:
|
|
||||||
type: string
|
|
||||||
content:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/ReasoningTextContent'
|
|
||||||
summary:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/ReasoningSummaryText'
|
|
||||||
encrypted_content:
|
|
||||||
type: string
|
|
||||||
nullable: true
|
|
||||||
required:
|
|
||||||
- type
|
|
||||||
- summary
|
|
||||||
- allOf:
|
|
||||||
- $ref: '#/components/schemas/OutputItemFunctionCall'
|
|
||||||
- type: object
|
|
||||||
properties: {}
|
|
||||||
example:
|
|
||||||
type: function_call
|
|
||||||
id: call-abc123
|
|
||||||
name: get_weather
|
|
||||||
arguments: '{"location":"San Francisco","unit":"celsius"}'
|
|
||||||
call_id: call-abc123
|
|
||||||
- allOf:
|
|
||||||
- $ref: '#/components/schemas/OutputItemWebSearchCall'
|
|
||||||
- type: object
|
|
||||||
properties: {}
|
|
||||||
example:
|
|
||||||
type: web_search_call
|
|
||||||
id: search-abc123
|
|
||||||
status: completed
|
|
||||||
- allOf:
|
|
||||||
- $ref: '#/components/schemas/OutputItemFileSearchCall'
|
|
||||||
- type: object
|
|
||||||
properties: {}
|
|
||||||
example:
|
|
||||||
type: file_search_call
|
|
||||||
id: filesearch-abc123
|
|
||||||
queries:
|
|
||||||
- machine learning algorithms
|
|
||||||
- neural networks
|
|
||||||
status: completed
|
|
||||||
- allOf:
|
|
||||||
- $ref: '#/components/schemas/OutputItemImageGenerationCall'
|
|
||||||
- type: object
|
|
||||||
properties: {}
|
|
||||||
example:
|
|
||||||
type: image_generation_call
|
|
||||||
id: imagegen-abc123
|
|
||||||
result: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==
|
|
||||||
status: completed
|
|
||||||
description: An output item from the response
|
description: An output item from the response
|
||||||
example:
|
example:
|
||||||
id: msg-abc123
|
id: msg-abc123
|
||||||
@@ -744,78 +756,12 @@ components:
|
|||||||
- $ref: '#/components/schemas/OpenResponsesInputMessageItem'
|
- $ref: '#/components/schemas/OpenResponsesInputMessageItem'
|
||||||
- $ref: '#/components/schemas/OpenResponsesFunctionToolCall'
|
- $ref: '#/components/schemas/OpenResponsesFunctionToolCall'
|
||||||
- $ref: '#/components/schemas/OpenResponsesFunctionCallOutput'
|
- $ref: '#/components/schemas/OpenResponsesFunctionCallOutput'
|
||||||
- allOf:
|
- $ref: '#/components/schemas/ResponsesOutputMessage'
|
||||||
- $ref: '#/components/schemas/OutputMessage'
|
- $ref: '#/components/schemas/ResponsesOutputItemReasoning'
|
||||||
- type: object
|
- $ref: '#/components/schemas/ResponsesOutputItemFunctionCall'
|
||||||
properties: {}
|
- $ref: '#/components/schemas/ResponsesWebSearchCallOutput'
|
||||||
example:
|
- $ref: '#/components/schemas/ResponsesOutputItemFileSearchCall'
|
||||||
id: msg-abc123
|
- $ref: '#/components/schemas/ResponsesImageGenerationCall'
|
||||||
role: assistant
|
|
||||||
type: message
|
|
||||||
status: completed
|
|
||||||
content:
|
|
||||||
- type: output_text
|
|
||||||
text: Hello! How can I help you today?
|
|
||||||
- type: object
|
|
||||||
properties:
|
|
||||||
type:
|
|
||||||
type: string
|
|
||||||
enum:
|
|
||||||
- reasoning
|
|
||||||
id:
|
|
||||||
type: string
|
|
||||||
content:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/ReasoningTextContent'
|
|
||||||
summary:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/ReasoningSummaryText'
|
|
||||||
encrypted_content:
|
|
||||||
type: string
|
|
||||||
nullable: true
|
|
||||||
required:
|
|
||||||
- type
|
|
||||||
- summary
|
|
||||||
- allOf:
|
|
||||||
- $ref: '#/components/schemas/OutputItemFunctionCall'
|
|
||||||
- type: object
|
|
||||||
properties: {}
|
|
||||||
example:
|
|
||||||
type: function_call
|
|
||||||
id: call-abc123
|
|
||||||
name: get_weather
|
|
||||||
arguments: '{"location":"San Francisco","unit":"celsius"}'
|
|
||||||
call_id: call-abc123
|
|
||||||
- allOf:
|
|
||||||
- $ref: '#/components/schemas/OutputItemWebSearchCall'
|
|
||||||
- type: object
|
|
||||||
properties: {}
|
|
||||||
example:
|
|
||||||
type: web_search_call
|
|
||||||
id: search-abc123
|
|
||||||
status: completed
|
|
||||||
- allOf:
|
|
||||||
- $ref: '#/components/schemas/OutputItemFileSearchCall'
|
|
||||||
- type: object
|
|
||||||
properties: {}
|
|
||||||
example:
|
|
||||||
type: file_search_call
|
|
||||||
id: filesearch-abc123
|
|
||||||
queries:
|
|
||||||
- machine learning algorithms
|
|
||||||
- neural networks
|
|
||||||
status: completed
|
|
||||||
- allOf:
|
|
||||||
- $ref: '#/components/schemas/OutputItemImageGenerationCall'
|
|
||||||
- type: object
|
|
||||||
properties: {}
|
|
||||||
example:
|
|
||||||
type: image_generation_call
|
|
||||||
id: imagegen-abc123
|
|
||||||
result: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==
|
|
||||||
status: completed
|
|
||||||
description: An item in the input array for a response request
|
description: An item in the input array for a response request
|
||||||
example:
|
example:
|
||||||
role: user
|
role: user
|
||||||
@@ -893,6 +839,28 @@ components:
|
|||||||
- high
|
- high
|
||||||
description: Size of the search context for web search tools
|
description: Size of the search context for web search tools
|
||||||
example: medium
|
example: medium
|
||||||
|
WebSearchPreviewToolUserLocation:
|
||||||
|
type: object
|
||||||
|
nullable: true
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- approximate
|
||||||
|
city:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
country:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
region:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
timezone:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
required:
|
||||||
|
- type
|
||||||
OpenResponsesWebSearchPreviewTool:
|
OpenResponsesWebSearchPreviewTool:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -903,27 +871,7 @@ components:
|
|||||||
search_context_size:
|
search_context_size:
|
||||||
$ref: '#/components/schemas/ResponsesSearchContextSize'
|
$ref: '#/components/schemas/ResponsesSearchContextSize'
|
||||||
user_location:
|
user_location:
|
||||||
type: object
|
$ref: '#/components/schemas/WebSearchPreviewToolUserLocation'
|
||||||
nullable: true
|
|
||||||
properties:
|
|
||||||
type:
|
|
||||||
type: string
|
|
||||||
enum:
|
|
||||||
- approximate
|
|
||||||
city:
|
|
||||||
type: string
|
|
||||||
nullable: true
|
|
||||||
country:
|
|
||||||
type: string
|
|
||||||
nullable: true
|
|
||||||
region:
|
|
||||||
type: string
|
|
||||||
nullable: true
|
|
||||||
timezone:
|
|
||||||
type: string
|
|
||||||
nullable: true
|
|
||||||
required:
|
|
||||||
- type
|
|
||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
description: Web search preview tool configuration
|
description: Web search preview tool configuration
|
||||||
@@ -939,27 +887,7 @@ components:
|
|||||||
search_context_size:
|
search_context_size:
|
||||||
$ref: '#/components/schemas/ResponsesSearchContextSize'
|
$ref: '#/components/schemas/ResponsesSearchContextSize'
|
||||||
user_location:
|
user_location:
|
||||||
type: object
|
$ref: '#/components/schemas/WebSearchPreviewToolUserLocation'
|
||||||
nullable: true
|
|
||||||
properties:
|
|
||||||
type:
|
|
||||||
type: string
|
|
||||||
enum:
|
|
||||||
- approximate
|
|
||||||
city:
|
|
||||||
type: string
|
|
||||||
nullable: true
|
|
||||||
country:
|
|
||||||
type: string
|
|
||||||
nullable: true
|
|
||||||
region:
|
|
||||||
type: string
|
|
||||||
nullable: true
|
|
||||||
timezone:
|
|
||||||
type: string
|
|
||||||
nullable: true
|
|
||||||
required:
|
|
||||||
- type
|
|
||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
description: Web search preview tool configuration (2025-03-11 version)
|
description: Web search preview tool configuration (2025-03-11 version)
|
||||||
|
|||||||
Reference in New Issue
Block a user