feat: 完成节点改造

This commit is contained in:
ccnetcore
2025-06-19 14:17:24 +08:00
parent 899bd7e316
commit c3cf49c63e
2 changed files with 8 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.ChatCompletion;
using Microsoft.SemanticKernel.Connectors.AzureOpenAI;
using Microsoft.SemanticKernel.Connectors.OpenAI;
using Volo.Abp.DependencyInjection;
using Yi.Framework.ChatHub.Domain.Shared.Dtos;
@@ -23,8 +24,10 @@ namespace Yi.Framework.ChatHub.Domain.Managers
yield return null;
}
var openSettings = new OpenAIPromptExecutionSettings()
var openSettings = new AzureOpenAIPromptExecutionSettings()
{
MaxTokens = 1000,
//MaxTokens = 1000
};