Skip to content

Commit

Permalink
fix: embeddings request parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
BruceMacD committed Jan 26, 2024
1 parent 710b027 commit 13d5ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export class Ollama {

async embeddings(request: EmbeddingsRequest): Promise<EmbeddingsResponse> {
const response = await utils.post(this.fetch, `${this.config.host}/api/embeddings`, {
request,
...request,
})
const embeddingsResponse = (await response.json()) as EmbeddingsResponse
return embeddingsResponse
Expand Down

0 comments on commit 13d5ae8

Please sign in to comment.