From dcce0617a39feb0f76c24454689b277b7fb99760 Mon Sep 17 00:00:00 2001 From: BBQ Date: Sun, 1 Feb 2026 15:53:13 +0800 Subject: [PATCH] fix(memory): correct mock server path in LLM client test The LLM client's callChat method appends "/chat/completions" to the base URL. The test's mock server was expecting "/v1/chat/completions", causing a 404 error during testing. This commit aligns the mock server path with the actual client implementation. --- internal/memory/llm_client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/memory/llm_client_test.go b/internal/memory/llm_client_test.go index 301d1dc4..7aa20b1b 100644 --- a/internal/memory/llm_client_test.go +++ b/internal/memory/llm_client_test.go @@ -11,7 +11,7 @@ func TestLLMClientExtract(t *testing.T) { t.Parallel() server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - if r.URL.Path != "/v1/chat/completions" { + if r.URL.Path != "/chat/completions" { w.WriteHeader(http.StatusNotFound) return }