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
1 change: 1 addition & 0 deletions src/libs/Groq/Generated/Groq.AudioClient.CreateSpeech.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ partial void ProcessCreateSpeechResponseContent(
double? speed = default,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Groq.CreateSpeechRequest
{
Model = model,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ partial void ProcessCreateTranscriptionResponseContent(
global::System.Collections.Generic.IList<global::Groq.CreateTranscriptionRequestTimestampGranularitie>? timestampGranularities = default,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Groq.CreateTranscriptionRequest
{
File = file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ partial void ProcessCreateTranslationResponseContent(
double? temperature = default,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Groq.CreateTranslationRequest
{
File = file,
Expand Down
1 change: 1 addition & 0 deletions src/libs/Groq/Generated/Groq.BatchClient.CreateBatch.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ partial void ProcessCreateBatchResponseContent(
global::System.Collections.Generic.Dictionary<string, string>? metadata = default,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Groq.CreateBatchRequest
{
InputFileId = inputFileId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ partial void ProcessCreateChatCompletionResponseContent(
global::Groq.CreateChatCompletionRequestCitationOptions? citationOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Groq.CreateChatCompletionRequest
{
Messages = messages,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ partial void ProcessCreateEmbeddingResponseContent(
string? user = default,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Groq.CreateEmbeddingRequest
{
Input = input,
Expand Down
1 change: 1 addition & 0 deletions src/libs/Groq/Generated/Groq.FilesClient.UploadFile.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ partial void ProcessUploadFileResponseContent(
global::Groq.CreateFileRequestPurpose purpose = default,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Groq.CreateFileRequest
{
File = file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ partial void ProcessCreateFineTuningResponseContent(
string? type = default,
global::System.Threading.CancellationToken cancellationToken = default)
{

var __request = new global::Groq.CreateFineTuningRequest
{
BaseModel = baseModel,
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Groq/Generated/Groq.JsonConverters.AnyOf2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T1?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo);
}
else if (value.IsValue2)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionDocumentSourceText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ChatCompletionDocumentSourceText?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionDocumentSourceText).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo);
}
else if (value.IsJson)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionDocumentSourceJSON), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ChatCompletionDocumentSourceJSON?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionDocumentSourceJSON).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Json, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Json!, typeInfo);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,31 +86,31 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionRequestSystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ChatCompletionRequestSystemMessage?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionRequestSystemMessage).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.System, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.System!, typeInfo);
}
else if (value.IsUser)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionRequestUserMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ChatCompletionRequestUserMessage?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionRequestUserMessage).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.User, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.User!, typeInfo);
}
else if (value.IsAssistant)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ChatCompletionRequestAssistantMessage?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionRequestAssistantMessage).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Assistant, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Assistant!, typeInfo);
}
else if (value.IsTool)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionRequestToolMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ChatCompletionRequestToolMessage?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionRequestToolMessage).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tool, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tool!, typeInfo);
}
else if (value.IsFunction)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionRequestFunctionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ChatCompletionRequestFunctionMessage?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionRequestFunctionMessage).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,19 +159,19 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ChatCompletionRequestMessageContentPartText?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionRequestMessageContentPartText).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextContentPart, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextContentPart!, typeInfo);
}
else if (value.IsImageContentPart)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionRequestMessageContentPartImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ChatCompletionRequestMessageContentPartImage?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionRequestMessageContentPartImage).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageContentPart, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageContentPart!, typeInfo);
}
else if (value.IsDocumentContentPart)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionRequestMessageContentPartDocument), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ChatCompletionRequestMessageContentPartDocument?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionRequestMessageContentPartDocument).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.DocumentContentPart, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.DocumentContentPart!, typeInfo);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ChatCompletionToolChoiceOptionEnum> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionToolChoiceOptionEnum).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo);
}
else if (value.IsValue2)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ChatCompletionNamedToolChoice?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionNamedToolChoice).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Groq/Generated/Groq.JsonConverters.OneOf2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T1?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo);
}
else if (value.IsValue2)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/libs/Groq/Generated/Groq.JsonConverters.OneOf3.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,19 +191,19 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T1?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo);
}
else if (value.IsValue2)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
}
else if (value.IsValue3)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<T3?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ResponseFileCitation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ResponseFileCitation?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseFileCitation).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileCitation, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileCitation!, typeInfo);
}
else if (value.IsUrlCitation)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ResponseUrlCitation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ResponseUrlCitation?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseUrlCitation).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.UrlCitation, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.UrlCitation!, typeInfo);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,19 +160,19 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ResponseFormatText?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseFormatText).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo);
}
else if (value.IsJsonObject)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ResponseFormatJsonObject?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseFormatJsonObject).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject!, typeInfo);
}
else if (value.IsJsonSchema)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.TextResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.TextResponseFormatJsonSchema?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.TextResponseFormatJsonSchema).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema!, typeInfo);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ResponseInputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Groq.ResponseInputTextContent?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseInputTextContent).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo);
}
}
}
Expand Down
Loading