From b8becca94542c0fabb384df4712f0b72551b67d7 Mon Sep 17 00:00:00 2001 From: Jicheng Lu Date: Sun, 26 May 2024 22:20:56 -0500 Subject: [PATCH] minor change --- .../Conversations/Services/ConversationService.Summary.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.Summary.cs b/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.Summary.cs index d76678cc..4a547204 100644 --- a/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.Summary.cs +++ b/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.Summary.cs @@ -30,8 +30,8 @@ public partial class ConversationService private async Task Summarize(Agent agent, string prompt, List 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) {