fix: 修复ai模型问题
This commit is contained in:
@@ -28,7 +28,7 @@ public class AzureChatService : IChatService
|
||||
|
||||
var response = chatClient.CompleteChatStreamingAsync(messages, new ChatCompletionOptions()
|
||||
{
|
||||
MaxOutputTokenCount = 2048
|
||||
// MaxOutputTokenCount = 2048
|
||||
}, cancellationToken: cancellationToken);
|
||||
|
||||
await foreach (StreamingChatCompletionUpdate update in response)
|
||||
|
||||
@@ -30,7 +30,7 @@ public class AzureRestChatService : IChatService
|
||||
content = x.Content.FirstOrDefault()?.Text
|
||||
}).ToList(),
|
||||
stream = true,
|
||||
max_tokens = 2048,
|
||||
// max_tokens = 2048,
|
||||
// temperature = 0.8,
|
||||
// top_p = 0.1,
|
||||
// presence_penalty = 0,
|
||||
|
||||
Reference in New Issue
Block a user