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.
This commit is contained in:
BBQ
2026-02-01 15:53:13 +08:00
parent a7700e1959
commit dcce0617a3
+1 -1
View File
@@ -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
}