You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4e0fe9b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .speakeasy/out.openapi.yaml
+7-72Lines changed: 7 additions & 72 deletions
Original file line number
Diff line number
Diff line change
@@ -10550,14 +10550,18 @@ components:
10550
10550
- 'data'
10551
10551
type: 'object'
10552
10552
CreatePrivateProviderRequest:
10553
+
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.'
10554
+
example:
10555
+
base_url: 'https://inference.example.com/v1'
10556
+
display_name: 'Acme'
10557
+
name: 'Acme'
10558
+
slug: 'acme'
10553
10559
properties:
10554
10560
base_url:
10555
10561
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.'
description: 'Your declared data policy, or `null` when none was declared.'
27577
-
properties:
27578
-
prompt_retention_days:
27579
-
description: 'Days prompts are retained. Must be `null` unless `retains_prompts` is true.'
27580
-
maximum: 3650
27581
-
minimum: 1
27582
-
type:
27583
-
- 'integer'
27584
-
- 'null'
27585
-
retains_prompts:
27586
-
description: 'Whether the provider retains prompts or completions.'
27587
-
type: 'boolean'
27588
-
training:
27589
-
description: 'Whether the provider trains on prompts.'
27590
-
type: 'boolean'
27591
-
required:
27592
-
- 'training'
27593
-
- 'retains_prompts'
27594
-
- 'prompt_retention_days'
27595
-
type:
27596
-
- 'object'
27597
-
- 'null'
27598
27575
display_name:
27599
27576
description: 'Human-readable provider name shown in the UI.'
27600
27577
example: 'Acme'
@@ -27612,34 +27589,8 @@ components:
27612
27589
- 'slug'
27613
27590
- 'display_name'
27614
27591
- 'base_url'
27615
-
- 'data_policy'
27616
27592
- 'created_at'
27617
27593
type: 'object'
27618
-
PrivateProviderDataPolicy:
27619
-
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.'
27620
-
example:
27621
-
prompt_retention_days: null
27622
-
retains_prompts: false
27623
-
training: false
27624
-
properties:
27625
-
prompt_retention_days:
27626
-
description: 'Days prompts are retained. Must be `null` unless `retains_prompts` is true.'
27627
-
maximum: 3650
27628
-
minimum: 1
27629
-
type:
27630
-
- 'integer'
27631
-
- 'null'
27632
-
retains_prompts:
27633
-
description: 'Whether the provider retains prompts or completions.'
27634
-
type: 'boolean'
27635
-
training:
27636
-
description: 'Whether the provider trains on prompts.'
27637
-
type: 'boolean'
27638
-
required:
27639
-
- 'training'
27640
-
- 'retains_prompts'
27641
-
- 'prompt_retention_days'
27642
-
type: 'object'
27643
27594
PromptCacheBreakpoint:
27644
27595
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.'
27645
27596
example:
@@ -34185,22 +34136,6 @@ components:
34185
34136
example: 'https://inference.example.com/v1'
34186
34137
minLength: 1
34187
34138
type: 'string'
34188
-
data_policy:
34189
-
properties:
34190
-
prompt_retention_days:
34191
-
description: 'Days prompts are retained. Must be `null` unless `retains_prompts` is true.'
34192
-
maximum: 3650
34193
-
minimum: 1
34194
-
type:
34195
-
- 'integer'
34196
-
- 'null'
34197
-
retains_prompts:
34198
-
description: 'Whether the provider retains prompts or completions.'
34199
-
type: 'boolean'
34200
-
training:
34201
-
description: 'Whether the provider trains on prompts.'
34202
-
type: 'boolean'
34203
-
type: 'object'
34204
34139
display_name:
34205
34140
example: 'Acme'
34206
34141
maxLength: 80
@@ -50853,7 +50788,7 @@ paths:
50853
50788
- 'Private Providers'
50854
50789
x-speakeasy-name-override: 'get'
50855
50790
patch:
50856
-
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.'
50791
+
description: 'Update a private providerās display name or base URL. The name and slug cannot change, and the datapolicy is fixed by OpenRouter, so a body with no editable field is rejected (400). [Management key](/docs/guides/overview/auth/management-api-keys) required.'
0 commit comments