Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ollama

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ollama - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

4

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc