supabase-community / chatgpt-your-files

Production-ready MVP for securely chatting with your documents using pgvector
https://youtu.be/ibzlEQmgPPY
362 stars 126 forks source link

Model output does not come to the Chat UI after receiving a response from the request #38

Closed onurhan1337 closed 5 months ago

onurhan1337 commented 5 months ago

Bug report

I developed a similar website by following all the steps. Everything works fine, but there is only one problem that I can't solve, I write a prompt to chat and send it, then it works fine and I get output (can be viewed via Google devtools) but the output generated in the chat UI is not seen.

I didn't add an extra piece of code or do anything different, could it be due to different versions of the packages used? I'm not getting any error.

Describe the bug

Model output does not come to the Chat UI after receiving a response from the request

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Write a text to chat
  2. Press f12 or right click and inspect the page
  3. Go to network tab
  4. See the request and click related request
  5. See correct response
  6. Can't see this response in the chat UI without any error

Expected behavior

Render the coming response to Chat UI.

Screenshots

image image

System information

onurhan1337 commented 5 months ago

Yes, I just replaced my package.json file with the one in this repository to try it out and it worked as expected.

I wonder what could be triggering this? Vercel AI SDK gets frequent updates, could there be an incompatibility there?

aattsai commented 5 months ago

@onurhan1337 I had the same issue with AI SDK 3.0^ where the response isn't displayed. Like you, I downgraded the package to 2.2.14 and it worked as expected. Have you ever figured out what changed?

onurhan1337 commented 4 months ago

@aattsai, I'm sorry to hear that you're having a similar problem. I've actually looked at the changes, but I still can't figure out what triggers this error, so I'm "forced" to stick with version 2.2.14.

The packages are updated really fast, and when I tried to write the project myself step by step I encountered many new bugs.

sgruhier commented 4 months ago

Same I stayed on 2.2.14. That's an big problem with vercel/ai package.