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 @@ -126,7 +126,7 @@ public partial interface ISubpackageChatClient
string? sessionId = default,
global::OpenRouter.ChatRequestTrace? trace = default,
string? model = default,
global::System.Collections.Generic.IList<object>? models = default,
global::System.Collections.Generic.IList<global::OpenRouter.ChatModelNamesItems>? models = default,
double? frequencyPenalty = default,
global::System.Collections.Generic.Dictionary<string, double>? logitBias = default,
bool? logprobs = default,
Expand Down

Large diffs are not rendered by default.

2,274 changes: 1,237 additions & 1,037 deletions src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down Expand Up @@ -58,7 +56,7 @@ public sealed partial class ChatRequest
/// Models to use for completion
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("models")]
public global::System.Collections.Generic.IList<object>? Models { get; set; }
public global::System.Collections.Generic.IList<global::OpenRouter.ChatModelNamesItems>? Models { get; set; }

/// <summary>
/// Frequency penalty (-2.0 to 2.0)
Expand Down Expand Up @@ -328,7 +326,7 @@ public ChatRequest(
string? sessionId,
global::OpenRouter.ChatRequestTrace? trace,
string? model,
global::System.Collections.Generic.IList<object>? models,
global::System.Collections.Generic.IList<global::OpenRouter.ChatModelNamesItems>? models,
double? frequencyPenalty,
global::System.Collections.Generic.Dictionary<string, double>? logitBias,
bool? logprobs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public sealed partial class ChatRequestProvider
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("sort")]
public object? Sort { get; set; }
public global::OpenRouter.ChatRequestProviderSort? Sort { get; set; }

/// <summary>
/// The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
Expand Down Expand Up @@ -156,7 +156,7 @@ public ChatRequestProvider(
global::System.Collections.Generic.IList<global::OpenRouter.ChatRequestProviderOnlyItems>? only,
global::System.Collections.Generic.IList<global::OpenRouter.ChatRequestProviderIgnoreItems>? ignore,
global::System.Collections.Generic.IList<global::OpenRouter.Quantization>? quantizations,
object? sort,
global::OpenRouter.ChatRequestProviderSort? sort,
global::OpenRouter.ChatRequestProviderMaxPrice? maxPrice,
global::OpenRouter.PreferredMinThroughput? preferredMinThroughput,
global::OpenRouter.PreferredMaxLatency? preferredMaxLatency)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ public sealed partial class ChatRequestProviderMaxPrice
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("completion")]
public object? Completion { get; set; }
public global::OpenRouter.ChatRequestProviderMaxPriceCompletion? Completion { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("image")]
public object? Image { get; set; }
public global::OpenRouter.ChatRequestProviderMaxPriceImage? Image { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("audio")]
public object? Audio { get; set; }
public global::OpenRouter.ChatRequestProviderMaxPriceAudio? Audio { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("request")]
public object? Request { get; set; }
public global::OpenRouter.ChatRequestProviderMaxPriceRequest? Request { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand All @@ -59,10 +59,10 @@ public sealed partial class ChatRequestProviderMaxPrice
#endif
public ChatRequestProviderMaxPrice(
string? prompt,
object? completion,
object? image,
object? audio,
object? request)
global::OpenRouter.ChatRequestProviderMaxPriceCompletion? completion,
global::OpenRouter.ChatRequestProviderMaxPriceImage? image,
global::OpenRouter.ChatRequestProviderMaxPriceAudio? audio,
global::OpenRouter.ChatRequestProviderMaxPriceRequest? request)
{
this.Prompt = prompt;
this.Completion = completion;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed partial class ListEndpointsResponseArchitecture
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("tokenizer")]
[global::System.Text.Json.Serialization.JsonRequired]
public required object Tokenizer { get; set; }
public required global::OpenRouter.ListEndpointsResponseArchitectureTokenizer Tokenizer { get; set; }

/// <summary>
/// Instruction format type
Expand Down Expand Up @@ -69,7 +69,7 @@ public sealed partial class ListEndpointsResponseArchitecture
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ListEndpointsResponseArchitecture(
object tokenizer,
global::OpenRouter.ListEndpointsResponseArchitectureTokenizer tokenizer,
global::OpenRouter.InstructType2 instructType,
global::System.Collections.Generic.IList<global::OpenRouter.InputModality> inputModalities,
global::System.Collections.Generic.IList<global::OpenRouter.OutputModality> outputModalities,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public sealed partial class MessagesRequestProvider
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("sort")]
public object? Sort { get; set; }
public global::OpenRouter.MessagesRequestProviderSort? Sort { get; set; }

/// <summary>
/// The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
Expand Down Expand Up @@ -156,7 +156,7 @@ public MessagesRequestProvider(
global::System.Collections.Generic.IList<global::OpenRouter.MessagesRequestProviderOnlyItems>? only,
global::System.Collections.Generic.IList<global::OpenRouter.MessagesRequestProviderIgnoreItems>? ignore,
global::System.Collections.Generic.IList<global::OpenRouter.Quantization>? quantizations,
object? sort,
global::OpenRouter.MessagesRequestProviderSort? sort,
global::OpenRouter.MessagesRequestProviderMaxPrice? maxPrice,
global::OpenRouter.PreferredMinThroughput? preferredMinThroughput,
global::OpenRouter.PreferredMaxLatency? preferredMaxLatency)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ public sealed partial class MessagesRequestProviderMaxPrice
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("completion")]
public object? Completion { get; set; }
public global::OpenRouter.MessagesRequestProviderMaxPriceCompletion? Completion { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("image")]
public object? Image { get; set; }
public global::OpenRouter.MessagesRequestProviderMaxPriceImage? Image { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("audio")]
public object? Audio { get; set; }
public global::OpenRouter.MessagesRequestProviderMaxPriceAudio? Audio { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("request")]
public object? Request { get; set; }
public global::OpenRouter.MessagesRequestProviderMaxPriceRequest? Request { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand All @@ -59,10 +59,10 @@ public sealed partial class MessagesRequestProviderMaxPrice
#endif
public MessagesRequestProviderMaxPrice(
string? prompt,
object? completion,
object? image,
object? audio,
object? request)
global::OpenRouter.MessagesRequestProviderMaxPriceCompletion? completion,
global::OpenRouter.MessagesRequestProviderMaxPriceImage? image,
global::OpenRouter.MessagesRequestProviderMaxPriceAudio? audio,
global::OpenRouter.MessagesRequestProviderMaxPriceRequest? request)
{
this.Prompt = prompt;
this.Completion = completion;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#pragma warning disable CS0618 // Type or member is obsolete

#nullable enable

namespace OpenRouter
Expand Down
Loading