feat: 支持 gpt-5.1-chat 模型的特殊处理
- 将模型判断从仅 "o1" 扩展为 "gpt-5.1-chat" 或 "o1",对这些模型将 Temperature 置为 null。 - 微调了 User-Agent 字符串的空格并做了小范围的格式清理(增加空行以提升可读性)。
This commit is contained in:
@@ -44,6 +44,7 @@ namespace Yi.Framework.AiHub.Domain
|
||||
nameof(OpenAiChatCompletionsService));
|
||||
services.AddKeyedTransient<IChatCompletionService, ClaudiaChatCompletionsService>(
|
||||
nameof(ClaudiaChatCompletionsService));
|
||||
|
||||
#endregion
|
||||
|
||||
#region Anthropic ChatCompletion
|
||||
@@ -75,7 +76,7 @@ namespace Yi.Framework.AiHub.Domain
|
||||
{
|
||||
options.Handles.Add(request =>
|
||||
{
|
||||
if (request.Model == "o1")
|
||||
if (request.Model == "gpt-5.1-chat" || request.Model == "o1")
|
||||
{
|
||||
request.Temperature = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user