-
Notifications
You must be signed in to change notification settings - Fork 33
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
Feature request: Replace \n with a linefeed in the chat answers #14
Comments
Have you solved it? I am also suffering from the same symptoms. |
@TimRivoli I can have a look but can you be more specific. Where is this happening? |
As shown in the picture above, when gpt answers a question, it does not recognize \n as a line feed and outputs it as is. Do you know a solution? |
Hi, Unfortunately I can't test this code since my API key is some reason does not work in this app. I have tested my key in other apps and works ok with gpt-3.5 but not gpt-4 anyways. Can I ask you to test this with your API key and let me know If it's working. So I could do a proper pull request. in OpenAIRepositoryImpl change the code at line 83 and 94 and paste this code.
|
As a result of testing, it works very well. \n is no longer printed and the replace function works fine. Thank you very much:) |
The chat answers have \n instead of line feeds. That could be a simple string replacement and improve the appearance of the answers.
The text was updated successfully, but these errors were encountered: