ollama-js icon indicating copy to clipboard operation
ollama-js copied to clipboard

Ollama JavaScript library

Results 26 ollama-js issues
Sort by recently updated
recently updated
newest added

(Just logging a quick issue in case I don't get to a PR) Some of the methods use weird overloads instead of generics and then call generics, this can make...

enhancement
help wanted

Hi, I was running a chat in a loop every 5 seconds. ```js setInterval(async () =>{ const request = `... some long text ...`; const response = await ollama.chat({ model:...

When i run node demo.js,and then: /User/xxx/Demo/aidemo/node_modules/whatwg-fetch/dist/fetch.umd.js:540 var xhr = new XMLHttpRequest(); ^ ReferenceError: XMLHttpRequest is not defined

I keep on getting cause: HeadersTimeoutError: Headers Timeout Error when I am trying to request homellm model ``` cause: HeadersTimeoutError: Headers Timeout Error at Timeout.onParserTimeout [as callback] (node:internal/deps/undici/undici:8228:32) at Timeout.onTimeout...

I would like to pass an auth key to a custom llm connection

Code: ```js import ollama from 'ollama' const response = await ollama.chat({ model: 'llama3:8b', format: 'json', messages: [{ role: 'user', content: 'What color is the sky at different times of the...

The following message is displayed when installing ‘npm i ollama’ and then packing with electron: • electron-builder version=24.5.2 os=10.0.19045 • loaded configuration file=package.json ("build" field) • description is missed in...

I'm trying to use ollama-js/browser in my application writing in TS. I'm running this app on my computer, with the ollama server and apache. I created a vhost, so I...

bug

Hello, in the documents it is unclear what time units is used for `keep_alive` property. In JS duration usually set as seconds \ milliseconds, but in generation response, for example,...

had a need to add custom headers to pass an authentication token to our ollama proxy server please take a look and edit as you all see fit