feat: 完成功能

This commit is contained in:
ccnetcore
2025-07-17 23:52:00 +08:00
parent c5b0f69b51
commit 30678dbbb4
7 changed files with 43 additions and 29 deletions

View File

@@ -258,7 +258,7 @@ public class ThorChatCompletionsRequest
[JsonPropertyName("response_format")]
public ThorResponseFormat? ResponseFormat { get; set; }
[JsonPropertyName("metadata")] public Dictionary<string, string> Metadata { get; set; }
[JsonPropertyName("metadata")] public Dictionary<string, string>? Metadata { get; set; }
/// <summary>
/// 此功能处于测试阶段。
@@ -273,9 +273,9 @@ public class ThorChatCompletionsRequest
/// 代表您的最终用户的唯一标识符,可以帮助 OpenAI 监控和检测滥用行为。
/// </summary>
[JsonPropertyName("user")]
public string User { get; set; }
public string? User { get; set; }
[JsonPropertyName("thinking")] public ThorChatClaudeThinking Thinking { get; set; }
[JsonPropertyName("thinking")] public ThorChatClaudeThinking? Thinking { get; set; }
/// <summary>
/// 参数验证