Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Suggestion, Not error #29

Closed
Phantom8015 opened this issue Dec 14, 2022 · 5 comments
Closed

Suggestion, Not error #29

Phantom8015 opened this issue Dec 14, 2022 · 5 comments
Labels
enhancement New feature or request invalid This doesn't seem right

Comments

@Phantom8015
Copy link

Phantom8015 commented Dec 14, 2022

When the package is run, it opens a chat.openai.com/auth/session link. Instead of specifying a session token, why not grab it from that json response? The session token is labelled "acces_token" in the json.

@terry3041
Copy link
Owner

terry3041 commented Dec 14, 2022

Do you mean to grab the session_token from that json response?
accessToken in that json response is Authorization, not session_token.

@terry3041 terry3041 added the invalid This doesn't seem right label Dec 14, 2022
@Phantom8015
Copy link
Author

ah sorry i meant to not use what the json gives but use something similar to the cf cookies for the session token cookie

@terry3041
Copy link
Owner

The main problem is that it does not give anything useful for us if we dont provide session_token.
https://chat.openai.com/api/auth/session will respond empty json if nothing is provided.

@terry3041 terry3041 added the enhancement New feature or request label Dec 14, 2022
@Phantom8015
Copy link
Author

good point, ill try and find a way to get this to work, if I have your permission to edit the code.

@terry3041
Copy link
Owner

good point, ill try and find a way to get this to work, if I have your permission to edit the code.

Sure, feel free to fork the repo and make a pull request if you find anything useful.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants