ztjhz / BetterChatGPT

An amazing UI for OpenAI's ChatGPT (Website + Windows + MacOS + Linux)
http://bettergpt.chat/
Creative Commons Zero v1.0 Universal
8.19k stars 2.77k forks source link

Latex/Mathjax Formula Support #514

Open djg123 opened 10 months ago

djg123 commented 10 months ago

When you ask GPT about math questions, sometimes in responds using Mathjax. Here is an example from a response from GPT 4:

The user goes on to explain that if the variables are normalized in mean, matrix ( \frac{1}{m} A^T A ) is an estimator for the covariance between the variables. The notation ( s_{j1 j2} ) represents the estimated covariance between two variables ( a \cdot j1 ) and ( a \cdot j2 ), where ( E(a \cdot j1 a \cdot j2) ) is the expectation of the product of these two variables. The approximation ( \approx \frac{1}{m}\sum a_{j1} a_{j2} ) indicates that the covariance is approximated by the average of the product of corresponding values from these two variables.

So, this request is for the ability for bettergpt to display notation such as: ( E(a \cdot j1 a \cdot j2) ) as 𝑎⋅𝑗⁢1. The mathjax library will probably be helpful: https://www.mathjax.org/.

mmiddlezong commented 7 months ago

I am also having this issue. Will the pull request be merged soon?