-
-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Fix Gemini Proxy Connect call failed #1768
Conversation
Fix ClientConnectorError missing proxy setting
Hello, Thank you for your contribution to the project! Your pull request to fix the Gemini Proxy Connect call issue has been reviewed. Here's the feedback: Pull Request Review for "Fix Gemini Proxy Connect call failed"Author: None File Affected: Lines Modified: 141 and 143 Review Summary: Suggestions:
Overall, the changes are well-targeted and address the issue at hand. Great work on identifying and fixing a critical bug! Once again, thank you for your efforts in improving the project. Your attention to detail and dedication are greatly appreciated! Best regards, |
Does this should fix the problems with using chat and images from Gemeni? |
@ebullienc3 The following is my example code. When I configure the proxy to execute this code, there will be errors in the main text. My changes have solved this problem. client = Client()
response = client.images.generate(
model="gemini",
prompt="cute cat"
)
image_url = response.data[0].url My usage is Gemini image generation. Tell me what your problem function is, and I should be able to help you. |
I am using this bot in Discord https://github.com/Zero6992/chatGPT-discord-bot |
Okay, your problem is not related to this repository, but I guess it should be a network issue. |
It is indeed for here as the bot is using gpt4free. Anyways, I opened another issue. Thanks :) |
The same issue here. Zero6992/chatGPT-discord-bot#501 |
Also you could add the get_connector helper for socks proxy support. Then you doesn't need to pass the proxy everywhere. |
Gemini. py file adds get_connector to support proxy
@hlohaus Okay, updated. |
Thank you very much |
The error is as follows:
fix issue: Gemini.py missing proxy setting at line 141 and 143