Skip to content

Commit 7ee1590

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#1193)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 0b43d81 commit 7ee1590

1 file changed

Lines changed: 7 additions & 72 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 7 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -10455,14 +10455,18 @@ components:
1045510455
- 'data'
1045610456
type: 'object'
1045710457
CreatePrivateProviderRequest:
10458+
description: 'A private provider serves only your organization, so its endpoints are recorded as retaining no prompts, training on none and publishing none, and pass every data-policy filter your account or guardrails apply.'
10459+
example:
10460+
base_url: 'https://inference.example.com/v1'
10461+
display_name: 'Acme'
10462+
name: 'Acme'
10463+
slug: 'acme'
1045810464
properties:
1045910465
base_url:
1046010466
description: 'HTTPS base URL of an OpenAI-compatible API, used by private endpoints under this provider that set no URL of their own. Without it, each endpoint must set its own. Private, internal, metadata and OpenRouter hosts are rejected.'
1046110467
example: 'https://inference.example.com/v1'
1046210468
minLength: 1
1046310469
type: 'string'
10464-
data_policy:
10465-
$ref: '#/components/schemas/PrivateProviderDataPolicy'
1046610470
display_name:
1046710471
description: 'Defaults to `name`.'
1046810472
example: 'Acme'
@@ -27353,10 +27357,6 @@ components:
2735327357
example:
2735427358
base_url: 'https://inference.example.com/v1'
2735527359
created_at: '2026-10-06T12:00:00.000Z'
27356-
data_policy:
27357-
prompt_retention_days: null
27358-
retains_prompts: false
27359-
training: false
2736027360
display_name: 'Acme'
2736127361
name: 'Acme'
2736227362
slug: 'acme'
@@ -27370,29 +27370,6 @@ components:
2737027370
- 'null'
2737127371
created_at:
2737227372
type: 'string'
27373-
data_policy:
27374-
description: 'Your declared data policy, or `null` when none was declared.'
27375-
properties:
27376-
prompt_retention_days:
27377-
description: 'Days prompts are retained. Must be `null` unless `retains_prompts` is true.'
27378-
maximum: 3650
27379-
minimum: 1
27380-
type:
27381-
- 'integer'
27382-
- 'null'
27383-
retains_prompts:
27384-
description: 'Whether the provider retains prompts or completions.'
27385-
type: 'boolean'
27386-
training:
27387-
description: 'Whether the provider trains on prompts.'
27388-
type: 'boolean'
27389-
required:
27390-
- 'training'
27391-
- 'retains_prompts'
27392-
- 'prompt_retention_days'
27393-
type:
27394-
- 'object'
27395-
- 'null'
2739627373
display_name:
2739727374
description: 'Human-readable provider name shown in the UI.'
2739827375
example: 'Acme'
@@ -27410,34 +27387,8 @@ components:
2741027387
- 'slug'
2741127388
- 'display_name'
2741227389
- 'base_url'
27413-
- 'data_policy'
2741427390
- 'created_at'
2741527391
type: 'object'
27416-
PrivateProviderDataPolicy:
27417-
description: 'Defaults to training on and retaining prompts, the most conservative declaration. Your own declaration; it applies to your own traffic and OpenRouter does not verify it.'
27418-
example:
27419-
prompt_retention_days: null
27420-
retains_prompts: false
27421-
training: false
27422-
properties:
27423-
prompt_retention_days:
27424-
description: 'Days prompts are retained. Must be `null` unless `retains_prompts` is true.'
27425-
maximum: 3650
27426-
minimum: 1
27427-
type:
27428-
- 'integer'
27429-
- 'null'
27430-
retains_prompts:
27431-
description: 'Whether the provider retains prompts or completions.'
27432-
type: 'boolean'
27433-
training:
27434-
description: 'Whether the provider trains on prompts.'
27435-
type: 'boolean'
27436-
required:
27437-
- 'training'
27438-
- 'retains_prompts'
27439-
- 'prompt_retention_days'
27440-
type: 'object'
2744127392
PromptCacheBreakpoint:
2744227393
description: 'Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. `ttl` ("30m" or "12h") overrides the request-level `prompt_cache_options.ttl` for this boundary; 12h writes bill at the higher cache-write rate.'
2744327394
example:
@@ -33916,22 +33867,6 @@ components:
3391633867
example: 'https://inference.example.com/v1'
3391733868
minLength: 1
3391833869
type: 'string'
33919-
data_policy:
33920-
properties:
33921-
prompt_retention_days:
33922-
description: 'Days prompts are retained. Must be `null` unless `retains_prompts` is true.'
33923-
maximum: 3650
33924-
minimum: 1
33925-
type:
33926-
- 'integer'
33927-
- 'null'
33928-
retains_prompts:
33929-
description: 'Whether the provider retains prompts or completions.'
33930-
type: 'boolean'
33931-
training:
33932-
description: 'Whether the provider trains on prompts.'
33933-
type: 'boolean'
33934-
type: 'object'
3393533870
display_name:
3393633871
example: 'Acme'
3393733872
maxLength: 80
@@ -50212,7 +50147,7 @@ paths:
5021250147
- 'Private Providers'
5021350148
x-speakeasy-name-override: 'get'
5021450149
patch:
50215-
description: 'Update a private provider’s details or declared data policy. The name and slug cannot change. Refuses (409) a data-policy change while OpenRouter pins the declared policy on one of its endpoints. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
50150+
description: 'Update a private provider’s display name or base URL. The name and slug cannot change, and the data policy is fixed by OpenRouter, so a body with no editable field is rejected (400). [Management key](/docs/guides/overview/auth/management-api-keys) required.'
5021650151
operationId: 'updatePrivateProvider'
5021750152
parameters:
5021850153
- in: 'path'

0 commit comments

Comments
 (0)