Closed fishfree closed 10 months ago
Hi, could you expand on what you're looking for here? Right now, the response from GPT is inserted as-is into the HTML, meaning that tags are already interpreted and rendered. I'm not super interested in providing a lot of formatting features here along the lines of the ChatGPT front end, as that balloons the complexity of the plugin -- but if you're looking for something relatively simple that provides a significant improvement I'll definitely consider it.
Hi @Limekiller,
The OpenAI API returns completion messages in markdown format. What is needed is to simply pass the output through Moodle's format_text() function.
Please take a look at the following PR: #27 for a solution.
Hope you find this helpful.
Best regards,
Michael Milette
As mentioned in the title. Thanks!