Open Tobias4Real opened 1 month ago
And the following error in the nextcloud log: Smart reply failed: Failed to decode smart replies JSON output
The reason that this happens is that the LLM wraps the json it responds with in a code fence:
"```json
Good catch, Tobias. It might be possible to avoid the fence with a better prompt or unwrapping on our end.
Steps to reproduce
Enable text processing through LLMs in groupware administrator settings.
Expected behavior
Smart replies will be generated and shown
Actual behavior
No smart replies are shown, but thread summaries do work.
Mail app version
4.0.1
Mailserver or service
private
Operating system
Fedora Linux 40 (Workstation Edition)
PHP engine version
PHP 8.3
Web server
Nginx
Database
PostgreSQL
Additional info
I get the following error in the javascript console:
TypeError: right-hand side of 'in' should be an object, got undefined convertAxiosError convert.js:30 smartReply AiIntergrationsService.js:37 fetchMessage ThreadEnvelope.vue:394 mounted ThreadEnvelope.vue:315 VueJS 18 addEnvelopes mutations.js:301 addEnvelopes mutations.js:295 wrappedMutationHandler vuex.esm.js:844 commitIterator vuex.esm.js:466 commit vuex.esm.js:465 _withCommit vuex.esm.js:624 commit vuex.esm.js:464 boundCommit vuex.esm.js:409 fetchEnvelopes actions.js:646 vue.runtime.esm.js:3065
And the following error in the nextcloud log: Smart reply failed: Failed to decode smart replies JSON output
The reason that this happens is that the LLM wraps the json it responds with in a code fence:
"```json