fix: 修复ai模型问题

This commit is contained in:
ccnetcore
2025-06-30 21:58:34 +08:00
parent ee53b3d9c4
commit 9a334101ca
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ public class AzureChatService : IChatService
var response = chatClient.CompleteChatStreamingAsync(messages, new ChatCompletionOptions() var response = chatClient.CompleteChatStreamingAsync(messages, new ChatCompletionOptions()
{ {
MaxOutputTokenCount = 2048 // MaxOutputTokenCount = 2048
}, cancellationToken: cancellationToken); }, cancellationToken: cancellationToken);
await foreach (StreamingChatCompletionUpdate update in response) await foreach (StreamingChatCompletionUpdate update in response)

View File

@@ -30,7 +30,7 @@ public class AzureRestChatService : IChatService
content = x.Content.FirstOrDefault()?.Text content = x.Content.FirstOrDefault()?.Text
}).ToList(), }).ToList(),
stream = true, stream = true,
max_tokens = 2048, // max_tokens = 2048,
// temperature = 0.8, // temperature = 0.8,
// top_p = 0.1, // top_p = 0.1,
// presence_penalty = 0, // presence_penalty = 0,