fix: 修复Anthropic接口TokenUsage序列化及HttpClient创建方式问题

This commit is contained in:
ccnetcore
2025-10-12 14:38:26 +08:00
parent 2a81062fa3
commit 5934056fe6
3 changed files with 8 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ public class AnthropicChatCompletionsService(IHttpClientFactory httpClientFactor
options.Endpoint = "https://api.anthropic.com/";
}
var client = HttpClientFactory.GetHttpClient(options.Endpoint);
var client = httpClientFactory.CreateClient();
var headers = new Dictionary<string, string>
{