v0.5.1
Bug fix
This release fixes a bug reported with issue #11
The bug occurred when a retry was executed due to an invalid response from the LLM.
As the Ollama server expects string objects for content in the messages list, the method prepare_messages of BaseOllamaInstructorClient was falsely handing over python objects for the retry.
It's recommended that everyone using version v0.5.0 updates to v0.5.1
Note:
What changed?
- Due to new version 0.4.1 of
ollamaI had to bump the pydantic version to^2.9.0as this is a dependency ofollama. So I had to refactor the functioncreate_partial_modelincleaner.py - Refactored the type hints regarding the
messagesargument.
Warnings!
- Unfortunately, with the new versions 0.4.1 of
ollamathe methodchat_completion_with_streamofOllamaInstructorClientis broken. I will try to finde a fix. I marked the method asdeprecated. Please usechat_completioninstead. Older versions ofollama-instructorwith usingollamaversions below 0.4.0 should work. I am sorry for the inconvenience!