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

ERROR:g4f.gui.server.api:Response 429: Rate limit reached #2523

Open
ayouboukach opened this issue Dec 31, 2024 · 0 comments
Open

ERROR:g4f.gui.server.api:Response 429: Rate limit reached #2523

ayouboukach opened this issue Dec 31, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ayouboukach
Copy link

127.0.0.1 - - [31/Dec/2024 18:20:18] "GET /static/img/user.png HTTP/1.1" 304 -
127.0.0.1 - - [31/Dec/2024 18:20:20] "POST /backend-api/v2/conversation HTTP/1.1" 200 -
127.0.0.1 - - [31/Dec/2024 18:20:28] "POST /backend-api/v2/conversation HTTP/1.1" 200 -
127.0.0.1 - - [31/Dec/2024 18:20:36] "POST /backend-api/v2/conversation HTTP/1.1" 200 -
127.0.0.1 - - [31/Dec/2024 18:21:26] "POST /backend-api/v2/conversation HTTP/1.1" 200 -
ERROR:g4f.gui.server.api:Response 429: Rate limit reached
Traceback (most recent call last):
File "g4f\gui\server\api.py", line 149, in _create_response_stream
File "g4f\providers\retry_provider.py", line 66, in create_completion
File "g4f\providers\retry_provider.py", line 56, in create_completion
File "g4f\providers\base_provider.py", line 232, in create_completion
File "asyncio\base_events.py", line 654, in run_until_complete
File "g4f\providers\base_provider.py", line 61, in await_callback
File "g4f\Provider\DDG.py", line 107, in create_async_generator
File "g4f\requests\raise_for_status.py", line 23, in raise_for_status_async
g4f.errors.RateLimitError: Response 429: Rate limit reached
127.0.0.1 - - [31/Dec/2024 18:23:03] "GET /static/img/user.png HTTP/1.1" 304 -
curl_cffi\aio.py:39: RuntimeWarning:
Proactor event loop does not implement add_reader family of methods required.
Registering an additional selector thread for add_reader support.
To avoid this warning use:
asyncio.set_event_loop_policy(WindowsSelectorEventLoopPolicy())

@ayouboukach ayouboukach added the bug Something isn't working label Dec 31, 2024
kqlio67 pushed a commit to kqlio67/gpt4free that referenced this issue Jan 2, 2025
…DG provider

- Removed unused  class and related logic
- Simplified  method by removing unnecessary checks and handling
- Consolidated model aliases into a single dictionary
- Improved error handling by raising exceptions directly instead of relying on
- Reduced code duplication by using a single  instance for both VQD token fetching and chat requests
- Added a 30-second timeout to the  to prevent long-running requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants