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

Can it continue the dialogue and connect with the context? #5

Closed
newt7744 opened this issue Feb 16, 2023 · 9 comments
Closed

Can it continue the dialogue and connect with the context? #5

newt7744 opened this issue Feb 16, 2023 · 9 comments

Comments

@newt7744
Copy link

No description provided.

@newt7744
Copy link
Author

image
parent_message_id may useful

@F33RNI
Copy link
Owner

F33RNI commented Feb 16, 2023

Thx! I added this.
You can set initial conversation id as chatgpt_conversation_id in settings.json (Every cycle it will be remembered)

Check, please

@F33RNI
Copy link
Owner

F33RNI commented Feb 16, 2023

Oh, sorry, I just now realized that we also need parent_id. I'll implement it now...

@F33RNI
Copy link
Owner

F33RNI commented Feb 16, 2023

Now it works. You can set initial conversation_id and parent_id like this:

  "chatgpt_conversation_id": "d06d8fb8-4fa3-4837-....",
  "chatgpt_conversation_id__comment__": "INITIAL conversation_id",

  "chatgpt_parent_id": "f5da0c03-015f-49b3-....",
  "chatgpt_parent_id__comment__": "INITIAL parent_id",

Test:

image

@F33RNI
Copy link
Owner

F33RNI commented Feb 16, 2023

In the future i think it would be nice to save each telegram chat with a separate conversation_id and parent_id to some sort of database so that several users can use chat independently

@F33RNI F33RNI closed this as completed Feb 16, 2023
@newt7744
Copy link
Author

That's great, I'm going to update and experience it now.

@newt7744
Copy link
Author

maybe you are right. i just test without chatgpt_parent_id, but provided chatgpt_conversation_id,It can contact the context normally.
image

@qiangweihewu
Copy link

Where to get these IDs? Telegram or ChatGPT?

@F33RNI
Copy link
Owner

F33RNI commented Feb 17, 2023

Where to get these IDs? Telegram or ChatGPT?

Set them initially to "" (empty). Write any question and look into logs in console for Current conversation ID:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants