openMind icon indicating copy to clipboard operation
openMind copied to clipboard

Save User Response IN DB

Open silenteyesoncode opened this issue 2 years ago • 10 comments

Description 🚀

We want to save conversation between gpt and user in our DB

To Reproduce ✅

The purpose of this code is to demonstrate how to save a conversation in Firebase Realtime Database. By saving the conversation, we can later retrieve it and display it to the user, creating a history of past conversations.

In the task I provided, we modified the code to also retrieve the conversation history from Firebase and display it in a React Native Expo component. This allows the user to see the past conversations they've had with the GPT model.

Task

  1. Modify the Chat component to display the conversation history.
  2. When the component is mounted, retrieve the conversation history from Firebase Realtime Database and store it in the component's state.
  3. Render the conversation history in the component, displaying the user's message and the GPT's response in separate text elements.

silenteyesoncode avatar May 07 '23 11:05 silenteyesoncode

when i am sending text it's throwing the following error:

at node_modules/whatwg-fetch/dist/fetch.umd.js:535:30 in setTimeout$argument_0

  • ... 7 more stack frames from framework internals

shiv-2810 avatar May 07 '23 12:05 shiv-2810

Can you give me screenshot of your terminal @shiv-2810

silenteyesoncode avatar May 07 '23 12:05 silenteyesoncode

Screenshot 2023-05-07 at 5 45 16 PM

shiv-2810 avatar May 07 '23 12:05 shiv-2810

I made a pull request also , who will review it?

shiv-2810 avatar May 07 '23 12:05 shiv-2810

PR will we reviewed shortly

silenteyesoncode avatar May 07 '23 12:05 silenteyesoncode

when i am sending text it's throwing the following error:

at node_modules/whatwg-fetch/dist/fetch.umd.js:535:30 in setTimeout$argument_0

  • ... 7 more stack frames from framework internals

Please go through this for now

@shiv-2810

We'll get back to you on this later

until you can book a call here if you need help in something

silenteyesoncode avatar May 07 '23 12:05 silenteyesoncode

Has this issue being resolved, can i work on it @shiv-2810 @silenteyesoncode

Coding-Algorithm avatar Jun 19 '23 17:06 Coding-Algorithm

@Coding-Algorithm for sure you can work on it let me know if you need any help i'll update the DB structure in #23

You can book a call here

silenteyesoncode avatar Jun 20 '23 08:06 silenteyesoncode

@Coding-Algorithm

please go through this video, let me know if it helps

silenteyesoncode avatar Jun 27 '23 08:06 silenteyesoncode

Has this problem been resolved already?

FabricioAllves avatar Oct 26 '24 00:10 FabricioAllves