ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

[Feature request]: Track multiple conversations

Open zjrwtx opened this issue 3 years ago • 7 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

When I deployed the v3 api to the server, I found that the chat history was displayed in different users, which means that different users are actually using the same conversation. Is this a bug?

Steps to reproduce the problem

When I deployed the v3 api to the server, I found that the chat history was displayed in different users, which means that different users are actually using the same conversation. Is this a bug?

What should have happened?

maybe the source api problem

Version where the problem happens

Name: revChatGPT Version: 3.0.5 Summary: ChatGPT is a reverse engineering of OpenAI's ChatGPT API Home-page: https://github.com/acheong08/ChatGPT Author: Antonio Cheong Author-email: [email protected] License: GNU General Public License v2.0 Location: d:\python\lib\site-packages Requires: asyncio, httpx, OpenAIAuth, prompt-toolkit, requests, tiktoken Required-by:

What Python version are you running this with?

Python 3.10.9

What is your operating system ?

Windows

Command Line Arguments

no

Console logs

no

Additional information

No response

zjrwtx avatar Mar 03 '23 04:03 zjrwtx

solve it

zjrwtx avatar Mar 03 '23 04:03 zjrwtx

How did you solve it?

Dreamscape315 avatar Mar 03 '23 05:03 Dreamscape315

You need to create multiple instances. Tracking multiple conversations hasn't been supported yet.

acheong08 avatar Mar 03 '23 05:03 acheong08

looking forward for this feature.

Pengchengistaken avatar Mar 03 '23 07:03 Pengchengistaken

If you mean that each user should have their own unique reply, I recommend it;

  1. You need to use a map-like storage cutoff to store the user's ID and 'conversation_id' and 'parent_id', and then pass them on to revChatGPT when it visits again;
  2. If the user visits for the first time, you should give him new conversation_id and parent_id, as in the author's source code. So they wouldn't have the same reply.

ZZM-user avatar Mar 03 '23 14:03 ZZM-user

Added some preliminary support. Not for CLI though

acheong08 avatar Mar 04 '23 09:03 acheong08

Note: Use reset(convo_id) to make new conversation

acheong08 avatar Mar 04 '23 10:03 acheong08

Now automatic

acheong08 avatar Mar 05 '23 03:03 acheong08