feat: 完成ai接口

This commit is contained in:
ccnetcore
2025-06-19 21:24:13 +08:00
parent b39f15c798
commit 8040010b98
8 changed files with 438 additions and 2 deletions

View File

@@ -27,8 +27,7 @@ namespace Yi.Framework.ChatHub.Domain.Managers
var openSettings = new AzureOpenAIPromptExecutionSettings()
{
MaxTokens = 3000,
//MaxTokens = 1000
MaxTokens = 3000
};
var chatCompletionService = this._client.Kernel.GetRequiredService<IChatCompletionService>(model);