I have a privately deployed streamlit app that uses GPT-4o API to get information on a stock. GPT is outputting the response in markdown format. When the response contains two $ signs, the format switches to LaTeX. For example, this generated response from GPT contains $ signs:
“The premium of $4.8 is the price at which the option is trading in the market. This suggests that option traders value the potential to buy SPXL at $135 in the future (if it’s a call option) at $4.8 per share.”
When using either st.write or st.markdown to write the response to my streamlit app, the response looks like this:
Apologies, I meant to say that I used the backslash “\”. The format still shows incorrectly. Interestingly, when I write to a different page without GPT response and include backslash, the problem isn’t persisting. Is it possible to be because of something with the GPT response?