Comparing version 0.4.3 to 0.4.4
@@ -296,5 +296,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const response = yield utils.post(this.fetch, `${this.config.host}/api/embeddings`, { | ||
request, | ||
}); | ||
const response = yield utils.post(this.fetch, `${this.config.host}/api/embeddings`, Object.assign({}, request)); | ||
const embeddingsResponse = (yield response.json()); | ||
@@ -301,0 +299,0 @@ return embeddingsResponse; |
{ | ||
"type": "module", | ||
"name": "ollama", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "Ollama Javascript library", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
@@ -308,3 +308,3 @@ import * as utils from './utils.js' | ||
const response = await utils.post(this.fetch, `${this.config.host}/api/embeddings`, { | ||
request, | ||
...request, | ||
}) | ||
@@ -311,0 +311,0 @@ const embeddingsResponse = (await response.json()) as EmbeddingsResponse |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
150117
1345