terry3041 / pyChatGPT

An unofficial Python wrapper for OpenAI's ChatGPT API
GNU General Public License v3.0
1.35k stars 255 forks source link

is it possible to request with coversation id an parent id using requests? #64

Closed Ulysses0817 closed 1 year ago

Ulysses0817 commented 1 year ago

After logging into the chat page, maybe it's feasible to using requests.post() with cookies taken from selenium? I'm a little confused why didnt you implement it, hhhh. If so, I think that we must consider the ssl client fingerprint or any other cases?

magicmars35 commented 1 year ago

+1 when the script that hold the API need to be restarted , a brand new conversation id is created everytime, and there is now no way to return in the contexte of the previous conversation before the restart

terry3041 commented 1 year ago

After logging into the chat page, maybe it's feasible to using requests.post() with cookies taken from selenium? I'm a little confused why didnt you implement it, hhhh. If so, I think that we must consider the ssl client fingerprint or any other cases?

That's what I did in earlier version. But TLS fingerprint is so troublesome that it does not work consistently. Therefore, I have no way but to abandon this method.

+1 when the script that hold the API need to be restarted , a brand new conversation id is created everytime, and there is now no way to return in the contexte of the previous conversation before the restart

66 may help regarding this.