## TL;DR

Upgrade to a release containing that fix and it should just work again. _Source: https://github.com/huggingface/smolagents/issues/354 (Hugging Face smolagents)_ 1.5.0 shipped a regression that broke Ollama support, fixed in PR #406.

## Steps

1. If your Ollama-backed smolagents agent worked on 1.4.1 and broke after upgrading to 1.5.0, do not debug your model config. 1.5.0 shipped a regression that broke Ollama support, fixed in PR #406. Upgrade to a release containing that fix and it should just work again.

2. _Source: https://github.com/huggingface/smolagents/issues/354 (Hugging Face smolagents)_

## When to use

You are seeing this: If your Ollama-backed smolagents agent worked on 1.4.1 and broke after upgrading to 1.5.0, do not debug your model config. Use this skill when you run into "smolagents 1.5.0 broke Ollama support (regression, fixed in #406)".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

Versions mentioned in the source: 1.4.1, 1.5.0. If you are on something much newer or older, the details may have shifted.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Sources

- https://github.com/huggingface/smolagents/issues/354
