Because OpenAI restricts access to certain countries, you need to use a proxy software to access OpenAI in restricted countries, such as v2rayN.
For the proxy settings, if you are using something like v2rayN, the IP of the proxy server should be set to 127.0.0.1 and the port can be set in v2rayN (default v2rayN port is 1080). In addition, you do not need to enable global proxy, just use the default proxy mode.
V2rayN Screenshot:
WordPress Auto Post Proxy Settings: