jan icon indicating copy to clipboard operation
jan copied to clipboard

bug: URIError: URI malformed when the language of response in the template

Open numlock1052 opened this issue 1 year ago • 1 comments

I just asked Jan with this request :

Donne moi un code Django d'une vue admin avec un model de type contact qui possède deux champ, first_name et last_name et qui inclu un template html django et la possibilité de choisir les colonnes visibles

I configured the template with these settings :

[INST] answer in french {prompt} [/INST]

I used the Mistral model downloaded from the Hub and if the Stream setting is enabled the client raises this error :

image

If the Stream is enabled :

image

If the Stream is disabled :

image

I did the test in the German language, we have another error in the terminal but it's finishing the response, but the content is not the same, so it's not relevant...

image

URIError: URI malformed
Please report this to https://github.com/markedjs/marked.
    at decodeURIComponent (<anonymous>)
    at _Renderer.code (page-e1f7c19f030c0381.js:3467:1130)
    at renderer.<computed> [as code] (178-3df7d54a6164e6f3.js:76460:48)
    at _Parser.parse (178-3df7d54a6164e6f3.js:76126:42)
    at parse (178-3df7d54a6164e6f3.js:76086:23)
    at Marked. parse (178-3df7d54a6164e6f3.js:76582:28)
    at SimpleTextMessage (page-e1f7c19f030c0381.js:3471:31)
    at Mf (618f8807-c0370e0f50991ad5.js:115:143)
    at Bh (618f8807-c0370e0f50991ad5.js:164:172)
    at Ah (618f8807-c0370e0f50991ad5.js:161:204)

numlock1052 avatar Feb 17 '24 11:02 numlock1052

cc: @urmaur, regarding MarkedJS.

louis-jan avatar Mar 07 '24 17:03 louis-jan

hi @numlock1052, we resolved the issue and tested as of Jan v0.4.9-343

Would you be able to try it out? feel free to reopen the issue if the issue persist 🙏

Van-QA avatar Mar 26 '24 08:03 Van-QA