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
14 changes: 7 additions & 7 deletions src/libs/AI21/Generated/AI21.Models.Assistant.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,35 @@ public sealed partial class Assistant
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Id { get; set; } = default!;
public required string Id { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.DateTime CreatedAt { get; set; } = default!;
public required global::System.DateTime CreatedAt { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("updated_at")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.DateTime UpdatedAt { get; set; } = default!;
public required global::System.DateTime UpdatedAt { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("object")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Object { get; set; } = default!;
public required string Object { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Name { get; set; } = default!;
public required string Name { get; set; }

/// <summary>
///
Expand All @@ -64,7 +64,7 @@ public sealed partial class Assistant
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("organization_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string OrganizationId { get; set; } = default!;
public required string OrganizationId { get; set; }

/// <summary>
///
Expand All @@ -77,7 +77,7 @@ public sealed partial class Assistant
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("user_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string UserId { get; set; } = default!;
public required string UserId { get; set; }

/// <summary>
///
Expand Down
4 changes: 2 additions & 2 deletions src/libs/AI21/Generated/AI21.Models.AssistantBasicInfo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ public sealed partial class AssistantBasicInfo
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.Guid Id { get; set; } = default!;
public required global::System.Guid Id { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Name { get; set; } = default!;
public required string Name { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
16 changes: 8 additions & 8 deletions src/libs/AI21/Generated/AI21.Models.AssistantRoute.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,56 +15,56 @@ public sealed partial class AssistantRoute
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Id { get; set; } = default!;
public required string Id { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.DateTime CreatedAt { get; set; } = default!;
public required global::System.DateTime CreatedAt { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("updated_at")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.DateTime UpdatedAt { get; set; } = default!;
public required global::System.DateTime UpdatedAt { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("plan_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string PlanId { get; set; } = default!;
public required string PlanId { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Name { get; set; } = default!;
public required string Name { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("description")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Description { get; set; } = default!;
public required string Description { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("examples")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.Collections.Generic.IList<string> Examples { get; set; } = default!;
public required global::System.Collections.Generic.IList<string> Examples { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("assistant_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string AssistantId { get; set; } = default!;
public required string AssistantId { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed partial class AssistantsByMcpResponse
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("results")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.Collections.Generic.IList<global::AI21.AssistantBasicInfo> Results { get; set; } = default!;
public required global::System.Collections.Generic.IList<global::AI21.AssistantBasicInfo> Results { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed partial class BodyConvertDocumentFileStudioV1ChatFilesConvertPost
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("files")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.Collections.Generic.IList<byte[]> Files { get; set; } = default!;
public required global::System.Collections.Generic.IList<byte[]> Files { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public sealed partial class BodyParsePdfStudioV1DemosDocumentModifierParsePdfPos
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("file")]
[global::System.Text.Json.Serialization.JsonRequired]
public byte[] File { get; set; } = default!;
public required byte[] File { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("filename")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Filename { get; set; } = default!;
public required string Filename { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public sealed partial class BodyProcessRfiDocumentStudioV1DemosRfiProcessRfiPost
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("file")]
[global::System.Text.Json.Serialization.JsonRequired]
public byte[] File { get; set; } = default!;
public required byte[] File { get; set; }

/// <summary>
/// RFI document file (PDF supported)
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("filename")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Filename { get; set; } = default!;
public required string Filename { get; set; }

/// <summary>
/// Budget level: LOW, MEDIUM, or HIGH<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public sealed partial class BodyUploadCheckComplianceStudioV1DemosRegulationsUpl
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("file")]
[global::System.Text.Json.Serialization.JsonRequired]
public byte[] File { get; set; } = default!;
public required byte[] File { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("filename")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Filename { get; set; } = default!;
public required string Filename { get; set; }

/// <summary>
/// Default Value: MEDIUM
Expand Down
4 changes: 2 additions & 2 deletions src/libs/AI21/Generated/AI21.Models.BodyV1LibraryUpload.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public sealed partial class BodyV1LibraryUpload
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("file")]
[global::System.Text.Json.Serialization.JsonRequired]
public byte[] File { get; set; } = default!;
public required byte[] File { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("filename")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Filename { get; set; } = default!;
public required string Filename { get; set; }

/// <summary>
///
Expand Down
6 changes: 3 additions & 3 deletions src/libs/AI21/Generated/AI21.Models.ChatCompletion.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ public sealed partial class ChatCompletion
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Id { get; set; } = default!;
public required string Id { get; set; }

/// <summary>
/// One or more responses, depending on the `n` parameter from the request.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("choices")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.Collections.Generic.IList<global::AI21.ChatCompletionResponseChoice> Choices { get; set; } = default!;
public required global::System.Collections.Generic.IList<global::AI21.ChatCompletionResponseChoice> Choices { get; set; }

/// <summary>
/// The token counts for this request. Per-token billing is based on the<br/>
/// prompt token and completion token counts and rates.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("usage")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::AI21.UsageInfo Usage { get; set; } = default!;
public required global::AI21.UsageInfo Usage { get; set; }

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ public sealed partial class ChatCompletionResponseChoice
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("index")]
[global::System.Text.Json.Serialization.JsonRequired]
public int Index { get; set; } = default!;
public required int Index { get; set; }

/// <summary>
/// The message generated by the model. Same structure as the request message, with `role` and `content` members.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("message")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::AI21.AssistantMessage Message { get; set; } = default!;
public required global::AI21.AssistantMessage Message { get; set; }

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed partial class ChatCompletionResponseDeltaChoice
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("index")]
[global::System.Text.Json.Serialization.JsonRequired]
public int Index { get; set; } = default!;
public required int Index { get; set; }

/// <summary>
/// - **The first message** in the stream will be an object set to `{"role":"assistant"}`.<br/>
Expand All @@ -24,7 +24,7 @@ public sealed partial class ChatCompletionResponseDeltaChoice
[global::System.Text.Json.Serialization.JsonPropertyName("delta")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.AnyOfJsonConverter<global::AI21.ChatStreamingFirstDelta, global::AI21.ChatStreamingContentDelta, global::AI21.ChatStreamingToolCallsFirstDelta, global::AI21.ChatStreamingToolCallsDelta>))]
[global::System.Text.Json.Serialization.JsonRequired]
public global::AI21.AnyOf<global::AI21.ChatStreamingFirstDelta, global::AI21.ChatStreamingContentDelta, global::AI21.ChatStreamingToolCallsFirstDelta, global::AI21.ChatStreamingToolCallsDelta> Delta { get; set; } = default!;
public required global::AI21.AnyOf<global::AI21.ChatStreamingFirstDelta, global::AI21.ChatStreamingContentDelta, global::AI21.ChatStreamingToolCallsFirstDelta, global::AI21.ChatStreamingToolCallsDelta> Delta { get; set; }

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ public sealed partial class ChatCompletionVllmStreamingMessage
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Id { get; set; } = default!;
public required string Id { get; set; }

/// <summary>
/// The message
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("choices")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.Collections.Generic.IList<global::AI21.ChatCompletionResponseDeltaChoice> Choices { get; set; } = default!;
public required global::System.Collections.Generic.IList<global::AI21.ChatCompletionResponseDeltaChoice> Choices { get; set; }

/// <summary>
/// Included in the last message only. Total token counts for the message.
Expand Down
4 changes: 2 additions & 2 deletions src/libs/AI21/Generated/AI21.Models.ChatRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed partial class ChatRequest
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.ModelNameJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public global::AI21.ModelName Model { get; set; } = default!;
public required global::AI21.ModelName Model { get; set; }

/// <summary>
/// The previous messages in this chat, from oldest (index 0) to newest. Messages<br/>
Expand All @@ -27,7 +27,7 @@ public sealed partial class ChatRequest
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("messages")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.Collections.Generic.IList<global::AI21.MessagesItem> Messages { get; set; } = default!;
public required global::System.Collections.Generic.IList<global::AI21.MessagesItem> Messages { get; set; }

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed partial class ChatStreamingContentDelta
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("content")]
[global::System.Text.Json.Serialization.JsonRequired]
public string Content { get; set; } = default!;
public required string Content { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public sealed partial class ChatStreamingFirstDelta
[global::System.Text.Json.Serialization.JsonPropertyName("role")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::AI21.JsonConverters.ChatStreamingFirstDeltaRoleJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public global::AI21.ChatStreamingFirstDeltaRole Role { get; set; } = default!;
public required global::AI21.ChatStreamingFirstDeltaRole Role { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed partial class ChatStreamingToolCallsDelta
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("tool_calls")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.Collections.Generic.IList<global::AI21.ToolCallDelta> ToolCalls { get; set; } = default!;
public required global::System.Collections.Generic.IList<global::AI21.ToolCallDelta> ToolCalls { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed partial class ChatStreamingToolCallsFirstDelta
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("tool_calls")]
[global::System.Text.Json.Serialization.JsonRequired]
public global::System.Collections.Generic.IList<global::AI21.ToolCallDeltaStart> ToolCalls { get; set; } = default!;
public required global::System.Collections.Generic.IList<global::AI21.ToolCallDeltaStart> ToolCalls { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
4 changes: 2 additions & 2 deletions src/libs/AI21/Generated/AI21.Models.CompareTextRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public sealed partial class CompareTextRequest
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("original_text")]
[global::System.Text.Json.Serialization.JsonRequired]
public string OriginalText { get; set; } = default!;
public required string OriginalText { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("modified_text")]
[global::System.Text.Json.Serialization.JsonRequired]
public string ModifiedText { get; set; } = default!;
public required string ModifiedText { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Loading
Loading