The-Unleashed-Club / openMind

A chat app which helps you to have better communication with people with the help of OpenAI machinery
56 stars 35 forks source link

Save User Response IN DB #4

Open silenteyesoncode opened 1 year ago

silenteyesoncode commented 1 year ago

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.
shiv-2810 commented 1 year ago

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

silenteyesoncode commented 1 year ago

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

shiv-2810 commented 1 year ago
Screenshot 2023-05-07 at 5 45 16 PM
shiv-2810 commented 1 year ago

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

silenteyesoncode commented 1 year ago

PR will we reviewed shortly

silenteyesoncode commented 1 year ago

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

Coding-Algorithm commented 1 year ago

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

silenteyesoncode commented 1 year ago

@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 commented 1 year ago

@Coding-Algorithm

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

FabricioAllves commented 1 month ago

Has this problem been resolved already?