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

Enhance the code block elements - Close the block as its generated and add a copy button. #9

Open
Art9681 opened this issue Feb 10, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Art9681
Copy link
Contributor

Art9681 commented Feb 10, 2024

The current implementation does not correctly format large code blocks as they are being generated due to the closing tag not being generated by LLM. We need a method to close the blocks as the code is being generated so they display properly from the start.

We also need a copy button on the top right of the block so the end user can easily copy the code.

The copy button will need to be implemented in the chat template:

https://github.com/intelligencedev/eternal/blob/main/public/templates/chat.html

@Art9681 Art9681 added the enhancement New feature or request label Feb 10, 2024
@Art9681
Copy link
Contributor Author

Art9681 commented Feb 13, 2024

The code block fix was applied in #20

Leaving this Issue open until the copy button is implemented as that is a highly desired feature.

@Art9681 Art9681 self-assigned this Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant