[FIX] AttributeError: 'str' object has no attribute 'value' when giving a text file as an attachment in certain conditions in self-hosted Khoj with Ollama models #1071
Labels
fix
Fix something that isn't working as expected
Describe the bug
When giving any text file as an attachment, and asking for a translation or a summary, in certain conditions (couldn't isolate why), the following error is produced in server-1 :
This happens with different files of different length, with different models (Mistral or Qwen2.5 coding); but not with every agent. Some agents using the same models might not have the error. Here is the agent that gives me the error almost every time :
I tried Mistral and Qwen with this agent, small and long text files, but the problem remains.
To Reproduce
Platform
If self-hosted
The text was updated successfully, but these errors were encountered: