Alpaca icon indicating copy to clipboard operation
Alpaca copied to clipboard

PHP code not rendering properly in response

Open tiradoe opened this issue 7 months ago • 2 comments

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: Image

After request completes Image

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!

tiradoe avatar Apr 29 '25 03:04 tiradoe

it seems the $ trigger the latex equation rendering

12fab4 avatar Apr 29 '25 07:04 12fab4

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.

mags0ft avatar May 01 '25 13:05 mags0ft

Did you have the opportunity to check whether that error still occurs? It might have been fixed by now!

mags0ft avatar Jun 18 '25 10:06 mags0ft

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!

tiradoe avatar Jun 18 '25 19:06 tiradoe

Awesome! Nice to hear it all works now. Thanks for the report.

mags0ft avatar Jun 18 '25 19:06 mags0ft