Skip to content

Commit da850ea

Browse files
author
Jicheng Lu
committed
minor change
1 parent c0cd238 commit da850ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.Summary.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public async Task<string> GetConversationSummary(IEnumerable<string> conversatio
2727
contents.Add(content);
2828
}
2929

30+
if (contents.IsNullOrEmpty()) return string.Empty;
31+
3032
var router = await agentService.LoadAgent(AIAssistant);
3133
var prompt = GetPrompt(router, contents);
3234
var summary = await Summarize(router, prompt);

0 commit comments

Comments
 (0)