Closed RostyslavManko closed 3 months ago
Here are some math delimiters for llm if needed, "display" means show on a new line const mathDelimiters = [ { left: "$$", right: "$$", display: true }, { left: "$", right: "$", display: false }, { left: "\(", right: "\)", display: false }, { left: "\[", right: "\]", display: true }, { left: '[', right: ']', display: false }, { left: '[\n', right: '\n]', display: true } ];
rehype-katex plugin now correctly displays mathematical equations for both HGPT 3.5 AND HGPT 4, but not for GPT4o.
Description
To improve the display of mathematical equations in AI responses, we need to fix the handling of Inline LaTeX provided by OpenAI. Currently, AI responses do not handle Inline LaTeX correctly, which makes mathematical equations appear incorrectly for users. We need to figure out how to correctly handle OpenAI responses to ensure that we display the inline LaTeX format properly, enhancing the user experience.
Objective
Our goal is to improve the display of mathematical equations in AI responses by correctly handling Inline LaTeX provided by OpenAI.
Actions and Considerations (ACC)
Research Inline LaTeX Handling:
Implement Inline LaTeX Rendering:
Testing and Quality Assurance:
Expected Outcomes