mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-09 12:10:22 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca9c5fc2b6 | ||
|
|
e8953c70bd | ||
|
|
29fdfcedc3 | ||
|
|
c0959955c1 |
@@ -3495,6 +3495,7 @@ components:
|
|||||||
- function
|
- function
|
||||||
type: object
|
type: object
|
||||||
- $ref: '#/components/schemas/DatetimeServerTool'
|
- $ref: '#/components/schemas/DatetimeServerTool'
|
||||||
|
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
|
||||||
- $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)
|
||||||
@@ -3936,6 +3937,22 @@ components:
|
|||||||
- object
|
- object
|
||||||
- system_fingerprint
|
- system_fingerprint
|
||||||
type: object
|
type: object
|
||||||
|
ChatSearchModelsServerTool:
|
||||||
|
description: 'OpenRouter built-in server tool: searches and filters AI models available on OpenRouter'
|
||||||
|
example:
|
||||||
|
parameters:
|
||||||
|
max_results: 5
|
||||||
|
type: openrouter:experimental__search_models
|
||||||
|
properties:
|
||||||
|
parameters:
|
||||||
|
$ref: '#/components/schemas/SearchModelsServerToolConfig'
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- openrouter:experimental__search_models
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
ChatStreamChoice:
|
ChatStreamChoice:
|
||||||
description: Streaming completion choice chunk
|
description: Streaming completion choice chunk
|
||||||
example:
|
example:
|
||||||
@@ -4818,6 +4835,7 @@ components:
|
|||||||
- deepseek
|
- deepseek
|
||||||
description: A guardrail for limiting API usage
|
description: A guardrail for limiting API usage
|
||||||
enforce_zdr: false
|
enforce_zdr: false
|
||||||
|
ignored_models: null
|
||||||
ignored_providers: null
|
ignored_providers: null
|
||||||
limit_usd: 50
|
limit_usd: 50
|
||||||
name: My New Guardrail
|
name: My New Guardrail
|
||||||
@@ -4856,6 +4874,15 @@ components:
|
|||||||
example: false
|
example: false
|
||||||
nullable: true
|
nullable: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
ignored_models:
|
||||||
|
description: Array of model identifiers to exclude from routing (slug or canonical_slug accepted)
|
||||||
|
example:
|
||||||
|
- openai/gpt-4o-mini
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
minItems: 1
|
||||||
|
nullable: true
|
||||||
|
type: array
|
||||||
ignored_providers:
|
ignored_providers:
|
||||||
description: List of provider IDs to exclude from routing
|
description: List of provider IDs to exclude from routing
|
||||||
example:
|
example:
|
||||||
@@ -4893,6 +4920,7 @@ components:
|
|||||||
description: A guardrail for limiting API usage
|
description: A guardrail for limiting API usage
|
||||||
enforce_zdr: false
|
enforce_zdr: false
|
||||||
id: 550e8400-e29b-41d4-a716-446655440000
|
id: 550e8400-e29b-41d4-a716-446655440000
|
||||||
|
ignored_models: null
|
||||||
ignored_providers: null
|
ignored_providers: null
|
||||||
limit_usd: 50
|
limit_usd: 50
|
||||||
name: My New Guardrail
|
name: My New Guardrail
|
||||||
@@ -5557,6 +5585,7 @@ components:
|
|||||||
description: Guardrail for production environment
|
description: Guardrail for production environment
|
||||||
enforce_zdr: false
|
enforce_zdr: false
|
||||||
id: 550e8400-e29b-41d4-a716-446655440000
|
id: 550e8400-e29b-41d4-a716-446655440000
|
||||||
|
ignored_models: null
|
||||||
ignored_providers: null
|
ignored_providers: null
|
||||||
limit_usd: 100
|
limit_usd: 100
|
||||||
name: Production Guardrail
|
name: Production Guardrail
|
||||||
@@ -5619,6 +5648,7 @@ components:
|
|||||||
description: Guardrail for production environment
|
description: Guardrail for production environment
|
||||||
enforce_zdr: false
|
enforce_zdr: false
|
||||||
id: 550e8400-e29b-41d4-a716-446655440000
|
id: 550e8400-e29b-41d4-a716-446655440000
|
||||||
|
ignored_models: null
|
||||||
ignored_providers: null
|
ignored_providers: null
|
||||||
limit_usd: 100
|
limit_usd: 100
|
||||||
name: Production Guardrail
|
name: Production Guardrail
|
||||||
@@ -5664,6 +5694,14 @@ components:
|
|||||||
example: 550e8400-e29b-41d4-a716-446655440000
|
example: 550e8400-e29b-41d4-a716-446655440000
|
||||||
format: uuid
|
format: uuid
|
||||||
type: string
|
type: string
|
||||||
|
ignored_models:
|
||||||
|
description: Array of model canonical_slugs to exclude from routing
|
||||||
|
example:
|
||||||
|
- openai/gpt-4o-mini-2024-07-18
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
type: array
|
||||||
ignored_providers:
|
ignored_providers:
|
||||||
description: List of provider IDs to exclude from routing
|
description: List of provider IDs to exclude from routing
|
||||||
example:
|
example:
|
||||||
@@ -6426,6 +6464,7 @@ components:
|
|||||||
description: Guardrail for production environment
|
description: Guardrail for production environment
|
||||||
enforce_zdr: false
|
enforce_zdr: false
|
||||||
id: 550e8400-e29b-41d4-a716-446655440000
|
id: 550e8400-e29b-41d4-a716-446655440000
|
||||||
|
ignored_models: null
|
||||||
ignored_providers: null
|
ignored_providers: null
|
||||||
limit_usd: 100
|
limit_usd: 100
|
||||||
name: Production Guardrail
|
name: Production Guardrail
|
||||||
@@ -7509,6 +7548,7 @@ components:
|
|||||||
- name
|
- name
|
||||||
type: object
|
type: object
|
||||||
- $ref: '#/components/schemas/DatetimeServerTool'
|
- $ref: '#/components/schemas/DatetimeServerTool'
|
||||||
|
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
|
||||||
- $ref: '#/components/schemas/OpenRouterWebSearchServerTool'
|
- $ref: '#/components/schemas/OpenRouterWebSearchServerTool'
|
||||||
type: array
|
type: array
|
||||||
top_k:
|
top_k:
|
||||||
@@ -7686,6 +7726,7 @@ components:
|
|||||||
- Crusoe
|
- Crusoe
|
||||||
- DeepInfra
|
- DeepInfra
|
||||||
- DeepSeek
|
- DeepSeek
|
||||||
|
- DekaLLM
|
||||||
- Featherless
|
- Featherless
|
||||||
- Fireworks
|
- Fireworks
|
||||||
- Friendli
|
- Friendli
|
||||||
@@ -7720,6 +7761,7 @@ components:
|
|||||||
- Parasail
|
- Parasail
|
||||||
- Perplexity
|
- Perplexity
|
||||||
- Phala
|
- Phala
|
||||||
|
- Recraft
|
||||||
- Reka
|
- Reka
|
||||||
- Relace
|
- Relace
|
||||||
- SambaNova
|
- SambaNova
|
||||||
@@ -10067,6 +10109,7 @@ components:
|
|||||||
- Crusoe
|
- Crusoe
|
||||||
- DeepInfra
|
- DeepInfra
|
||||||
- DeepSeek
|
- DeepSeek
|
||||||
|
- DekaLLM
|
||||||
- Featherless
|
- Featherless
|
||||||
- Fireworks
|
- Fireworks
|
||||||
- Friendli
|
- Friendli
|
||||||
@@ -10101,6 +10144,7 @@ components:
|
|||||||
- Parasail
|
- Parasail
|
||||||
- Perplexity
|
- Perplexity
|
||||||
- Phala
|
- Phala
|
||||||
|
- Recraft
|
||||||
- Reka
|
- Reka
|
||||||
- Relace
|
- Relace
|
||||||
- SambaNova
|
- SambaNova
|
||||||
@@ -10378,6 +10422,7 @@ components:
|
|||||||
- Crusoe
|
- Crusoe
|
||||||
- DeepInfra
|
- DeepInfra
|
||||||
- DeepSeek
|
- DeepSeek
|
||||||
|
- DekaLLM
|
||||||
- Featherless
|
- Featherless
|
||||||
- Fireworks
|
- Fireworks
|
||||||
- Friendli
|
- Friendli
|
||||||
@@ -10412,6 +10457,7 @@ components:
|
|||||||
- Parasail
|
- Parasail
|
||||||
- Perplexity
|
- Perplexity
|
||||||
- Phala
|
- Phala
|
||||||
|
- Recraft
|
||||||
- Reka
|
- Reka
|
||||||
- Relace
|
- Relace
|
||||||
- SambaNova
|
- SambaNova
|
||||||
@@ -11371,6 +11417,7 @@ components:
|
|||||||
- $ref: '#/components/schemas/ApplyPatchServerTool'
|
- $ref: '#/components/schemas/ApplyPatchServerTool'
|
||||||
- $ref: '#/components/schemas/CustomTool'
|
- $ref: '#/components/schemas/CustomTool'
|
||||||
- $ref: '#/components/schemas/DatetimeServerTool'
|
- $ref: '#/components/schemas/DatetimeServerTool'
|
||||||
|
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
|
||||||
- $ref: '#/components/schemas/WebSearchServerTool_OpenRouter'
|
- $ref: '#/components/schemas/WebSearchServerTool_OpenRouter'
|
||||||
type: array
|
type: array
|
||||||
top_k:
|
top_k:
|
||||||
@@ -11400,6 +11447,16 @@ components:
|
|||||||
- high
|
- high
|
||||||
example: medium
|
example: medium
|
||||||
type: string
|
type: string
|
||||||
|
SearchModelsServerToolConfig:
|
||||||
|
description: Configuration for the openrouter:experimental__search_models server tool
|
||||||
|
example:
|
||||||
|
max_results: 5
|
||||||
|
properties:
|
||||||
|
max_results:
|
||||||
|
description: Maximum number of models to return. Defaults to 5, max 20.
|
||||||
|
example: 5
|
||||||
|
type: integer
|
||||||
|
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). Only applies when using the Exa
|
||||||
@@ -12026,6 +12083,15 @@ components:
|
|||||||
example: true
|
example: true
|
||||||
nullable: true
|
nullable: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
ignored_models:
|
||||||
|
description: Array of model identifiers to exclude from routing (slug or canonical_slug accepted)
|
||||||
|
example:
|
||||||
|
- openai/gpt-4o-mini
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
minItems: 1
|
||||||
|
nullable: true
|
||||||
|
type: array
|
||||||
ignored_providers:
|
ignored_providers:
|
||||||
description: List of provider IDs to exclude from routing
|
description: List of provider IDs to exclude from routing
|
||||||
example:
|
example:
|
||||||
@@ -12059,6 +12125,7 @@ components:
|
|||||||
description: Updated description
|
description: Updated description
|
||||||
enforce_zdr: true
|
enforce_zdr: true
|
||||||
id: 550e8400-e29b-41d4-a716-446655440000
|
id: 550e8400-e29b-41d4-a716-446655440000
|
||||||
|
ignored_models: null
|
||||||
ignored_providers: null
|
ignored_providers: null
|
||||||
limit_usd: 75
|
limit_usd: 75
|
||||||
name: Updated Guardrail Name
|
name: Updated Guardrail Name
|
||||||
@@ -12164,8 +12231,7 @@ components:
|
|||||||
duration:
|
duration:
|
||||||
description: Duration of the generated video in seconds
|
description: Duration of the generated video in seconds
|
||||||
example: 8
|
example: 8
|
||||||
exclusiveMinimum: true
|
minimum: 1
|
||||||
minimum: 0
|
|
||||||
type: integer
|
type: integer
|
||||||
frame_images:
|
frame_images:
|
||||||
description: >-
|
description: >-
|
||||||
@@ -12317,6 +12383,10 @@ components:
|
|||||||
additionalProperties:
|
additionalProperties:
|
||||||
nullable: true
|
nullable: true
|
||||||
type: object
|
type: object
|
||||||
|
dekallm:
|
||||||
|
additionalProperties:
|
||||||
|
nullable: true
|
||||||
|
type: object
|
||||||
enfer:
|
enfer:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
nullable: true
|
nullable: true
|
||||||
@@ -12517,6 +12587,10 @@ components:
|
|||||||
additionalProperties:
|
additionalProperties:
|
||||||
nullable: true
|
nullable: true
|
||||||
type: object
|
type: object
|
||||||
|
recraft:
|
||||||
|
additionalProperties:
|
||||||
|
nullable: true
|
||||||
|
type: object
|
||||||
recursal:
|
recursal:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
nullable: true
|
nullable: true
|
||||||
@@ -13887,8 +13961,7 @@ paths:
|
|||||||
dimensions:
|
dimensions:
|
||||||
description: The number of dimensions for the output embeddings
|
description: The number of dimensions for the output embeddings
|
||||||
example: 1536
|
example: 1536
|
||||||
exclusiveMinimum: 0
|
minimum: 1
|
||||||
minimum: 0
|
|
||||||
type: integer
|
type: integer
|
||||||
encoding_format:
|
encoding_format:
|
||||||
description: The format of the output embeddings
|
description: The format of the output embeddings
|
||||||
@@ -14757,6 +14830,7 @@ paths:
|
|||||||
description: Guardrail for production environment
|
description: Guardrail for production environment
|
||||||
enforce_zdr: false
|
enforce_zdr: false
|
||||||
id: 550e8400-e29b-41d4-a716-446655440000
|
id: 550e8400-e29b-41d4-a716-446655440000
|
||||||
|
ignored_models: null
|
||||||
ignored_providers: null
|
ignored_providers: null
|
||||||
limit_usd: 100
|
limit_usd: 100
|
||||||
name: Production Guardrail
|
name: Production Guardrail
|
||||||
@@ -14817,6 +14891,7 @@ paths:
|
|||||||
- deepseek
|
- deepseek
|
||||||
description: A guardrail for limiting API usage
|
description: A guardrail for limiting API usage
|
||||||
enforce_zdr: false
|
enforce_zdr: false
|
||||||
|
ignored_models: null
|
||||||
ignored_providers: null
|
ignored_providers: null
|
||||||
limit_usd: 50
|
limit_usd: 50
|
||||||
name: My New Guardrail
|
name: My New Guardrail
|
||||||
@@ -14839,6 +14914,7 @@ paths:
|
|||||||
description: A guardrail for limiting API usage
|
description: A guardrail for limiting API usage
|
||||||
enforce_zdr: false
|
enforce_zdr: false
|
||||||
id: 550e8400-e29b-41d4-a716-446655440000
|
id: 550e8400-e29b-41d4-a716-446655440000
|
||||||
|
ignored_models: null
|
||||||
ignored_providers: null
|
ignored_providers: null
|
||||||
limit_usd: 50
|
limit_usd: 50
|
||||||
name: My New Guardrail
|
name: My New Guardrail
|
||||||
@@ -14966,6 +15042,7 @@ paths:
|
|||||||
description: Guardrail for production environment
|
description: Guardrail for production environment
|
||||||
enforce_zdr: false
|
enforce_zdr: false
|
||||||
id: 550e8400-e29b-41d4-a716-446655440000
|
id: 550e8400-e29b-41d4-a716-446655440000
|
||||||
|
ignored_models: null
|
||||||
ignored_providers: null
|
ignored_providers: null
|
||||||
limit_usd: 100
|
limit_usd: 100
|
||||||
name: Production Guardrail
|
name: Production Guardrail
|
||||||
@@ -15045,6 +15122,7 @@ paths:
|
|||||||
description: Updated description
|
description: Updated description
|
||||||
enforce_zdr: true
|
enforce_zdr: true
|
||||||
id: 550e8400-e29b-41d4-a716-446655440000
|
id: 550e8400-e29b-41d4-a716-446655440000
|
||||||
|
ignored_models: null
|
||||||
ignored_providers: null
|
ignored_providers: null
|
||||||
limit_usd: 75
|
limit_usd: 75
|
||||||
name: Updated Guardrail Name
|
name: Updated Guardrail Name
|
||||||
@@ -18530,8 +18608,7 @@ paths:
|
|||||||
top_n:
|
top_n:
|
||||||
description: Number of most relevant documents to return
|
description: Number of most relevant documents to return
|
||||||
example: 3
|
example: 3
|
||||||
exclusiveMinimum: 0
|
minimum: 1
|
||||||
minimum: 0
|
|
||||||
type: integer
|
type: integer
|
||||||
required:
|
required:
|
||||||
- model
|
- model
|
||||||
|
|||||||
Reference in New Issue
Block a user