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 @@ -40,7 +40,7 @@ public partial interface ITencentTokenHubClient : global::System.IDisposable


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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class UnixTimestampJsonConverter : global::System.Text.Json.Serialization
{
return global::System.DateTimeOffset.FromUnixTimeSeconds(unixTimestamp);
}

return global::System.DateTimeOffset.FromUnixTimeMilliseconds(unixTimestamp);
}
if (reader.TryGetInt32(out int unixTimestampInt))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace TencentTokenHub
{
/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonSourceGenerationOptions(
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,140 +6,140 @@
namespace TencentTokenHub
{
/// <summary>
///
///
/// </summary>
public sealed partial class JsonSerializerContextTypes
{
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.Dictionary<string, string>? StringStringDictionary { get; set; }

/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.Dictionary<string, object>? StringObjectDictionary { get; set; }

/// <summary>
///
///
/// </summary>
public global::System.Text.Json.JsonElement? JsonElement { get; set; }

/// <summary>
///
///
/// </summary>
public global::TencentTokenHub.ChatCompletionRequest? Type0 { get; set; }
/// <summary>
///
///
/// </summary>
public string? Type1 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::TencentTokenHub.Message>? Type2 { get; set; }
/// <summary>
///
///
/// </summary>
public global::TencentTokenHub.Message? Type3 { get; set; }
/// <summary>
///
///
/// </summary>
public bool? Type4 { get; set; }
/// <summary>
///
///
/// </summary>
public int? Type5 { get; set; }
/// <summary>
///
///
/// </summary>
public float? Type6 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::TencentTokenHub.Tool>? Type7 { get; set; }
/// <summary>
///
///
/// </summary>
public global::TencentTokenHub.Tool? Type8 { get; set; }
/// <summary>
///
///
/// </summary>
public global::TencentTokenHub.ResponseFormat? Type9 { get; set; }
/// <summary>
///
///
/// </summary>
public global::TencentTokenHub.OneOf<string, global::System.Collections.Generic.IList<global::TencentTokenHub.ContentPart>>? Type10 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::TencentTokenHub.ContentPart>? Type11 { get; set; }
/// <summary>
///
///
/// </summary>
public global::TencentTokenHub.ContentPart? Type12 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::TencentTokenHub.ToolCall>? Type13 { get; set; }
/// <summary>
///
///
/// </summary>
public global::TencentTokenHub.ToolCall? Type14 { get; set; }
/// <summary>
///
///
/// </summary>
public object? Type15 { get; set; }
/// <summary>
///
///
/// </summary>
public global::TencentTokenHub.FunctionDefinition? Type16 { get; set; }
/// <summary>
///
///
/// </summary>
public global::TencentTokenHub.FunctionCall? Type17 { get; set; }
/// <summary>
///
///
/// </summary>
public global::TencentTokenHub.ChatCompletionResponse? Type18 { get; set; }
/// <summary>
///
///
/// </summary>
public long? Type19 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.IList<global::TencentTokenHub.Choice>? Type20 { get; set; }
/// <summary>
///
///
/// </summary>
public global::TencentTokenHub.Choice? Type21 { get; set; }
/// <summary>
///
///
/// </summary>
public global::TencentTokenHub.Usage? Type22 { get; set; }

/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::TencentTokenHub.Message>? ListType0 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::TencentTokenHub.Tool>? ListType1 { get; set; }
/// <summary>
///
///
/// </summary>
public global::TencentTokenHub.OneOf<string, global::System.Collections.Generic.List<global::TencentTokenHub.ContentPart>>? ListType2 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::TencentTokenHub.ContentPart>? ListType3 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::TencentTokenHub.ToolCall>? ListType4 { get; set; }
/// <summary>
///
///
/// </summary>
public global::System.Collections.Generic.List<global::TencentTokenHub.Choice>? ListType5 { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,62 +4,62 @@
namespace TencentTokenHub
{
/// <summary>
///
///
/// </summary>
public sealed partial class ChatCompletionRequest
{
/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Model { get; set; }

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("messages")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<global::TencentTokenHub.Message> Messages { get; set; }

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("stream")]
public bool? Stream { get; set; }

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("max_tokens")]
public int? MaxTokens { get; set; }

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("temperature")]
public float? Temperature { get; set; }

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("top_p")]
public float? TopP { get; set; }

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("tools")]
public global::System.Collections.Generic.IList<global::TencentTokenHub.Tool>? Tools { get; set; }

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")]
public string? ToolChoice { get; set; }

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("response_format")]
public global::TencentTokenHub.ResponseFormat? ResponseFormat { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,42 @@
namespace TencentTokenHub
{
/// <summary>
///
///
/// </summary>
public sealed partial class ChatCompletionResponse
{
/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
public string? Id { get; set; }

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

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("created")]
public long? Created { get; set; }

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
public string? Model { get; set; }

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("choices")]
public global::System.Collections.Generic.IList<global::TencentTokenHub.Choice>? Choices { get; set; }

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("usage")]
public global::TencentTokenHub.Usage? Usage { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@
namespace TencentTokenHub
{
/// <summary>
///
///
/// </summary>
public sealed partial class Choice
{
/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("index")]
public int? Index { get; set; }

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("message")]
public global::TencentTokenHub.Message? Message { get; set; }

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("delta")]
public global::TencentTokenHub.Message? Delta { get; set; }

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")]
public string? FinishReason { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@
namespace TencentTokenHub
{
/// <summary>
///
///
/// </summary>
public sealed partial class ContentPart
{
/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
public string? Type { get; set; }

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("text")]
public string? Text { get; set; }

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

/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("file")]
public object? File { get; set; }
Expand Down
Loading