Skip to content
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

Closed
brycepg opened this issue Apr 29, 2024 · 6 comments
Assignees
Labels
bug Something isn't working stale

Comments

@brycepg
Copy link

brycepg commented 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

@brycepg brycepg added the bug Something isn't working label Apr 29, 2024
@brycepg 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
@jackiezhangcn
Copy link

experience the same issue

@MikeL1300
Copy link

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

pip install -U curl-cffi

@rqi14
Copy link

rqi14 commented May 7, 2024

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?

@hlohaus
Copy link
Collaborator

hlohaus commented May 8, 2024

You need to execute:

docker pull <image name>

Copy link

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 github-actions bot added the stale label May 16, 2024
@hlohaus
Copy link
Collaborator

hlohaus commented May 19, 2024

The minimum version of curl_cffi is 6.2 in g4f.

@hlohaus hlohaus closed this as completed May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

7 participants
@brycepg @hlohaus @jackiezhangcn @rqi14 @MikeL1300 @xtekky and others