Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ partial void ProcessSendResponseContent(
/// Example: {"echo_upstream_body":true}
/// </param>
/// <param name="deferredTools">
/// Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation; keep the catalog unchanged.<br/>
/// Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation. The portable profile needs the catalog unchanged across a continuation; the universal profile accepts a changed catalog and, with `announce_catalog_changes`, tells the model about it.<br/>
/// Example: {"profile":"portable","protocol":"v1","search":{"max_results":5,"type":"bm25"},"validation":"runtime"}
/// </param>
/// <param name="frequencyPenalty">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ partial void ProcessSendAsStreamResponse(
/// Example: {"echo_upstream_body":true}
/// </param>
/// <param name="deferredTools">
/// Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation; keep the catalog unchanged.<br/>
/// Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation. The portable profile needs the catalog unchanged across a continuation; the universal profile accepts a changed catalog and, with `announce_catalog_changes`, tells the model about it.<br/>
/// Example: {"profile":"portable","protocol":"v1","search":{"max_results":5,"type":"bm25"},"validation":"runtime"}
/// </param>
/// <param name="frequencyPenalty">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public partial interface IChatClient
/// Example: {"echo_upstream_body":true}
/// </param>
/// <param name="deferredTools">
/// Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation; keep the catalog unchanged.<br/>
/// Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation. The portable profile needs the catalog unchanged across a continuation; the universal profile accepts a changed catalog and, with `announce_catalog_changes`, tells the model about it.<br/>
/// Example: {"profile":"portable","protocol":"v1","search":{"max_results":5,"type":"bm25"},"validation":"runtime"}
/// </param>
/// <param name="frequencyPenalty">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public partial interface IChatClient
/// Example: {"echo_upstream_body":true}
/// </param>
/// <param name="deferredTools">
/// Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation; keep the catalog unchanged.<br/>
/// Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation. The portable profile needs the catalog unchanged across a continuation; the universal profile accepts a changed catalog and, with `announce_catalog_changes`, tells the model about it.<br/>
/// Example: {"profile":"portable","protocol":"v1","search":{"max_results":5,"type":"bm25"},"validation":"runtime"}
/// </param>
/// <param name="frequencyPenalty">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ public partial interface IPresetsClient
{
/// <summary>
/// Create a preset from a chat-completions request body<br/>
/// Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.
/// Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored. Requires a read-write [management key](/docs/guides/overview/auth/management-api-keys); inference API keys are rejected.
/// </summary>
/// <param name="slug">
/// URL-safe slug identifying the preset. Created if it does not exist.<br/>
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to create the preset in. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand All @@ -22,16 +26,21 @@ public partial interface IPresetsClient
string slug,

global::OpenRouter.ChatRequest request,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create a preset from a chat-completions request body<br/>
/// Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.
/// Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored. Requires a read-write [management key](/docs/guides/overview/auth/management-api-keys); inference API keys are rejected.
/// </summary>
/// <param name="slug">
/// URL-safe slug identifying the preset. Created if it does not exist.<br/>
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to create the preset in. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand All @@ -40,16 +49,21 @@ public partial interface IPresetsClient
string slug,

global::OpenRouter.ChatRequest request,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create a preset from a chat-completions request body<br/>
/// Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.
/// Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored. Requires a read-write [management key](/docs/guides/overview/auth/management-api-keys); inference API keys are rejected.
/// </summary>
/// <param name="slug">
/// URL-safe slug identifying the preset. Created if it does not exist.<br/>
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to create the preset in. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </param>
/// <param name="cacheControl">
/// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.<br/>
/// Example: {"type":"ephemeral"}
Expand All @@ -59,7 +73,7 @@ public partial interface IPresetsClient
/// Example: {"echo_upstream_body":true}
/// </param>
/// <param name="deferredTools">
/// Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation; keep the catalog unchanged.<br/>
/// Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation. The portable profile needs the catalog unchanged across a continuation; the universal profile accepts a changed catalog and, with `announce_catalog_changes`, tells the model about it.<br/>
/// Example: {"profile":"portable","protocol":"v1","search":{"max_results":5,"type":"bm25"},"validation":"runtime"}
/// </param>
/// <param name="frequencyPenalty">
Expand Down Expand Up @@ -220,6 +234,7 @@ public partial interface IPresetsClient
global::System.Threading.Tasks.Task<global::OpenRouter.CreatePresetFromInferenceResponse> CreatePresetsChatCompletionsAsync(
string slug,
global::System.Collections.Generic.IList<global::OpenRouter.ChatMessages> messages,
global::System.Guid? workspaceId = default,
global::OpenRouter.AnthropicCacheControlDirective? cacheControl = default,
global::OpenRouter.ChatDebugOptions? debug = default,
global::OpenRouter.DeferredToolsControl? deferredTools = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ public partial interface IPresetsClient
{
/// <summary>
/// Create a preset from a messages request body<br/>
/// Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.
/// Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored. Requires a read-write [management key](/docs/guides/overview/auth/management-api-keys); inference API keys are rejected.
/// </summary>
/// <param name="slug">
/// URL-safe slug identifying the preset. Created if it does not exist.<br/>
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to create the preset in. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand All @@ -22,16 +26,21 @@ public partial interface IPresetsClient
string slug,

global::OpenRouter.MessagesRequest request,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create a preset from a messages request body<br/>
/// Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.
/// Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored. Requires a read-write [management key](/docs/guides/overview/auth/management-api-keys); inference API keys are rejected.
/// </summary>
/// <param name="slug">
/// URL-safe slug identifying the preset. Created if it does not exist.<br/>
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to create the preset in. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand All @@ -40,23 +49,28 @@ public partial interface IPresetsClient
string slug,

global::OpenRouter.MessagesRequest request,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create a preset from a messages request body<br/>
/// Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.
/// Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored. Requires a read-write [management key](/docs/guides/overview/auth/management-api-keys); inference API keys are rejected.
/// </summary>
/// <param name="slug">
/// URL-safe slug identifying the preset. Created if it does not exist.<br/>
/// Example: my-preset
/// </param>
/// <param name="workspaceId">
/// Workspace to create the preset in. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.<br/>
/// Example: 750e8400-e29b-41d4-a716-446655440002
/// </param>
/// <param name="cacheControl">
/// Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.<br/>
/// Example: {"type":"ephemeral"}
/// </param>
/// <param name="contextManagement"></param>
/// <param name="deferredTools">
/// Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation; keep the catalog unchanged.<br/>
/// Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation. The portable profile needs the catalog unchanged across a continuation; the universal profile accepts a changed catalog and, with `announce_catalog_changes`, tells the model about it.<br/>
/// Example: {"profile":"portable","protocol":"v1","search":{"max_results":5,"type":"bm25"},"validation":"runtime"}
/// </param>
/// <param name="fallbacks">
Expand Down Expand Up @@ -111,6 +125,7 @@ public partial interface IPresetsClient
global::System.Threading.Tasks.Task<global::OpenRouter.CreatePresetFromInferenceResponse> CreatePresetsMessagesAsync(
string slug,
string model,
global::System.Guid? workspaceId = default,
global::OpenRouter.AnthropicCacheControlDirective? cacheControl = default,
global::OpenRouter.MessagesRequestContextManagement? contextManagement = default,
global::OpenRouter.DeferredToolsControl? deferredTools = default,
Expand Down
Loading
Loading