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

in python I need a way to confirm the parameters or options that I set. if you got some time on your hands add a command in python that can...

As the subject says, the `Client.ps` method doesn't work through OpenWebUI. I'm using python 3.10 under jupyter on Ubuntu 22.04, with ollama-python 0.4.7. The server is running Ubuntu 24.04, ollama...

According to api doc for ollama, it says there should `name` key indicating model name. https://github.com/ollama/ollama/blob/main/docs/api.md#response-25 But in the Python client, https://github.com/ollama/ollama-python/blob/07eec6d517b95ef49fda672d8a533cb01a56b2fa/ollama/_types.py#L435 It does not have `name` key but rather...

The ollama CLI supports a `--verbose` mode, which prints some stats at the end of the chat response. e.g. `ollama run 'llama3.2' --verbose` I can't find support for this function...

Hi all! Quick question/feature request: Can I stop running a model while it's running? (aka cancel a request) Sometimes my model takes so long to process, and new information comes...

Phi-4-mini tools call is in system role , but Ollama not support ? Can you upgrade the tools to support this ?

There is currently no easy way to get all of the models available in Ollama library. Few methods that should list all models only list downloaded models. Created a bash...

Is wheels for ollama will streamline is installation and use in ollama supported tools. CUDA is available via pip install for example, so its not new to package non python...

Capping the Python version (e.g. `=`.

According to [example](https://github.com/ollama/ollama-python/blob/main/examples/tools.py) and definition of Message model, it seems like there is no way to actually represent executed tool message as a Message model, only using dictionary? I'm arriving...