remove conversation header

This commit is contained in:
Jicheng Lu 2024-06-04 11:33:41 -05:00
parent 1d219d86d6
commit ac8c9749b4

View file

@ -41,10 +41,10 @@ public partial class ConversationService
var template = agent.Templates.First(x => x.Name == "conversation.summary").Content;
var render = _services.GetRequiredService<ITemplateRender>();
var texts = string.Empty;
var texts = new List<string>();
for (int i = 0; i < contents.Count; i++)
{
texts += $"[Conversation {i+1}]\r\n{contents[i]}";
texts.Add($"{contents[i]}");
}
return render.Render(template, new Dictionary<string, object>