chore: update OpenAPI spec from monorepo (#330)

Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
robert-j-y
2026-06-17 12:53:02 -07:00
committed by GitHub
co-authored by OpenRouter SDK Bot
parent bf682bdb62
commit b0eda78d3f
+53 -1
View File
@@ -12202,6 +12202,15 @@ components:
image: '0' image: '0'
prompt: '0.00003' prompt: '0.00003'
request: '0' request: '0'
reasoning:
default_effort: medium
default_enabled: true
mandatory: false
supported_efforts:
- high
- medium
- low
- minimal
supported_parameters: supported_parameters:
- temperature - temperature
- top_p - top_p
@@ -12264,6 +12273,8 @@ components:
$ref: '#/components/schemas/PerRequestLimits' $ref: '#/components/schemas/PerRequestLimits'
pricing: pricing:
$ref: '#/components/schemas/PublicPricing' $ref: '#/components/schemas/PublicPricing'
reasoning:
$ref: '#/components/schemas/ModelReasoning'
supported_parameters: supported_parameters:
description: List of supported parameters for this model description: List of supported parameters for this model
items: items:
@@ -12426,6 +12437,47 @@ components:
description: Model to use for completion description: Model to use for completion
example: openai/gpt-4 example: openai/gpt-4
type: string type: string
ModelReasoning:
description: Reasoning effort configuration. Omitted for non-reasoning models and dynamic router models.
example:
default_effort: medium
default_enabled: true
mandatory: false
supported_efforts:
- high
- medium
- low
- minimal
properties:
default_effort:
allOf:
- $ref: '#/components/schemas/ReasoningEffort'
- description: >-
Default reasoning effort when the client enables reasoning without specifying effort. Maps to
`reasoning.effort` in chat requests. When `"none"`, prefer omitting effort unless the user explicitly
disables reasoning.
default_enabled:
description: Default reasoning enabled state when the client does not set `reasoning.enabled`.
type: boolean
mandatory:
description: When true, reasoning cannot be disabled and effort "none" is rejected.
type: boolean
supported_efforts:
description: >-
Allowed reasoning effort values for this model, in descending effort order (highest first). Null means no
allowlist — all gateway effort values are accepted.
items:
$ref: '#/components/schemas/ReasoningEffort'
nullable: true
type: array
supports_max_tokens:
description: >-
Present and `true` when the model accepts `reasoning.max_tokens` in requests (Anthropic-style) instead of or
in addition to `reasoning.effort`. Omitted otherwise.
type: boolean
required:
- mandatory
type: object
ModelResponse: ModelResponse:
description: Single model response description: Single model response
example: example:
@@ -28837,7 +28889,7 @@ paths:
id: openai/gpt-4 id: openai/gpt-4
knowledge_cutoff: null knowledge_cutoff: null
links: links:
details: /api/v1/models/openai/gpt-5.4/endpoints details: /api/v1/models/openai/gpt-4/endpoints
name: GPT-4 name: GPT-4
per_request_limits: null per_request_limits: null
pricing: pricing: