From 9d2a873abce95d4fa9b11bd567c245ee3429e093 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 10 Mar 2025 16:03:03 -0700 Subject: [PATCH] cohere --- core/llm/llms/Cohere.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/llms/Cohere.ts b/core/llm/llms/Cohere.ts index 1c895c2fe..86834cb74 100644 --- a/core/llm/llms/Cohere.ts +++ b/core/llm/llms/Cohere.ts @@ -117,7 +117,7 @@ class Cohere extends BaseLLM { } async rerank(query: string, chunks: Chunk[]): Promise { - const resp = await fetch(new URL("rerank", this.apiBase), { + const resp = await this.fetch(new URL("rerank", this.apiBase), { method: "POST", headers: { Authorization: `Bearer ${this.apiKey}`,