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 @@ -66,5 +66,6 @@ public ChatCompletionChoice(
public ChatCompletionChoice()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ public ChatCompletionContentPart(
public ChatCompletionContentPart()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ public ChatCompletionDelta(
public ChatCompletionDelta()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,6 @@ public ChatCompletionMessage(
public ChatCompletionMessage()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@ public ChatCompletionMessageToolCall(
public ChatCompletionMessageToolCall()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ public ChatCompletionTool(
public ChatCompletionTool()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ public ChatCompletionToolChoice(
public ChatCompletionToolChoice()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ public ChatCompletionToolChoiceFunction(
public ChatCompletionToolChoiceFunction()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Gonka/Generated/Gonka.Models.CompletionUsage.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,6 @@ public CompletionUsage(
public CompletionUsage()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,6 @@ public CreateChatCompletionRequest(
public CreateChatCompletionRequest()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,6 @@ public CreateChatCompletionResponse(
public CreateChatCompletionResponse()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Gonka/Generated/Gonka.Models.Error.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ public Error(
public Error()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Gonka/Generated/Gonka.Models.ErrorResponse.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ public ErrorResponse(
public ErrorResponse()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Gonka/Generated/Gonka.Models.FunctionCall.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ public FunctionCall(
public FunctionCall()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ public FunctionDefinition(
public FunctionDefinition()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public sealed partial class FunctionDefinitionParameters
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
1 change: 1 addition & 0 deletions src/libs/Gonka/Generated/Gonka.Models.ImageUrlContent.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ public ImageUrlContent(
public ImageUrlContent()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ public ListModelsResponse(
public ListModelsResponse()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Gonka/Generated/Gonka.Models.Model.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@ public Model(
public Model()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Gonka/Generated/Gonka.Models.ResponseFormat.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ public ResponseFormat(
public ResponseFormat()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public sealed partial class ResponseFormatJsonSchema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
14 changes: 14 additions & 0 deletions src/libs/Gonka/Generated/Gonka.OneOf.2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public bool TryPickValue1(
return IsValue1;
}

/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -67,6 +74,13 @@ public bool TryPickValue2(
value = Value2;
return IsValue2;
}

/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
27 changes: 26 additions & 1 deletion src/libs/Gonka/Generated/Gonka.OptionsSupport.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,24 @@ public sealed class AutoSDKAuthorizationProviderHook : global::Gonka.AutoSDKHook
{
context = context ?? throw new global::System.ArgumentNullException(nameof(context));

if (context.Request == null)
{
return;
}

var perRequest = context.RequestOptions?.Authorizations;
if (perRequest != null && perRequest.Count > 0)
{
for (var index = 0; index < perRequest.Count; index++)
{
ApplyAuthorization(context.Request, perRequest[index]);
}

return;
}

var provider = context.ClientOptions?.AuthorizationProvider;
if (provider == null || context.Request == null)
if (provider == null)
{
return;
}
Expand Down Expand Up @@ -237,6 +253,15 @@ public sealed class AutoSDKRequestOptions
/// Overrides response buffering for this request when set.
/// </summary>
public bool? ReadResponseAsString { get; set; }

/// <summary>
/// Optional per-request authorization values. When non-empty, the built-in
/// <see cref="AutoSDKAuthorizationProviderHook"/> applies these instead of consulting
/// <see cref="AutoSDKClientOptions.AuthorizationProvider"/> for this request only.
/// Useful for multi-tenant routing or "act-as" admin tooling that needs a different
/// credential per call without mutating shared client state.
/// </summary>
public global::System.Collections.Generic.IReadOnlyList<global::Gonka.AutoSDKAuthorizationValue>? Authorizations { get; set; }
}

/// <summary>
Expand Down
Loading