From f4a32aacc9036d68f66680a78b84c9749429e7f4 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 3 Nov 2026 19:05:50 +0000 Subject: [PATCH] test(openai): pass the compressor argument in the require_tool spec ChatEndpoint gained a compressor parameter after the spec was written, so the openai test package no longer compiled. Assisted-by: Claude:claude-sonnet-5-5 go golangci-lint Signed-off-by: Ettore Di Giacinto --- core/http/endpoints/openai/chat_require_tool_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/http/endpoints/openai/chat_require_tool_test.go b/core/http/endpoints/openai/chat_require_tool_test.go index 29aacd9e86..ae937fe315 100644 --- a/core/http/endpoints/openai/chat_require_tool_test.go +++ b/core/http/endpoints/openai/chat_require_tool_test.go @@ -121,7 +121,7 @@ var _ = Describe("ChatEndpoint profile require_tool", func() { c := e.NewContext(httptest.NewRequest(http.MethodPost, "/v1/chat/completions", strings.NewReader("{}")), rec) c.Set(middleware.CONTEXT_LOCALS_KEY_LOCALAI_REQUEST, input) c.Set(middleware.CONTEXT_LOCALS_KEY_MODEL_CONFIG, cfg) - Expect(ChatEndpoint(nil, nil, templates.NewEvaluator(dir), config.NewApplicationConfig(), nil, nil, nil)(c)).To(Succeed()) + Expect(ChatEndpoint(nil, nil, templates.NewEvaluator(dir), config.NewApplicationConfig(), nil, nil, nil, nil)(c)).To(Succeed()) return rec }