-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need to use proxy because api doesnt support in my region #29
Comments
You need a proxy server in one of the supported countries. Then you can specify the proxy server address while building your Gemini API client. You can find the configuration in the Readme file. https://github.com/gemini-api-php/client#using-your-own-http-client |
I have tested proxy with curl command below curl -H 'Content-Type: application/json' -d '{"contents":[{"parts":[{"text":"Explain how AI works"}]}]}' -x 'http://proxy_username:[email protected]:2333' 'https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent?key=api_key' --verbose and it has been given me the verbose response below
< HTTP/1.1 200 Connection established
Do you know any idea about what is going wrong? |
I need to use proxy because api doesnt support in my region, where should i fix it ? i couldnt find it? where is curl?
The text was updated successfully, but these errors were encountered: