Katex fails to render math expressions from ChatGPT4. #1097
Labels
bug
Something isn't working
front
This issue is related to the front-end of the app.
help wanted
Extra attention is needed
I am using Chat UI version 0.8.3 and ChatGPT version gpt-4-turbo-2024-04-09.
ChatGPT is outputting formula delimiters as
\[
,\]
,\(
,\)
and katex in the current version of ChatUI is not rendering them correctly. Based on my experiments, katex renders only formulas with$
delimiters correctly.I did a quick test with the following prompts
echo following text as is: \[ D_i \]
<- Fail to renderecho following text as is: $ D_i $
<- SuccessfulThank you in advance.
The text was updated successfully, but these errors were encountered: