PHP code not rendering properly in response
Describe the bug
When asking a question in the chat for any model, if the response contains PHP code, the text renders correctly while the response is coming in, but breaks when the request is complete.
The issue appears to be related to the $ before variables as it is removing most of them.
Tested with Minstrel, Llama 3.2, and Gemma OS: Fedora 42 Gnome
Expected behavior
PHP code should render properly when the response completes.
The prompt for the screenshots was how to make a get request in curl php
During request processing:
After request completes
No errors are displayed in the app nor in the logs when running from a terminal. Please let me know if you need more information. Thanks!
it seems the $ trigger the latex equation rendering
Alpaca is currently in the middle of being re-coded, so to any outside contributors, please do NOT try to fix this right now as it WILL create merge conflicts.
As development is currently paused for some time (#747, donations to Jeffser are much appreciated!), please be patient, this will get fixed.
Did you have the opportunity to check whether that error still occurs? It might have been fixed by now!
Did you have the opportunity to check whether that error still occurs? It might have been fixed by now!
Just tried it out and it's working! Everything is properly formatted in a nice looking code section. Thanks for letting me know to check!
Awesome! Nice to hear it all works now. Thanks for the report.