From ce4f7e5711155b9402cdb82c7f95414d3ed8c8c6 Mon Sep 17 00:00:00 2001 From: chenchun Date: Fri, 12 Dec 2025 09:40:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B0=86=20AnthropicInput.Messages?= =?UTF-8?q?=20=E7=B1=BB=E5=9E=8B=E7=94=B1=20JsonElement=3F=20=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=20IList?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用强类型消息集合,便于序列化与校验。 --- .../Dtos/Anthropic/AnthropicInput.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 1432a6c0..12474b20 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 @@ -12,7 +12,7 @@ public sealed class AnthropicInput [JsonPropertyName("max_tokens")] public int? MaxTokens { get; set; } - [JsonPropertyName("messages")] public JsonElement? Messages { get; set; } + [JsonPropertyName("messages")] public IList Messages { get; set; } [JsonPropertyName("tools")] public IList? Tools { get; set; }