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

Save User Response IN DB #4

Open
silenteyesoncode opened this issue May 7, 2023 · 10 comments
Open

Save User Response IN DB #4

silenteyesoncode opened this issue May 7, 2023 · 10 comments
Assignees
Labels
API enhancement New feature or request

Comments

@silenteyesoncode
Copy link
Member

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 silenteyesoncode added enhancement New feature or request API labels May 7, 2023
@shiv-2810
Copy link

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

@silenteyesoncode
Copy link
Member Author

silenteyesoncode commented May 7, 2023

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

@shiv-2810
Copy link

Screenshot 2023-05-07 at 5 45 16 PM

@shiv-2810
Copy link

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

@silenteyesoncode
Copy link
Member Author

PR will we reviewed shortly

@silenteyesoncode
Copy link
Member Author

silenteyesoncode commented May 7, 2023

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
Copy link
Contributor

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

@silenteyesoncode
Copy link
Member Author

@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
Copy link
Member Author

@Coding-Algorithm

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

@FabricioAllves
Copy link

Has this problem been resolved already?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants