diff --git a/src/index.ts b/src/index.ts index a5f335f..28b3f58 100644 --- a/src/index.ts +++ b/src/index.ts @@ -305,7 +305,7 @@ export class Ollama { async embeddings(request: EmbeddingsRequest): Promise { const response = await utils.post(this.fetch, `${this.config.host}/api/embeddings`, { - request, + ...request, }) const embeddingsResponse = (await response.json()) as EmbeddingsResponse return embeddingsResponse