Compare commits

...
Author SHA1 Message Date
OpenRouter SDK Bot 0dc0894f76 chore: update OpenAPI spec [sdk-bot] 2026-04-14 02:35:25 +00:00
+29
View File
@@ -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:
@@ -7531,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:
@@ -11399,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:
@@ -11428,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