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

codeblock copy button copies the syntax name instead of just the code #1284

Open
TFWol opened this issue Dec 24, 2024 · 2 comments
Open

codeblock copy button copies the syntax name instead of just the code #1284

TFWol opened this issue Dec 24, 2024 · 2 comments

Comments

@TFWol
Copy link

TFWol commented Dec 24, 2024

Describe the Issue
If you have a named codeblock, like batch, it gets placed inside the code and ends up getting copied along with the code which can cause syntax errors if you aren't watching for it.

It should be a label or something outside the box instead.

image

image

image

@Luro223
Copy link

Luro223 commented Dec 25, 2024

@TFWol Does this happen with KoboldAI only? If yes then check Repetition penalty and DRY.

@LostRuins
Copy link
Owner

This has got nothing to do with rep pen. It's a UI behavior.

@TFWol currently the copy button does not check for syntax and just copies the entirety of the contents of a code block. Some models generate labels and some do not, so it's hard to correctly match them all. For now i'd recommend manually ensuring that unwanted text is excluded.

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

3 participants