Closed danielj-n closed 2 months ago
I did some digging and unfortunately I think this might be an issue with the newly added latex formatting feature (-- in latex becomes a "em dash"). I commented out msg = format_latex(msg)
in printer.py
and it seems like that removed the issue.
Would the easiest solution just be to prevent latex formatting in code blocks entirely? I don't see why it ever would need to be in code blocks.
Wrote a small fix, it seems to work. It is a little messy since it uses string replacements. Let me know how I can improve it.
This fix also means latex is no longer formatted in code blocks when chatgpt is writing latex in code blocks. But I think this is actually desirable behavior since it tends to only stick things in codeblocks that are meant to be unformatted.
fixed in 0.6.3
pip has it, homebrew takes a few hours
Thx a lot, if you do see any more issues let me know. As mentioned would consider just making latex step opt in.
For some reason some of the formatting in my code blocks is off.
I am using
chatblade -s -i
on gpt-4o however I had similar issues on 3.5 recently too.Version is chatblade 0.6.2 on archlinux from the package
extra/chatblade
. I'm using bash in the alacritty terminal emulator.The most common and easily reproducible one happens whenever I request bash code that uses "--" ie.
give me some examples of linux commands using --
. This returns badly formatted results like this:From looking at the stream text before the formatting it looks like chatgpt formatted it correctly
Does anyone know why this might be?