openMind
openMind copied to clipboard
Save User Response IN DB
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
- Modify the Chat component to display the conversation history.
- When the component is mounted, retrieve the conversation history from Firebase Realtime Database and store it in the component's state.
- Render the conversation history in the component, displaying the user's message and the GPT's response in separate text elements.
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
Can you give me screenshot of your terminal @shiv-2810
I made a pull request also , who will review it?
PR will we reviewed shortly
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
Has this issue being resolved, can i work on it @shiv-2810 @silenteyesoncode
@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
Has this problem been resolved already?