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

Some links show up as [[number] in streaming and disappear after streaming sometimes #58

Open
ztc1997 opened this issue Apr 8, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@ztc1997
Copy link

ztc1997 commented Apr 8, 2023

Describe the bug
Some links show up as [[number] in streaming and disappear after streaming sometimes.

To Reproduce
Steps to reproduce the behavior:

  1. Setup a node-chatgpt-api as a bing client
  2. Use node-chatgpt-api as PandoraAI backend

Expected behavior
Links display normally

Screenshots
1680926565817.png
1680926594288.png

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: 111

Smartphone (please complete the following information):

  • Device: Redmi K50
  • OS: Android 12
  • Browser: Chrome
  • Version: 111

Additional context
Add any other context about the problem here.

@ztc1997 ztc1997 added the bug Something isn't working label Apr 8, 2023
@waylaidwanderer
Copy link
Owner

I'm not sure but I think this is an issue on Bing's end where the AI doesn't generate the source links correctly.

@cmp-nct
Copy link

cmp-nct commented Apr 19, 2023

I think it's a problem in the UI streaming behavior.
While the UI is streaming it is displaying/formating the markdown and after the message is completed the message is re-processed.
If you recall my issue about having multiplication signs being "eaten", there I tried a hotfix which auto-escapes it during streaming. That works well but after the message is completed a javascript function is re-processing it and then it looked wrong.
Likely related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants