diff --git a/llm_ollama.py b/llm_ollama.py index a0e79e6..8ea5f97 100644 --- a/llm_ollama.py +++ b/llm_ollama.py @@ -166,7 +166,9 @@ def build_messages(self, prompt, conversation): for attachment in prev_response.attachments ] - messages.append({"role": "assistant", "content": prev_response.text()}) + messages.append( + {"role": "assistant", "content": prev_response.text_or_raise()} + ) if prompt.system and prompt.system != current_system: messages.append({"role": "system", "content": prompt.system}) messages.append({"role": "user", "content": prompt.prompt}) diff --git a/pyproject.toml b/pyproject.toml index d431709..17eaccf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "llm-ollama" -version = "0.8.0" +version = "0.8.1" description = "LLM plugin providing access to local Ollama models" readme = "README.md" authors = [{ name = "Sergey Alexandrov" }]