diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 00b78cd..397b1ea 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -3495,6 +3495,7 @@ 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) @@ -3936,6 +3937,22 @@ 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: @@ -7531,6 +7548,7 @@ components: - name type: object - $ref: '#/components/schemas/DatetimeServerTool' + - $ref: '#/components/schemas/ChatSearchModelsServerTool' - $ref: '#/components/schemas/OpenRouterWebSearchServerTool' type: array top_k: @@ -11399,6 +11417,7 @@ 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: @@ -11428,6 +11447,16 @@ 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