mirror of
https://github.com/ollama/ollama.git
synced 2026-04-23 01:05:47 +02:00
When server returns a 500 error (often due to tool parsing failures), instead of failing, send the error message and the model's response back to the model so it can learn and retry. - Includes both error message and model's failed response - Limits to 3 consecutive retries to prevent infinite loops - Resets retry counter on successful responses