gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

3.0.7 provider base class error Bing: TypeError: BaseSession.__init__() got an unexpected keyword argument 'proxy'

Open brycepg opened this issue 9 months ago • 5 comments

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

brycepg avatar Apr 29 '24 18:04 brycepg

experience the same issue

jackiezhangcn avatar Apr 30 '24 08:04 jackiezhangcn

This issue can be fixed by updating your curl package. For example:

pip install -U curl-cffi

MikeL1300 avatar May 04 '24 00:05 MikeL1300

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?

rqi14 avatar May 07 '24 01:05 rqi14

You need to execute:

docker pull <image name>

hlohaus avatar May 08 '24 17:05 hlohaus

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] avatar May 16 '24 00:05 github-actions[bot]

The minimum version of curl_cffi is 6.2 in g4f.

hlohaus avatar May 19 '24 03:05 hlohaus