micz / ThunderAI

ThunderAI is a Thunderbird Addon that uses the capabilities of ChatGPT or Ollama to enhance email management.
https://micz.it/thunderbird-addon-thunderai/
GNU General Public License v3.0
36 stars 9 forks source link

Ollama JSON parse error #142

Closed defaultsecurity closed 1 month ago

defaultsecurity commented 1 month ago

The problem

During trannsating a message, half-way througI got this error:

Ollama API request failed: JSON.parse: unterminated string at line 1 column 80 of the JSON data

I think it could be an escaping problem.

Which Operative System are you using?

Windows 11

Which version of Thunderbird are you using?

128.2.3esr

Which version of ThunderAI has the issue?

2.1.5

Which integration are you using?

Ollama API

Anything in the Thunderbird console logs that might be useful?

Ollama API request failed: JSON.parse: unterminated string at line 1 column 80 of the JSON data

Additional information

Ollama version 0.3.12

micz commented 1 month ago

May you activate the debug and post here the error log? May you also provide a prompt to replicate the error? Thank you.

micz commented 1 month ago

Maybe related to #145, this happens when the response is truncated. May you give the info requested?

micz commented 1 month ago

The problem will be fixes in 2.2.0, see #147.

micz commented 1 month ago

I've released version 2.2.0pre5, if you want to test it. See the changelog: https://github.com/micz/ThunderAI/releases/tag/v2.2.0pre5 Thank you.

micz commented 1 month ago

Fixed in version 2.2.0.