From bad3e53f06d20c49f107bf3745507438f4c76d76 Mon Sep 17 00:00:00 2001 From: mudler Date: Wed, 17 Apr 2024 12:45:02 +0200 Subject: [PATCH] Revert "this is not needed.. probably?" This reverts commit cac986d287ba88fb4d2effe864b5d18f8cca668d. --- agent/agent.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/agent/agent.go b/agent/agent.go index edb5af2..e949d1f 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -508,10 +508,10 @@ func (a *Agent) consumeJob(job *Job, role string) { // Force the AI to response without using any tool // Why: some models might be silly enough to attempt to call tools even if evaluated // that a reply was not necessary anymore - // a.currentConversation = append(a.currentConversation, openai.ChatCompletionMessage{ - // Role: "system", - // Content: "The assistant needs to reply without using any tool. " + replyResponse.Message, - // }) + a.currentConversation = append(a.currentConversation, openai.ChatCompletionMessage{ + Role: "system", + Content: "The assistant needs to reply without using any tool. " + replyResponse.Message, + }) // If we have a hud, display it if a.options.enableHUD {