From 1aaff2942dc8c52f5929ba2db92982db26ddded4 Mon Sep 17 00:00:00 2001 From: chenchun Date: Tue, 21 Oct 2025 16:55:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=20Anthropic=20DTO=20?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E4=B8=BA=E5=8F=AF=E7=A9=BA=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=BB=A5=E9=81=BF=E5=85=8D=E5=8F=8D=E5=BA=8F=E5=88=97=E5=8C=96?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dtos/Anthropic/AnthropicInput.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain.Shared/Dtos/Anthropic/AnthropicInput.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain.Shared/Dtos/Anthropic/AnthropicInput.cs index 49d3c2d7..891dae7b 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain.Shared/Dtos/Anthropic/AnthropicInput.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain.Shared/Dtos/Anthropic/AnthropicInput.cs @@ -108,9 +108,9 @@ public sealed class AnthropicInput public class AnthropicThinkingInput { - [JsonPropertyName("type")] public string Type { get; set; } + [JsonPropertyName("type")] public string? Type { get; set; } - [JsonPropertyName("budget_tokens")] public int BudgetTokens { get; set; } + [JsonPropertyName("budget_tokens")] public int? BudgetTokens { get; set; } } public class AnthropicTooChoiceInput @@ -122,16 +122,16 @@ public class AnthropicTooChoiceInput public class AnthropicMessageTool { - [JsonPropertyName("name")] public string name { get; set; } + [JsonPropertyName("name")] public string? name { get; set; } [JsonPropertyName("description")] public string? Description { get; set; } - [JsonPropertyName("input_schema")] public Input_schema InputSchema { get; set; } + [JsonPropertyName("input_schema")] public Input_schema? InputSchema { get; set; } } public class Input_schema { - [JsonPropertyName("type")] public string Type { get; set; } + [JsonPropertyName("type")] public string? Type { get; set; } [JsonPropertyName("properties")] public Dictionary? Properties { get; set; } @@ -140,9 +140,9 @@ public class Input_schema public class InputSchemaValue { - public string type { get; set; } + public string? type { get; set; } - public string description { get; set; } + public string? description { get; set; } public InputSchemaValueItems? items { get; set; } }