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

Ollama Python library

Results 226 ollama-python issues
Sort by recently updated
recently updated
newest added

I'd like to generate embeddings using a multimodal model such as llama3.2-vision or minicam-v for images and text, for instance a pdf document with embedded images. As far as I...

As well as allowing a custom httpx client, this also improves type safety in `Client` and `AsyncClient` - previously `self._client` implicitly had type of `None`.

This simple chat example fails: ``` from ollama import chat messages = [ { 'role': 'user', 'content': 'Why is the sky blue?', }, ] response = chat('llama3.2:3b', messages=messages) print(response['message']['content']) ```...

AsyncClient does not support being used within multiple event loops https://github.com/encode/httpx/issues/2058

Hello, developers of `ollama-python`! Thank you for your hard work and dedication to building such an awesome library. Keep it up! 🚀 I have a few questions about using multimodal...

`r.iter_lines()` may yield empty string, which results in JSONDecodeError and terminates the stream response. the stackstrace is as follows: ```txt File "/root/.pyenv/versions/3.10.16/lib/python3.10/concurrent/futures/_base.py", line 451, in result return self.__get_result() File "/root/.pyenv/versions/3.10.16/lib/python3.10/concurrent/futures/_base.py",...

I'm using an Nginx server to direct requests made with the Ollama Python library to different running Ollama servers. The Nginx server selects an Ollama server based on availability, among...

Follow up to: https://github.com/ollama/ollama/pull/8106

Related to issue [7985](https://github.com/ollama/ollama/issues/7985) and PR [8018](https://github.com/ollama/ollama/pull/8018)

Context: I tried to send chunked texts to an embedding model using Ollama and got the following error: ``` .venv/lib/python3.12/site-packages/ollama/_client.py", line 120, in _request_raw raise ResponseError(e.response.text, e.response.status_code) from None ollama._types.ResponseError:...