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

[Bug] Extra space added/not removed when using format prompt #488

Closed
4 tasks done
cratom4 opened this issue Dec 11, 2023 · 3 comments
Closed
4 tasks done

[Bug] Extra space added/not removed when using format prompt #488

cratom4 opened this issue Dec 11, 2023 · 3 comments
Labels
🐛 Bug Something isn't working | 缺陷 ✅ Fixed Fixed | 已修复

Comments

@cratom4
Copy link

cratom4 commented Dec 11, 2023

👀 检查清单 | Initial checklist

  • 已经阅读了 常见问题 | I have read the FAQ
  • 插件和 SD WebUI 均为为最新版本 | Plugin and SD WebUI both are the latest version
  • 插件的分支为 main | The branch of the plugin is main
  • 在单独开启插件的情况下,问题仍然存在 | The problem still exists when the plugin is turned on separately

💻 系统环境 | Operating System

Windows

🌐 浏览器 | Browser

Edge

📦 SD Wbui 版本或提交 | Version or Commit

No response

📦 Lobe Theme 版本或提交 | Version or Commit

No response

🐛 问题描述 | Bug Description

When I use format with following prompt,
" word1, word2 , word3,word4"
it will turn into
" word1, word2 , word3, word4"
format again and it will change to
" word1, word2 , word3, word4"

So it ends up with double space between word and comma, and also some spaces remains there such as one before word1, and after word2.

🚦 期望结果 | Expected Behavior

Prompt to end up like
"word1, word2, word3, word4"
when using prompt format.

📷 复现步骤 | Recurrence Steps

Press format prompt button.

📝 补充信息 | Additional Information

No response

@cratom4 cratom4 added the 🐛 Bug Something isn't working | 缺陷 label Dec 11, 2023
@lobehubbot
Copy link
Member

👀 @cratom4

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@canisminor1990 canisminor1990 added the ✅ Fixed Fixed | 已修复 label Dec 12, 2023
@cratom4
Copy link
Author

cratom4 commented Dec 13, 2023

Thanks for the fix!
If you got time and if possible, I'd like to request

  1. Removing space before comma if there is any
  2. Removing duplicate words(phrases) in prompt

For now, I'm happy with current state.
Thank you.

@cratom4 cratom4 closed this as completed Dec 13, 2023
@lobehubbot
Copy link
Member

@cratom4

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷 ✅ Fixed Fixed | 已修复
Projects
None yet
Development

No branches or pull requests

3 participants