Compare commits

..
Author SHA1 Message Date
OpenRouter SDK Bot e706911949 chore: update OpenAPI spec [sdk-bot] 2026-04-12 02:08:30 +00:00
+6 -83
View File
@@ -3495,7 +3495,6 @@ components:
- function
type: object
- $ref: '#/components/schemas/DatetimeServerTool'
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
- $ref: '#/components/schemas/OpenRouterWebSearchServerTool'
- $ref: '#/components/schemas/ChatWebSearchShorthand'
description: Tool definition for function calling (regular function or OpenRouter built-in server tool)
@@ -3937,22 +3936,6 @@ components:
- object
- system_fingerprint
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:
description: Streaming completion choice chunk
example:
@@ -4835,7 +4818,6 @@ components:
- deepseek
description: A guardrail for limiting API usage
enforce_zdr: false
ignored_models: null
ignored_providers: null
limit_usd: 50
name: My New Guardrail
@@ -4874,15 +4856,6 @@ components:
example: false
nullable: true
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:
description: List of provider IDs to exclude from routing
example:
@@ -4920,7 +4893,6 @@ components:
description: A guardrail for limiting API usage
enforce_zdr: false
id: 550e8400-e29b-41d4-a716-446655440000
ignored_models: null
ignored_providers: null
limit_usd: 50
name: My New Guardrail
@@ -5585,7 +5557,6 @@ components:
description: Guardrail for production environment
enforce_zdr: false
id: 550e8400-e29b-41d4-a716-446655440000
ignored_models: null
ignored_providers: null
limit_usd: 100
name: Production Guardrail
@@ -5648,7 +5619,6 @@ components:
description: Guardrail for production environment
enforce_zdr: false
id: 550e8400-e29b-41d4-a716-446655440000
ignored_models: null
ignored_providers: null
limit_usd: 100
name: Production Guardrail
@@ -5694,14 +5664,6 @@ components:
example: 550e8400-e29b-41d4-a716-446655440000
format: uuid
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:
description: List of provider IDs to exclude from routing
example:
@@ -6464,7 +6426,6 @@ components:
description: Guardrail for production environment
enforce_zdr: false
id: 550e8400-e29b-41d4-a716-446655440000
ignored_models: null
ignored_providers: null
limit_usd: 100
name: Production Guardrail
@@ -7548,7 +7509,6 @@ components:
- name
type: object
- $ref: '#/components/schemas/DatetimeServerTool'
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
- $ref: '#/components/schemas/OpenRouterWebSearchServerTool'
type: array
top_k:
@@ -7726,7 +7686,6 @@ components:
- Crusoe
- DeepInfra
- DeepSeek
- DekaLLM
- Featherless
- Fireworks
- Friendli
@@ -7761,7 +7720,6 @@ components:
- Parasail
- Perplexity
- Phala
- Recraft
- Reka
- Relace
- SambaNova
@@ -10109,7 +10067,6 @@ components:
- Crusoe
- DeepInfra
- DeepSeek
- DekaLLM
- Featherless
- Fireworks
- Friendli
@@ -10144,7 +10101,6 @@ components:
- Parasail
- Perplexity
- Phala
- Recraft
- Reka
- Relace
- SambaNova
@@ -10422,7 +10378,6 @@ components:
- Crusoe
- DeepInfra
- DeepSeek
- DekaLLM
- Featherless
- Fireworks
- Friendli
@@ -10457,7 +10412,6 @@ components:
- Parasail
- Perplexity
- Phala
- Recraft
- Reka
- Relace
- SambaNova
@@ -11417,7 +11371,6 @@ components:
- $ref: '#/components/schemas/ApplyPatchServerTool'
- $ref: '#/components/schemas/CustomTool'
- $ref: '#/components/schemas/DatetimeServerTool'
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
- $ref: '#/components/schemas/WebSearchServerTool_OpenRouter'
type: array
top_k:
@@ -11447,16 +11400,6 @@ components:
- high
example: medium
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:
description: >-
How much context to retrieve per result. Defaults to medium (15000 chars). Only applies when using the Exa
@@ -12083,15 +12026,6 @@ components:
example: true
nullable: true
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:
description: List of provider IDs to exclude from routing
example:
@@ -12125,7 +12059,6 @@ components:
description: Updated description
enforce_zdr: true
id: 550e8400-e29b-41d4-a716-446655440000
ignored_models: null
ignored_providers: null
limit_usd: 75
name: Updated Guardrail Name
@@ -12231,7 +12164,8 @@ components:
duration:
description: Duration of the generated video in seconds
example: 8
minimum: 1
exclusiveMinimum: true
minimum: 0
type: integer
frame_images:
description: >-
@@ -12383,10 +12317,6 @@ components:
additionalProperties:
nullable: true
type: object
dekallm:
additionalProperties:
nullable: true
type: object
enfer:
additionalProperties:
nullable: true
@@ -12587,10 +12517,6 @@ components:
additionalProperties:
nullable: true
type: object
recraft:
additionalProperties:
nullable: true
type: object
recursal:
additionalProperties:
nullable: true
@@ -13961,7 +13887,8 @@ paths:
dimensions:
description: The number of dimensions for the output embeddings
example: 1536
minimum: 1
exclusiveMinimum: 0
minimum: 0
type: integer
encoding_format:
description: The format of the output embeddings
@@ -14830,7 +14757,6 @@ paths:
description: Guardrail for production environment
enforce_zdr: false
id: 550e8400-e29b-41d4-a716-446655440000
ignored_models: null
ignored_providers: null
limit_usd: 100
name: Production Guardrail
@@ -14891,7 +14817,6 @@ paths:
- deepseek
description: A guardrail for limiting API usage
enforce_zdr: false
ignored_models: null
ignored_providers: null
limit_usd: 50
name: My New Guardrail
@@ -14914,7 +14839,6 @@ paths:
description: A guardrail for limiting API usage
enforce_zdr: false
id: 550e8400-e29b-41d4-a716-446655440000
ignored_models: null
ignored_providers: null
limit_usd: 50
name: My New Guardrail
@@ -15042,7 +14966,6 @@ paths:
description: Guardrail for production environment
enforce_zdr: false
id: 550e8400-e29b-41d4-a716-446655440000
ignored_models: null
ignored_providers: null
limit_usd: 100
name: Production Guardrail
@@ -15122,7 +15045,6 @@ paths:
description: Updated description
enforce_zdr: true
id: 550e8400-e29b-41d4-a716-446655440000
ignored_models: null
ignored_providers: null
limit_usd: 75
name: Updated Guardrail Name
@@ -18608,7 +18530,8 @@ paths:
top_n:
description: Number of most relevant documents to return
example: 3
minimum: 1
exclusiveMinimum: 0
minimum: 0
type: integer
required:
- model