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

Making text bold or italic sometime fails #61

Open
xhiroga opened this issue Sep 23, 2023 · 3 comments
Open

Making text bold or italic sometime fails #61

xhiroga opened this issue Sep 23, 2023 · 3 comments
Labels
good first issue Good for newcomers

Comments

@xhiroga
Copy link

xhiroga commented Sep 23, 2023

This bot tries to reply with bold or italic, but sometime it fails.

image
@seratch seratch added the good first issue Good for newcomers label Sep 23, 2023
@seratch
Copy link
Owner

seratch commented Sep 24, 2023

Thank you for reporting this! It appears this issue could be specific to the Japanese language, which does not include spaces between words. This never occurs with English or others that use white space delimiters.

I am unsure if it's feasible to customize OpenAI API's behavior to consider such lang characteristics by modifying our system prompt, but if it works, I am happy to have such changes in this app. If someone is interested in exploring it, I am happy to be a reviwer. Also, I may check what's possible on this when I have time for it.

@xhiroga
Copy link
Author

xhiroga commented Sep 24, 2023

Thank you for your quick response!
I really appreciate you pointing out the potential cause and suggesting a solution (improving the prompt).

Actually, thinking it might immediately improve by fixing the prompt, I tried inserting the following sentence.
"for bold, italic, strikeout, and inline code blocks, insert a half-width space before the symbol."

However, in my environment at least, it started using double quotes instead of backquotes for programming word...😅
I realized that prompt engineering can be quite profound. I’m not in urgent trouble, so there is no need for prioritized support, and of course, I welcome suggestions for corrections from others as well!

@bradyriddle
Copy link

It's a workaround, but if you need it this worked for me:

https://www.howtogeek.com/450030/how-to-enable-classic-markdown-text-formatting-in-slack/

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

No branches or pull requests

3 participants