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

[issue 89](https://github.com/ollama/ollama-js/issues/89) Refactor the encodeImage function to fix a bug where large Uint8Arrays could cause a RangeError due to exceeding the maximum argument length of String.fromCharCode.apply. The new implementation iterates...

The current implementation of the [encodeImage](https://github.com/ollama/ollama-js/blob/main/src/browser.ts#L113) function may encounter issues when handling large Uint8Array inputs due to the use of Function.prototype.apply. This can result in a RangeError: Maximum call stack...

Closes https://github.com/ollama/ollama-js/issues/95

Personally, I would find this much more intuitive. It would also allow for making multiple streamable requests at once while still being able to abort them

While using ollama-js, I've found myself referring to the [Ollama API docs](https://github.com/ollama/ollama/blob/main/docs/api.md) to see exactly when certain fields are provided in the response, but I believe ollama-js should be aiming...

- Added constants and removed dangling strings (not all 🤣) for better code comprehensibility. - cleaned up the `browser.ts` file - cleaned up the `index.ts` file for better readability -...