mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-06 04:23:15 -05:00
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 <mudler@localai.io>
This commit is contained in:
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user