You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
brycepg
changed the title
3.0.6 provider base class error Bing: TypeError: BaseSession.__init__() got an unexpected keyword argument 'proxy'
3.0.7 provider base class error Bing: TypeError: BaseSession.__init__() got an unexpected keyword argument 'proxy'
Apr 29, 2024
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: