Closed mohammad-oghli closed 1 year ago
Hi, thank you for letting me know about this! I will update the repo to use the latest version of chatgpt-api that utilizes this in a few hours.
Do you think these two parameters should be a part of extension setting like sessionTokens is now or should there be a popup that opens when the extension is run/tokens expire (since these parameters will have to be updated more often)?
Your welcome, Yes I think these two parameters should be a part of extension setting like sessionTokens. Check the updated issue on the chatgpt-api for the additional Cloudflare protections that OpenAI added it.
Well done! I think the issue solved and the extension is working as expected I tested on my VS Code
Great, I am happy it works! I will now close this PR, but thanks again for bringing the issue to my attention and suggesting a solution:)
As a temporary workaround to fix the authentication token error we should add clearanceToken and userAgent. I added them as comment in the code.