Skip to content
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

Katex fails to render math expressions from ChatGPT4. #1097

Open
haje01 opened this issue May 3, 2024 · 1 comment
Open

Katex fails to render math expressions from ChatGPT4. #1097

haje01 opened this issue May 3, 2024 · 1 comment
Labels
bug Something isn't working front This issue is related to the front-end of the app. help wanted Extra attention is needed

Comments

@haje01
Copy link

haje01 commented May 3, 2024

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 render

echo following text as is: $ D_i $ <- Successful

Thank you in advance.

@nsarrazin nsarrazin added bug Something isn't working front This issue is related to the front-end of the app. help wanted Extra attention is needed labels May 5, 2024
@nsarrazin
Copy link
Collaborator

Thanks for bringing this up!

I can reproduce the issue, but I'm not sure how we can tackle it. We use marked but I can't see an option for delimiters there. 👀

Would be open to ideas on how to fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working front This issue is related to the front-end of the app. help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants