mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-20 14:14:26 -04:00
ShowResponse ValidationError when /api/show omits model_info (cloud models) #310
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 @hcal on GitHub (Dec 24, 2025).
Originally assigned to: @BruceMacD on GitHub.
Summary
The Ollama Python client raises a Pydantic ValidationError when
/api/showresponses omitmodel_info. This happens with some cloud models and breaks downstream tools that callollama.show()(e.g.,llm-ollama).The
llm-ollamamaintainer recommended filing this here: https://github.com/taketwo/llm-ollama/issues/65#issue-3760612718Steps to Reproduce
Observed Behavior
Response is valid JSON but missing
model_info, and the Python client fails with:pydantic_core._pydantic_core.ValidationError: 1 validation error for ShowResponse
model_info Field required [type=missing, input_value={...}, input_type=dict]
Example /api/show response (missing model_info)
Models observed missing model_info
Other cloud models (e.g.,
gpt-oss:120b-cloud) returnmodel_infoas expected.Versions