NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #1027 most downloaded on PyPI
The official Python client for Ollama.
Last release 6 days ago
29 Sep 2026
Release timing varies
gaps range from 8 days to 6 months
Nearly every release is documented
notes for 35 of 36 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
36 releases · first in 2024
client: widen sync generate think type to accept string levels by @anxkhn in #697
Full Changelog: v0.6.2...v0.6.3
One column per month.
docs(readme): add Cloud Models Python usage and Cloud API example by @eden-chan in #595
Full Changelog: v0.6.1...v0.6.2
client/types: add logprobs support by @ParthSareen in #601
Full Changelog: v0.6.0...v0.6.1
client: add web search and web crawl capabilities by @ParthSareen in #578
client: add web search and web crawl capabilities by @ParthSareen in #578
client: load OLLAMA_API_KEY on init by @ParthSareen in #583
client/types: update web search and fetch API by @npardal in #584
examples: add mcp server for web_search web_crawl by @ParthSareen in #585
examples: gpt oss browser tool by @ParthSareen in #588
Full Changelog: v0.5.4...v0.6.0
examples: add gpt-oss browser example by @ParthSareen in #558
Full Changelog: v0.5.3...v0.5.4
add support for 'high'/'medium'/'low' think values by @drifkin in #553
Full Changelog: v0.5.2...v0.5.3
types/examples: add tool_name to message and examples by @ParthSareen in #537
types/examples: add tool_name to message and examples by @ParthSareen in #537
types: add context_length to ProcessResponse by @ParthSareen in #538
types: relax type for tools by @ParthSareen in #550
add license metadata to package by @ViViDboarder in #526
Full Changelog: v0.5.1...v0.5.2
fully add thinking support to generate() by @drifkin in #524
Full Changelog: v0.5.0...v0.5.1
add support for thinking by @drifkin in #521
use hatch instead of poetry by @mxyng in #445
Full Changelog: v0.4.8...v0.4.9
client: add support for passing in Image type to generate by @ParthSareen in #408
Full Changelog: v0.4.7...v0.4.8
client: remove sha256 as it's already available in the digest by @samhita-alla in https://github.com/ollama/ollama-python/pull/420
client: remove sha256 as it's already available in the digest by @samhita-alla in https://github.com/ollama/ollama-python/pull/420
client: improve error messaging on connection failure by @ParthSareen in https://github.com/ollama/ollama-python/pull/398
chore: bump httpx from 0.27.2 to 0.28.1 by @dependabot in https://github.com/ollama/ollama-python/pull/365
chore: ensure imports are sorted by @akx in https://github.com/ollama/ollama-python/pull/385
examples: fix create examples by @jmorganca in https://github.com/ollama/ollama-python/pull/421
examples: update create example by @ParthSareen in https://github.com/ollama/ollama-python/pull/418
fix: don't run lints on all Python versions by @akx in https://github.com/ollama/ollama-python/pull/400
fix: formatting & CI by @akx in https://github.com/ollama/ollama-python/pull/422
chore: add tests for checking sha in blob request by @ParthSareen in https://github.com/ollama/ollama-python/pull/425
Full Changelog: https://github.com/ollama/ollama-python/compare/v0.4.6...v0.4.7
add create api changes to support ollama v0.5.5 by @pdevine in https://github.com/ollama/ollama-python/pull/417
Full Changelog: https://github.com/ollama/ollama-python/compare/v0.4.5...v0.4.6
examples: remove extra print by @ParthSareen in https://github.com/ollama/ollama-python/pull/364
Full Changelog: https://github.com/ollama/ollama-python/compare/v0.4.4...v0.4.5
fix validation of format to allow empty strings as it did previously by @jmorganca in https://github.com/ollama/ollama-python/pull/369
format to allow empty strings as it did previously by @jmorganca in https://github.com/ollama/ollama-python/pull/369Full Changelog: https://github.com/ollama/ollama-python/compare/v0.4.3...v0.4.4
Improve tool example to showcase chatting by @ParthSareen in https://github.com/ollama/ollama-python/pull/352
Full Changelog: https://github.com/ollama/ollama-python/compare/v0.4.2...v0.4.3
Fix message append in example chat-with-history.py to overcome runtime error. by @shahil-yadav in https://github.com/ollama/ollama-python/pull/337
__contains__ by @jmorganca in https://github.com/ollama/ollama-python/pull/336Client.chat overloaded type annotations by @pythongirl325 in https://github.com/ollama/ollama-python/pull/344Full Changelog: https://github.com/ollama/ollama-python/compare/v0.4.1...v0.4.2
Fixed issue where message types would have a tool_calls field by membership test even if no tool calls were provided by the response.
tool_calls field by membership test even if no tool calls were provided by the response.Full Changelog: https://github.com/ollama/ollama-python/compare/v0.4.0...v0.4.1
Deprecate embeddings from docs in favor of embed by @royjhan in https://github.com/ollama/ollama-python/pull/216
Full Changelog: https://github.com/ollama/ollama-python/compare/v0.3.3...v0.4.0
_stream in async client raises RuntimeError when processing HTTP errors by @Oneirag in https://github.com/ollama/ollama-python/pull/266
Full Changelog: https://github.com/ollama/ollama-python/compare/v0.3.2...v0.3.3
Add URL path to client URL in in Client._parse_host() by @bplunkert in https://github.com/ollama/ollama-python/pull/170
Full Changelog: https://github.com/ollama/ollama-python/compare/v0.3.1...v0.3.2
update to llama3.1 by @jmorganca in https://github.com/ollama/ollama-python/pull/237
llama3.1 by @jmorganca in https://github.com/ollama/ollama-python/pull/237Message annotations to support tool calls by @Shulyaka in https://github.com/ollama/ollama-python/pull/227Full Changelog: https://github.com/ollama/ollama-python/compare/v0.3.0...v0.3.1
Simple Example by @royjhan in https://github.com/ollama/ollama-python/pull/179
api/embed by @royjhan in https://github.com/ollama/ollama-python/pull/208Full Changelog: https://github.com/ollama/ollama-python/compare/v0.2.1...v0.3.0
add done reason to generate type responses by @BruceMacD in https://github.com/ollama/ollama-python/pull/154
Full Changelog: https://github.com/ollama/ollama-python/compare/v0.2.0...v0.2.1
doc(README) : add prerequisites by @adriens in https://github.com/ollama/ollama-python/pull/45
[!NOTE] Generate and chat options
num_gqa,rope_frequency_base, andrope_frequency_scalehas been removed.
Full Changelog: https://github.com/ollama/ollama-python/compare/v0.1.9...v0.2.0
modified embeddings return annotation by @N-Vlahovic in https://github.com/ollama/ollama-python/pull/114
Full Changelog: https://github.com/ollama/ollama-python/compare/v0.1.8...v0.1.9
update httpx to 0.27.0 by @mxyng in https://github.com/ollama/ollama-python/pull/102
Full Changelog: https://github.com/ollama/ollama-python/compare/v0.1.7...v0.1.8
create example by @mxyng in https://github.com/ollama/ollama-python/pull/52
Full Changelog: https://github.com/ollama/ollama-python/compare/v0.1.6...v0.1.7
fix: encode base64 inputs by @mxyng in https://github.com/ollama/ollama-python/pull/50
Full Changelog: https://github.com/ollama/ollama-python/compare/v0.1.5...v0.1.6
update github actions by @mxyng in https://github.com/ollama/ollama-python/pull/32
Full Changelog: https://github.com/ollama/ollama-python/compare/v0.1.4...v0.1.5
update response error field to match json response by @mxyng in https://github.com/ollama/ollama-python/pull/17
Full Changelog: https://github.com/ollama/ollama-python/compare/v0.1.3...v0.1.4
> The base_url argument to ollama.Client and ollama.AsyncClient have been updated to match Ollama CLI. This also updates the keyword to host, for exam
[!IMPORTANT] The
base_urlargument toollama.Clientandollama.AsyncClienthave been updated to match Ollama CLI. This also updates the keyword tohost, for exampleollama.Client(host='http://my.remote.ollama').
Full Changelog: https://github.com/jmorganca/ollama-python/compare/v0.1.2...v0.1.3
s/target/destination/ by @mxyng in https://github.com/jmorganca/ollama-python/pull/9
Full Changelog: https://github.com/jmorganca/ollama-python/compare/v0.1.0...v0.1.2
fix: remote create new file by @BruceMacD in https://github.com/jmorganca/ollama-python/pull/8
Full Changelog: https://github.com/jmorganca/ollama-python/compare/v0.0.1...v0.1.0
Full Changelog: https://github.com/jmorganca/ollama-python/commits/v0.0.1
Full Changelog: https://github.com/jmorganca/ollama-python/commits/v0.0.1
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →