From a76608697292cacb90b3048884248576b7c8918a Mon Sep 17 00:00:00 2001 From: Simone Vellei Date: Thu, 21 Dec 2023 11:28:53 +0100 Subject: [PATCH] fix --- llm/openai/legacy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/llm/openai/legacy.go b/llm/openai/legacy.go index bdc16399..141c6727 100644 --- a/llm/openai/legacy.go +++ b/llm/openai/legacy.go @@ -280,6 +280,7 @@ func (o *Legacy) Chat(ctx context.Context, prompt *chat.Chat) (string, error) { } if len(o.functions) > 0 { + //nolint:staticcheck chatCompletionRequest.Functions = o.getFunctions() }