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 @@ -59,6 +59,11 @@ public partial interface IOpenRouterClient : global::System.IDisposable
/// </summary>
public SubpackageApiKeysClient SubpackageApiKeys { get; }

/// <summary>
///
/// </summary>
public SubpackageBenchmarksClient SubpackageBenchmarks { get; }

/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#nullable enable

namespace OpenRouter
{
public partial interface ISubpackageBenchmarksClient
{
/// <summary>
/// List Benchmarks<br/>
/// Unified benchmark endpoint that aggregates scores from multiple benchmark sources (Artificial Analysis, Design Arena). Filter by source to reproduce the exact shapes from the legacy per-source endpoints, or use task_type to find models suited for specific workloads. Authenticate with any valid OpenRouter API key. Rate-limited to 30 requests/minute per key and 500 requests/day per account.
/// </summary>
/// <param name="source">
/// Benchmark source to query. Determines the shape of the returned items.
/// </param>
/// <param name="taskType">
/// Filter results by task type. For Artificial Analysis, maps to the corresponding index. For Design Arena, maps to the matching category.
/// </param>
/// <param name="arena">
/// Design Arena only: arena to query. Defaults to `models` when source is `design-arena`.
/// </param>
/// <param name="category"></param>
/// <param name="maxResults">
/// Default Value: 50
/// </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>
/// <exception cref="global::OpenRouter.ApiException"></exception>
global::System.Threading.Tasks.Task<global::OpenRouter.UnifiedBenchmarksResponse> GetBenchmarksAsync(
global::OpenRouter.BenchmarksGetParametersSource source,
global::OpenRouter.BenchmarksGetParametersTaskType? taskType = default,
global::OpenRouter.BenchmarksGetParametersArena? arena = default,
string? category = default,
int? maxResults = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// List Benchmarks<br/>
/// Unified benchmark endpoint that aggregates scores from multiple benchmark sources (Artificial Analysis, Design Arena). Filter by source to reproduce the exact shapes from the legacy per-source endpoints, or use task_type to find models suited for specific workloads. Authenticate with any valid OpenRouter API key. Rate-limited to 30 requests/minute per key and 500 requests/day per account.
/// </summary>
/// <param name="source">
/// Benchmark source to query. Determines the shape of the returned items.
/// </param>
/// <param name="taskType">
/// Filter results by task type. For Artificial Analysis, maps to the corresponding index. For Design Arena, maps to the matching category.
/// </param>
/// <param name="arena">
/// Design Arena only: arena to query. Defaults to `models` when source is `design-arena`.
/// </param>
/// <param name="category"></param>
/// <param name="maxResults">
/// Default Value: 50
/// </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>
/// <exception cref="global::OpenRouter.ApiException"></exception>
global::System.Threading.Tasks.Task<global::OpenRouter.AutoSDKHttpResponse<global::OpenRouter.UnifiedBenchmarksResponse>> GetBenchmarksAsResponseAsync(
global::OpenRouter.BenchmarksGetParametersSource source,
global::OpenRouter.BenchmarksGetParametersTaskType? taskType = default,
global::OpenRouter.BenchmarksGetParametersArena? arena = default,
string? category = default,
int? maxResults = default,
global::OpenRouter.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

#nullable enable

namespace OpenRouter
{
/// <summary>
/// If no httpClient is provided, a new one will be created.<br/>
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
public partial interface ISubpackageBenchmarksClient : global::System.IDisposable
{
/// <summary>
/// The HttpClient instance.
/// </summary>
public global::System.Net.Http.HttpClient HttpClient { get; }

/// <summary>
/// The base URL for the API.
/// </summary>
public System.Uri? BaseUri { get; }

/// <summary>
/// The authorizations to use for the requests.
/// </summary>
public global::System.Collections.Generic.List<global::OpenRouter.EndPointAuthorization> Authorizations { get; }

/// <summary>
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
/// When false, successful responses are deserialized directly from the response stream for better performance.
/// Error responses are always read as strings regardless of this setting,
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }
/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::OpenRouter.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }


}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading