-
-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mangling of code in response and prompt display (and copying out) #51
Comments
That's caused by converting markdown to HTML. I think both Bing and ChatGPT would have the same behavior. Asking it to put the code in a markdown code block instead is the correct solution to this issue. |
You can see it's even broken in your reply above as well ;) |
lol, ok I'm not familiar with Markdown. I can see it was mangled here too. Though even my input is mangled, so the prompt looks bad (I suppose Bing receives it correctly). So the display would also be partly wrong if bing puts it in a code box. In my cases Bing did create code boxes, just not about everything. So some parts were outside (and damaged). Maybe a developer view would be the solution which removes all formating ? |
@cmp-nct you just gave me an idea to add a button that toggles between the "raw" response and the rendered response. Then you'd be able to copy it correctly. Would that work? |
Sounds like a great feature, yes. I guess disabling italic wouldn't solve it as underscores are also affected. It would be nice if we had a "middle ground" that disables the majority of formating but still allows stuff like code boxes or smileys to be displayed. |
I've been testing a bit but I have no knowledge of the framework you use, a bit stuck. Maybe I'm at a dead end here with the approach and your raw view idea is the only proper solution without changing the parser to entirely ignore those characters. In chat.vue:
at const handleMessageResult:
It escapes those two characters |
Latest dev version:
Input: cache.buf.resize(2un_elementsggml_type_size(wtype) + 2uMB);
Output: cache.buf.resize(2un_elementsggml_type_size(wtype) + 2uMB);
This happens with the prompt as well as when Bing answers, I'm quite sure the answer contains the correct code but the multiplications are removed.
Only when displayed in a "code box" it's working.
It's not just a visual bug, also when copy/paste the multiplications are gone.
So something is removing characters.
The text was updated successfully, but these errors were encountered: