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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ partial void ProcessCreateMessagesResponseContent(
/// Opt-in level for surfacing routing metadata on the response under `openrouter_metadata`.
/// </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. Currently supported for Anthropic Claude models.
/// 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.
/// </param>
/// <param name="contextManagement"></param>
/// <param name="fallbacks">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ partial void ProcessCreateKeysResponseContent(
global::System.DateTime? expiresAt = default,
bool? includeByokInLimit = default,
double? limit = default,
global::OpenRouter.OneOf<global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset?, object>? limitReset = default,
global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? limitReset = default,
global::System.Guid? workspaceId = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ partial void ProcessUpdateKeysResponseContent(
bool? disabled = default,
bool? includeByokInLimit = default,
double? limit = default,
global::OpenRouter.OneOf<global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset?, object>? limitReset = default,
global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? limitReset = default,
string? name = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,12 @@ partial void ProcessQueryAnalyticsResponseContent(
/// Query analytics data<br/>
/// Execute an analytics query with specified metrics, dimensions, filters, and time range. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="classifierDimensions">
/// Group results by custom classifier tags, breaking down metrics by the specified dimension values. Requires an active classifier on the workspace.
/// </param>
/// <param name="classifierFilters">
/// Filter results to generations with specific classifier tag values. Can be combined with classifier_dimensions (must use the same classifier_id) or used independently with standard dimensions.
/// </param>
/// <param name="dimensions"></param>
/// <param name="filters"></param>
/// <param name="granularity">
Expand All @@ -641,6 +647,8 @@ partial void ProcessQueryAnalyticsResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::OpenRouter.BetaAnalyticsQueryAnalyticsResponse200> QueryAnalyticsAsync(
global::System.Collections.Generic.IList<string> metrics,
global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions? classifierDimensions = default,
global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters? classifierFilters = default,
global::System.Collections.Generic.IList<string>? dimensions = default,
global::System.Collections.Generic.IList<global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaFiltersItems>? filters = default,
string? granularity = default,
Expand All @@ -653,6 +661,8 @@ partial void ProcessQueryAnalyticsResponseContent(
{
var __request = new global::OpenRouter.QueryAnalyticsRequest
{
ClassifierDimensions = classifierDimensions,
ClassifierFilters = classifierFilters,
Dimensions = dimensions,
Filters = filters,
Granularity = granularity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ partial void ProcessCreateResponsesResponseContent(
/// </param>
/// <param name="background"></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. Currently supported for Anthropic Claude models.
/// 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.
/// </param>
/// <param name="debug">
/// Debug options for inspecting request transformations (streaming only)
Expand All @@ -932,9 +932,14 @@ partial void ProcessCreateResponsesResponseContent(
/// Plugins you want to enable for this request, including their settings.
/// </param>
/// <param name="presencePenalty"></param>
/// <param name="previousResponseId"></param>
/// <param name="previousResponseId">
/// Not supported. The Responses API is stateless: no responses are stored, so a previous response cannot be referenced. Requests with a non-null value are rejected with a 400 error. Send the full conversation history in `input` instead.
/// </param>
/// <param name="prompt"></param>
/// <param name="promptCacheKey"></param>
/// <param name="promptCacheOptions">
/// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer.
/// </param>
/// <param name="provider">
/// When multiple model providers are available, optionally indicate your routing preference.
/// </param>
Expand All @@ -945,7 +950,9 @@ partial void ProcessCreateResponsesResponseContent(
/// Any type
/// </param>
/// <param name="safetyIdentifier"></param>
/// <param name="serviceTier"></param>
/// <param name="serviceTier">
/// Default Value: auto
/// </param>
/// <param name="sessionId">
/// A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.
/// </param>
Expand Down Expand Up @@ -994,14 +1001,15 @@ partial void ProcessCreateResponsesResponseContent(
bool? parallelToolCalls = default,
global::System.Collections.Generic.IList<global::OpenRouter.ResponsesRequestPluginsItems>? plugins = default,
double? presencePenalty = default,
string? previousResponseId = default,
object? previousResponseId = default,
global::OpenRouter.StoredPromptTemplate? prompt = default,
string? promptCacheKey = default,
global::OpenRouter.PromptCacheOptions? promptCacheOptions = default,
global::OpenRouter.ProviderPreferences? provider = default,
global::OpenRouter.ReasoningConfig? reasoning = default,
object? route = default,
string? safetyIdentifier = default,
global::OpenRouter.OneOf<global::OpenRouter.ResponsesRequestServiceTier?, object>? serviceTier = default,
global::OpenRouter.ResponsesRequestServiceTier? serviceTier = default,
string? sessionId = default,
global::System.Collections.Generic.IList<global::OpenRouter.StopServerToolsWhenCondition>? stopServerToolsWhen = default,
bool? store = default,
Expand Down Expand Up @@ -1041,6 +1049,7 @@ partial void ProcessCreateResponsesResponseContent(
PreviousResponseId = previousResponseId,
Prompt = prompt,
PromptCacheKey = promptCacheKey,
PromptCacheOptions = promptCacheOptions,
Provider = provider,
Reasoning = reasoning,
Route = route,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ partial void ProcessListByokKeysResponseContent(
/// List BYOK provider credentials<br/>
/// List the bring-your-own-key (BYOK) provider credentials for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace, or the `provider` query parameter to filter by upstream provider. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="offset"></param>
/// <param name="limit"></param>
/// <param name="offset">
/// Default Value: 0
/// </param>
/// <param name="limit">
/// Default Value: 50
/// </param>
/// <param name="workspaceId"></param>
/// <param name="provider">
/// Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`).
Expand Down Expand Up @@ -83,8 +87,12 @@ partial void ProcessListByokKeysResponseContent(
/// List BYOK provider credentials<br/>
/// List the bring-your-own-key (BYOK) provider credentials for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace, or the `provider` query parameter to filter by upstream provider. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="offset"></param>
/// <param name="limit"></param>
/// <param name="offset">
/// Default Value: 0
/// </param>
/// <param name="limit">
/// Default Value: 50
/// </param>
/// <param name="workspaceId"></param>
/// <param name="provider">
/// Optional provider slug to filter by (e.g. `openai`, `anthropic`, `amazon-bedrock`).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ partial void ProcessSendChatCompletionRequestResponseContent(
/// Opt-in level for surfacing routing metadata on the response under `openrouter_metadata`.
/// </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. Currently supported for Anthropic Claude models.
/// 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.
/// </param>
/// <param name="debug">
/// Debug options for inspecting request transformations (streaming only)
Expand Down Expand Up @@ -949,9 +949,16 @@ partial void ProcessSendChatCompletionRequestResponseContent(
/// <param name="plugins">
/// Plugins you want to enable for this request, including their settings.
/// </param>
/// <param name="prediction">
/// Static predicted output content. Supported models can use this to reduce latency when much of the response is known in advance.
/// </param>
/// <param name="presencePenalty">
/// Presence penalty (-2.0 to 2.0)
/// </param>
/// <param name="promptCacheKey"></param>
/// <param name="promptCacheOptions">
/// Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer.
/// </param>
/// <param name="provider">
/// When multiple model providers are available, optionally indicate your routing preference.
/// </param>
Expand Down Expand Up @@ -1040,17 +1047,20 @@ partial void ProcessSendChatCompletionRequestResponseContent(
global::System.Collections.Generic.IList<string>? models = default,
bool? parallelToolCalls = default,
global::System.Collections.Generic.IList<global::OpenRouter.ChatRequestPluginsItems>? plugins = default,
global::OpenRouter.Prediction? prediction = default,
double? presencePenalty = default,
string? promptCacheKey = default,
global::OpenRouter.PromptCacheOptions? promptCacheOptions = default,
global::OpenRouter.ProviderPreferences? provider = default,
global::OpenRouter.ChatRequestReasoning? reasoning = default,
global::OpenRouter.OneOf<global::OpenRouter.ChatRequestReasoningEffort?, object>? reasoningEffort = default,
global::OpenRouter.ChatRequestReasoningEffort? reasoningEffort = default,
double? repetitionPenalty = default,
global::OpenRouter.ChatRequestResponseFormat? responseFormat = default,
object? route = default,
int? seed = default,
global::OpenRouter.OneOf<global::OpenRouter.ChatRequestServiceTier?, object>? serviceTier = default,
global::OpenRouter.ChatRequestServiceTier? serviceTier = default,
string? sessionId = default,
global::OpenRouter.ChatRequestStop? stop = default,
global::OpenRouter.OneOf<global::OpenRouter.ChatRequestStop?, object>? stop = default,
global::System.Collections.Generic.IList<global::OpenRouter.StopServerToolsWhenCondition>? stopServerToolsWhen = default,
bool? stream = default,
global::OpenRouter.ChatStreamOptions? streamOptions = default,
Expand Down Expand Up @@ -1084,7 +1094,10 @@ partial void ProcessSendChatCompletionRequestResponseContent(
Models = models,
ParallelToolCalls = parallelToolCalls,
Plugins = plugins,
Prediction = prediction,
PresencePenalty = presencePenalty,
PromptCacheKey = promptCacheKey,
PromptCacheOptions = promptCacheOptions,
Provider = provider,
Reasoning = reasoning,
ReasoningEffort = reasoningEffort,
Expand Down
Loading
Loading