From e8523a2b07c7a5d1539138ee8e4a4836fea7a36b Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 19 May 2025 08:55:34 +0000 Subject: [PATCH] fix: reverted the url of llama.cpp back to 'completion'. --- core/llm/llms/LlamaCpp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/llms/LlamaCpp.ts b/core/llm/llms/LlamaCpp.ts index 4833405ae..a8b7e08b3 100644 --- a/core/llm/llms/LlamaCpp.ts +++ b/core/llm/llms/LlamaCpp.ts @@ -35,7 +35,7 @@ class LlamaCpp extends BaseLLM { ...this.requestOptions?.headers, }; - const resp = await this.fetch(new URL("completions", this.apiBase), { + const resp = await this.fetch(new URL("completion", this.apiBase), { method: "POST", headers, body: JSON.stringify({