mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
ollama.chat() should accept images for vision model support #268
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Syntax-Read3r on GitHub (May 13, 2025).
Summary
The current
ollamaPython package does not support theimagesparameter when callingollama.chat(). This is required for working with vision-enabled models such asllama3.2-visionandllava.This limitation forces developers to bypass the client and use raw HTTP requests to
http://localhost:11434/api/chat, which is less ergonomic and breaks the abstraction the package aims to provide.Steps to Reproduce