mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
chore: update OpenAPI spec from monorepo (#177)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
co-authored by
OpenRouter SDK Bot
parent
cb23cec150
commit
be9056bcbe
@@ -3593,6 +3593,7 @@ components:
|
|||||||
- $ref: '#/components/schemas/DatetimeServerTool'
|
- $ref: '#/components/schemas/DatetimeServerTool'
|
||||||
- $ref: '#/components/schemas/ImageGenerationServerTool_OpenRouter'
|
- $ref: '#/components/schemas/ImageGenerationServerTool_OpenRouter'
|
||||||
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
|
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
|
||||||
|
- $ref: '#/components/schemas/WebFetchServerTool'
|
||||||
- $ref: '#/components/schemas/OpenRouterWebSearchServerTool'
|
- $ref: '#/components/schemas/OpenRouterWebSearchServerTool'
|
||||||
- $ref: '#/components/schemas/ChatWebSearchShorthand'
|
- $ref: '#/components/schemas/ChatWebSearchShorthand'
|
||||||
description: Tool definition for function calling (regular function or OpenRouter built-in server tool)
|
description: Tool definition for function calling (regular function or OpenRouter built-in server tool)
|
||||||
@@ -5998,6 +5999,11 @@ components:
|
|||||||
example: 5
|
example: 5
|
||||||
nullable: true
|
nullable: true
|
||||||
type: integer
|
type: integer
|
||||||
|
num_fetches:
|
||||||
|
description: Number of web fetches performed
|
||||||
|
example: 0
|
||||||
|
nullable: true
|
||||||
|
type: integer
|
||||||
num_input_audio_prompt:
|
num_input_audio_prompt:
|
||||||
description: Number of audio inputs in the prompt
|
description: Number of audio inputs in the prompt
|
||||||
example: 0
|
example: 0
|
||||||
@@ -6119,6 +6125,7 @@ components:
|
|||||||
- num_input_audio_prompt
|
- num_input_audio_prompt
|
||||||
- num_media_completion
|
- num_media_completion
|
||||||
- num_search_results
|
- num_search_results
|
||||||
|
- num_fetches
|
||||||
- web_search_engine
|
- web_search_engine
|
||||||
- origin
|
- origin
|
||||||
- usage
|
- usage
|
||||||
@@ -8264,6 +8271,7 @@ components:
|
|||||||
- $ref: '#/components/schemas/DatetimeServerTool'
|
- $ref: '#/components/schemas/DatetimeServerTool'
|
||||||
- $ref: '#/components/schemas/ImageGenerationServerTool_OpenRouter'
|
- $ref: '#/components/schemas/ImageGenerationServerTool_OpenRouter'
|
||||||
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
|
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
|
||||||
|
- $ref: '#/components/schemas/WebFetchServerTool'
|
||||||
- $ref: '#/components/schemas/OpenRouterWebSearchServerTool'
|
- $ref: '#/components/schemas/OpenRouterWebSearchServerTool'
|
||||||
type: array
|
type: array
|
||||||
top_k:
|
top_k:
|
||||||
@@ -12230,6 +12238,7 @@ components:
|
|||||||
- $ref: '#/components/schemas/DatetimeServerTool'
|
- $ref: '#/components/schemas/DatetimeServerTool'
|
||||||
- $ref: '#/components/schemas/ImageGenerationServerTool_OpenRouter'
|
- $ref: '#/components/schemas/ImageGenerationServerTool_OpenRouter'
|
||||||
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
|
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
|
||||||
|
- $ref: '#/components/schemas/WebFetchServerTool'
|
||||||
- $ref: '#/components/schemas/WebSearchServerTool_OpenRouter'
|
- $ref: '#/components/schemas/WebSearchServerTool_OpenRouter'
|
||||||
type: array
|
type: array
|
||||||
top_k:
|
top_k:
|
||||||
@@ -12273,8 +12282,8 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
SearchQualityLevel:
|
SearchQualityLevel:
|
||||||
description: >-
|
description: >-
|
||||||
How much context to retrieve per result. Defaults to medium (15000 chars). Only applies when using the Exa
|
How much context to retrieve per result. Defaults to medium (15000 chars). Applies to Exa and Parallel engines;
|
||||||
engine; ignored with native provider search.
|
ignored with native provider search and Firecrawl.
|
||||||
enum:
|
enum:
|
||||||
- low
|
- low
|
||||||
- medium
|
- medium
|
||||||
@@ -14350,6 +14359,62 @@ components:
|
|||||||
required:
|
required:
|
||||||
- data
|
- data
|
||||||
type: object
|
type: object
|
||||||
|
WebFetchEngineEnum:
|
||||||
|
description: >-
|
||||||
|
Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native"
|
||||||
|
forces the provider's built-in fetch. "exa" uses Exa Contents API (supports BYOK). "openrouter" uses direct HTTP
|
||||||
|
fetch. "firecrawl" uses Firecrawl scrape (requires BYOK).
|
||||||
|
enum:
|
||||||
|
- auto
|
||||||
|
- native
|
||||||
|
- openrouter
|
||||||
|
- firecrawl
|
||||||
|
- exa
|
||||||
|
example: auto
|
||||||
|
type: string
|
||||||
|
WebFetchServerTool:
|
||||||
|
description: 'OpenRouter built-in server tool: fetches full content from a URL (web page or PDF)'
|
||||||
|
example:
|
||||||
|
parameters:
|
||||||
|
max_uses: 10
|
||||||
|
type: openrouter:web_fetch
|
||||||
|
properties:
|
||||||
|
parameters:
|
||||||
|
$ref: '#/components/schemas/WebFetchServerToolConfig'
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- openrouter:web_fetch
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
WebFetchServerToolConfig:
|
||||||
|
description: Configuration for the openrouter:web_fetch server tool
|
||||||
|
example:
|
||||||
|
max_content_tokens: 100000
|
||||||
|
max_uses: 10
|
||||||
|
properties:
|
||||||
|
allowed_domains:
|
||||||
|
description: Only fetch from these domains.
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
blocked_domains:
|
||||||
|
description: Never fetch from these domains.
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
engine:
|
||||||
|
$ref: '#/components/schemas/WebFetchEngineEnum'
|
||||||
|
max_content_tokens:
|
||||||
|
description: Maximum content length in approximate tokens. Content exceeding this limit is truncated.
|
||||||
|
example: 100000
|
||||||
|
type: integer
|
||||||
|
max_uses:
|
||||||
|
description: Maximum number of web fetches per request. Once exceeded, the tool returns an error.
|
||||||
|
example: 10
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
WebSearchCallCompletedEvent:
|
WebSearchCallCompletedEvent:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/OpenAIResponsesSearchCompleted'
|
- $ref: '#/components/schemas/OpenAIResponsesSearchCompleted'
|
||||||
|
|||||||
Reference in New Issue
Block a user