cohere
This commit is contained in:
parent
f0cae280e4
commit
9d2a873abc
1 changed files with 1 additions and 1 deletions
|
|
@ -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}`,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue