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
3.0.7 provider base class error Bing: TypeError: BaseSession.__init__() got an unexpected keyword argument 'proxy' #1910
Comments
experience the same issue |
This issue can be fixed by updating your curl package. For example: pip install -U curl-cffi |
Hi. Do you know how to fix this in the docker image version? |
You need to execute:
|
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again. |
The minimum version of curl_cffi is 6.2 in g4f. |
Bug description
Upgrade to 3.0.6 from <3.0.0
Execute streaming completion
ERROR:discord.client:Ignoring exception in on_message
Traceback (most recent call last):
File "/home/bryce/.cache/pypoetry/virtualenvs/gpt4discord-_1vRy51C-py3.10/lib/python3.10/site-packages/discord/client.py", line 441, in _run_event
await coro(*args, **kwargs)
File "/mnt/c/Users/Bryce/gpt4free-discord/gpt4discord/discord.py", line 239, in on_message
assistant_content = await stream_llm_response_to_discord(
File "/mnt/c/Users/Bryce/gpt4free-discord/gpt4discord/discord.py", line 357, in stream_llm_response_to_discord
for stream_tokens in response:
File "/home/bryce/.cache/pypoetry/virtualenvs/gpt4discord-_1vRy51C-py3.10/lib/python3.10/site-packages/g4f/providers/retry_provider.py", line 95, in create_completion
raise_exceptions(exceptions)
File "/home/bryce/.cache/pypoetry/virtualenvs/gpt4discord-_1vRy51C-py3.10/lib/python3.10/site-packages/g4f/providers/retry_provider.py", line 231, in raise_exceptions
raise RetryProviderError("RetryProvider failed:\n" + "\n".join([
g4f.errors.RetryProviderError: RetryProvider failed:
Liaobots: ResponseStatusError: Response 401: {"message":"401 Unauthorized"}
Bing: TypeError: BaseSession.init() got an unexpected keyword argument 'proxy'
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Python 3.10.12
USA
Additional context
Works fine on <3.0.0
The text was updated successfully, but these errors were encountered: