This commit is contained in:
Dallin Romney 2025-03-10 16:03:03 -07:00
parent f0cae280e4
commit 9d2a873abc

View file

@ -117,7 +117,7 @@ class Cohere extends BaseLLM {
}
async rerank(query: string, chunks: Chunk[]): Promise<number[]> {
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}`,