feat: 新增文件夹
This commit is contained in:
@@ -20,6 +20,7 @@ namespace Yi.Framework.ChatHub.Application.Services
|
||||
/// <summary>
|
||||
/// ai聊天
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <param name="chatContext"></param>
|
||||
/// <returns></returns>
|
||||
[Authorize]
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace Yi.Framework.ChatHub.Domain.Managers
|
||||
|
||||
var openSettings = new AzureOpenAIPromptExecutionSettings()
|
||||
{
|
||||
MaxTokens = 1000,
|
||||
MaxTokens = 3000,
|
||||
//MaxTokens = 1000
|
||||
};
|
||||
|
||||
@@ -51,14 +51,9 @@ namespace Yi.Framework.ChatHub.Domain.Managers
|
||||
executionSettings: openSettings,
|
||||
kernel: _client.Kernel);
|
||||
|
||||
if (results is null)
|
||||
{
|
||||
yield return null;
|
||||
}
|
||||
|
||||
await foreach (var result in results)
|
||||
{
|
||||
yield return result.Content;
|
||||
yield return result?.Content;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user