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
…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
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())
The text was updated successfully, but these errors were encountered: