jorge-menjivar / unsaged

Open source chat kit engineered for seamless interaction with AI models.

Home Page:https://unsaged.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ollama Code code block syntax issue

Bortus-AI opened this issue · comments

unSAGED does not seem to identify the code blocks correctly for vba code.

It looks to use \begin{code} and \end{code} which is not recognized maybe?

See attached screenshot of the issue

image

I will test if it does it with other code like python or just VBA

This looks like it might be related to the system prompt itself. Try making a custom system prompt for the model you are using and tell it to surround code "```vbnet" instead of \begin{code} as that would not be readable in markdown syntax.

This looks like it might be related to the system prompt itself. Try making a custom system prompt for the model you are using and tell it to surround code "```vbnet" instead of \begin{code} as that would not be readable in markdown syntax.

Thanks I will give that a try