mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
cant support deepseek-ocr model #307
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 @justwangweimin on GitHub (Dec 10, 2025).
直接调用,不设置超时和复杂选项
the program will hung in this place
ollama can support deepseek-ocr,
but ollama-python can't support deepseek-ocr?
@darth-raijin commented on GitHub (Dec 17, 2025):
I managed to reproduce this and it looks prompt-dependent.
I tested it two ways:
ollama-pythonSo it doesn’t seem client-specific, as I could consistently cause "hangs" for both entrypoints.
What am I seeing?
extract the textextract the text.(same prompt, just with a trailing period)This also happens when calling the server directly, so my guess is the issue is in the Ollama server / model behavior rather than the Python client.
I haven’t dug deeper yet, but it doesn’t feel like intended behavior. Could you confirm if it works by adding a period at the end of your prompt?
A reasonable next step might be to add a small integration test on the server side that calls
/api/generateto see if the behaviour can be reproduced in automated tests tooOllama server version: 0.13.4
Ollama python version: 0.6.1