chore: update OpenAPI spec from monorepo (#221)

Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
robert-j-y
2026-05-05 08:47:57 -07:00
committed by GitHub
co-authored by OpenRouter SDK Bot
parent 2fc0ea8084
commit cd24443470
+49 -20
View File
@@ -4533,8 +4533,8 @@ components:
properties: properties:
allowed_domains: allowed_domains:
description: >- description: >-
Limit search results to these domains. Supported by Exa, Parallel, and most native providers (Anthropic, Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, and most native providers
OpenAI, xAI). Not supported with Firecrawl or Perplexity. (Anthropic, OpenAI, xAI). Not supported with Perplexity. Cannot be used with excluded_domains.
items: items:
type: string type: string
type: array type: array
@@ -4542,8 +4542,8 @@ components:
$ref: '#/components/schemas/WebSearchEngineEnum' $ref: '#/components/schemas/WebSearchEngineEnum'
excluded_domains: excluded_domains:
description: >- description: >-
Exclude search results from these domains. Supported by Exa, Parallel, Anthropic, and xAI. Not supported Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Anthropic, and xAI. Not
with Firecrawl, OpenAI (silently ignored), or Perplexity. supported with OpenAI (silently ignored) or Perplexity. Cannot be used with allowed_domains.
items: items:
type: string type: string
type: array type: array
@@ -14279,8 +14279,8 @@ components:
properties: properties:
allowed_domains: allowed_domains:
description: >- description: >-
Limit search results to these domains. Supported by Exa, Parallel, and most native providers (Anthropic, Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, and most native providers
OpenAI, xAI). Not supported with Firecrawl or Perplexity. (Anthropic, OpenAI, xAI). Not supported with Perplexity. Cannot be used with excluded_domains.
items: items:
type: string type: string
type: array type: array
@@ -14288,8 +14288,8 @@ components:
$ref: '#/components/schemas/WebSearchEngineEnum' $ref: '#/components/schemas/WebSearchEngineEnum'
excluded_domains: excluded_domains:
description: >- description: >-
Exclude search results from these domains. Supported by Exa, Parallel, Anthropic, and xAI. Not supported Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Anthropic, and xAI. Not
with Firecrawl, OpenAI (silently ignored), or Perplexity. supported with OpenAI (silently ignored) or Perplexity. Cannot be used with allowed_domains.
items: items:
type: string type: string
type: array type: array
@@ -14453,18 +14453,7 @@ components:
type: openrouter:web_search type: openrouter:web_search
properties: properties:
parameters: parameters:
properties: $ref: '#/components/schemas/WebSearchServerToolConfig'
max_results:
description: Maximum number of search results to return per search call. Defaults to 5.
example: 5
type: integer
max_total_results:
description: >-
Maximum total number of search results across all search calls in a single request. Once this limit is
reached, the tool will stop returning new results.
example: 20
type: integer
type: object
type: type:
enum: enum:
- openrouter:web_search - openrouter:web_search
@@ -14472,6 +14461,46 @@ components:
required: required:
- type - type
type: object type: object
WebSearchServerToolConfig:
description: Configuration for the openrouter:web_search server tool
example:
max_results: 5
search_context_size: medium
properties:
allowed_domains:
description: >-
Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, and most native providers
(Anthropic, OpenAI, xAI). Not supported with Perplexity. Cannot be used with excluded_domains.
items:
type: string
type: array
engine:
$ref: '#/components/schemas/WebSearchEngineEnum'
excluded_domains:
description: >-
Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Anthropic, and xAI. Not
supported with OpenAI (silently ignored) or Perplexity. Cannot be used with allowed_domains.
items:
type: string
type: array
max_results:
description: >-
Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, and
Parallel engines; ignored with native provider search.
example: 5
type: integer
max_total_results:
description: >-
Maximum total number of search results across all search calls in a single request. Once this limit is
reached, the tool will stop returning new results. Useful for controlling cost and context size in agentic
loops.
example: 20
type: integer
search_context_size:
$ref: '#/components/schemas/SearchQualityLevel'
user_location:
$ref: '#/components/schemas/WebSearchUserLocationServerTool'
type: object
WebSearchSource: WebSearchSource:
example: example:
type: url type: url