Since the ChatGPT extension seems to be working well and is getting pretty popular, I’ve created an “official” downloadable version and added it to the main extension directory.
The new version includes a few refinements over the one in this thread. See forum post.
@rdouma is correct, and it is the most likely explanation. Have you checked the paid credit status of your OpenAI account @jberrebi? Failing that, there are debug instructions in this post.
It’s a little in-depth for me to dive into right now, but if Axios supports proxy config like that, I would expect it to work. However, the log shows that the underlying XMLHttpRequest is going directly to the API, so it isn’t using the proxy.
Modules loaded within popclip extensions are bundled inside PopClip’s executable. The current bundle axios version is 0.26.1. There are only a small number of other modules bundled, but none for networking.
However, I notice your proxy uses HTTP, and unfortunately, PopClip will refuse to make an outgoing connection that isn’t https anyway, even to localhost. So even if you get the proxy set-up working, it won’t connect
I haven’t looked at the GPT-4 modifications because I don’t have API access myself yet. If you do have access, my guess is that you just need to change the constant gpt-3.5-turbo to gpt-4 (based on https://platform.openai.com/docs/guides/chat)