mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user