minor change
This commit is contained in:
parent
6c5be6da63
commit
b8becca945
|
|
@ -30,8 +30,8 @@ public partial class ConversationService
|
|||
|
||||
private async Task<string> Summarize(Agent agent, string prompt, List<RoleDialogModel> dialogs)
|
||||
{
|
||||
var provider = agent.LlmConfig.Provider;
|
||||
var model = agent.LlmConfig.Model;
|
||||
var provider = agent?.LlmConfig?.Provider;
|
||||
var model = agent?.LlmConfig?.Model;
|
||||
|
||||
if (provider == null || model == null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue