Ollama – v0.20.4: responses: add support for fn call output arrays (#15406)
Ollama Update: v0.20.4 is here! ๐ ๏ธ
If you’re running LLMs locally, listen up! The latest release of Ollama focuses on making function calls much more reliable and expanding how the engine handles complex data structures. No more unexpected crashes when your model tries to return a list instead of a single string.
Whatโs new in v0.20.4:
- Enhanced Function Call Support: The engine now supports arrays for function call outputs. Previously, it only handled strings, which caused errors when the output contained multiple pieces of data.
- Multi-Content Array Support: Beyond just text, the update adds support for arrays containing both image and text content. This makes response handling much more robust for complex, multi-modal tasks. ๐ผ๏ธ
- Critical Bug Fix: Specifically resolves the `json: cannot unmarshal array into Go struct field` error that was breaking workflows whenever models returned structured list data.
A quick heads-up for the tinkerers: While this adds great support for text and image content, interleaving (mixing) images and text within these specific arrays is currently limited. Also, keep an eye outโfile content support is slated for a future update! ๐
