From 750bed5144e5720d698b33cecdcb4492b18f0e9c Mon Sep 17 00:00:00 2001 From: localai-bot <139863280+localai-bot@users.noreply.github.com> Date: Wed, 25 Feb 2026 23:44:56 +0000 Subject: [PATCH] fix: assign to intentionMessages instead of messages (ineffectual assignment) The code was assigning to 'messages' but then using 'intentionMessages' throughout the rest of the function. This caused a golang-ci lint error. Closes #42 --- tools.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools.go b/tools.go index 435281b..06ca889 100644 --- a/tools.go +++ b/tools.go @@ -475,7 +475,7 @@ func pickTool(ctx context.Context, llm LLM, fragment Fragment, tools Tools, opts intentionMessages := messages if reasoning != "" { - messages = append(intentionMessages, openai.ChatCompletionMessage{ + intentionMessages = append(intentionMessages, openai.ChatCompletionMessage{ Role: "assistant", Content: reasoning, })