Panic for now if agent config is failing

Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
mudler
2024-12-15 18:14:13 +01:00
parent 6318f1aa97
commit d053dc249c
2 changed files with 3 additions and 0 deletions

View File

@@ -156,6 +156,8 @@ func (a *Agent) ResetConversation() {
defer a.Unlock()
// store into memory the conversation before pruning it
// TODO: Shall we summarize the conversation into a bullet list of highlights
// using the LLM instead?
if a.options.enableKB {
for _, message := range a.currentConversation {
if message.Role == "user" {