Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Greatwork! Can we also support coding block in the UI for it to output code? #28

Open
greatbody opened this issue Aug 19, 2023 · 4 comments

Comments

@greatbody
Copy link

Greatwork! Can we also support coding block in the UI for it to output code?

image

The above is what I get from the UI.

@samuellukudu
Copy link

I think this capability should be coming in the next version of Llama

@greatbody
Copy link
Author

I think this capability should be coming in the next version of Llama

That would be wonderful.

@nmfretz
Copy link
Contributor

nmfretz commented Aug 21, 2023

Thanks for the suggestion @greatbody! We noticed during testing that getting Llama 2 + Chatbot UI to output code blocks is difficult out-of-the-box. It is possible, but this needs to be the default behaviour:

image

This may be as easy as modifying the markdown logic in the Chatbot UI code.

@afyounie
Copy link

I just setup the 13B container in podman on RHEL 9. Tested to see if the code block worked correctly and this is what I get:
Screenshot_2023-08-23_20-59-38

The code is stated before the code block. I asked a second time with a prompt I used on OpenAI's chat and it gave a similar response to ChatGPT 3.5, but it again put the code before the code block and then put the description for the code inside the code block. Still usable output, but the description is difficult to read because it is put on a single line inside the code block window.

Looking forward to using llama-gpt. Easy setup and works very well straight out of the box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants