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 7ee1590
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .speakeasy/in.openapi.yaml
+7-72Lines changed: 7 additions & 72 deletions
Original file line number
Diff line number
Diff line change
@@ -10455,14 +10455,18 @@ components:
10455
10455
- 'data'
10456
10456
type: 'object'
10457
10457
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'
10458
10464
properties:
10459
10465
base_url:
10460
10466
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.'
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'
27396
27373
display_name:
27397
27374
description: 'Human-readable provider name shown in the UI.'
27398
27375
example: 'Acme'
@@ -27410,34 +27387,8 @@ components:
27410
27387
- 'slug'
27411
27388
- 'display_name'
27412
27389
- 'base_url'
27413
-
- 'data_policy'
27414
27390
- 'created_at'
27415
27391
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'
27441
27392
PromptCacheBreakpoint:
27442
27393
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.'
27443
27394
example:
@@ -33916,22 +33867,6 @@ components:
33916
33867
example: 'https://inference.example.com/v1'
33917
33868
minLength: 1
33918
33869
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'
33935
33870
display_name:
33936
33871
example: 'Acme'
33937
33872
maxLength: 80
@@ -50212,7 +50147,7 @@ paths:
50212
50147
- 'Private Providers'
50213
50148
x-speakeasy-name-override: 'get'
50214
50149
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 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