gpt4free/g4f
hlohaus 78c0d67d54 refactor: streamline auth handling and CLI structure
- Added `fallback_model = "deepseek"` to `PollinationsAI` class in `PollinationsAI.py`
- Modified `PollinationsAI._agenerate` to safely call `get_model` only if `model` is not None
- Removed unused login loop in `OpenaiChat.synthesize` method in `OpenaiChat.py`
- Replaced full CLI parser and main function implementation in `__main__.py` with import from `.main`
- Added `get_auth_result` method to `AsyncAuthedProvider` in `base_provider.py` for reusable auth retrieval
- Replaced repeated auth loading logic in `create_completion` and `create_streaming_completion` with call to `get_auth_result` in `base_provider.py
2025-07-01 03:10:21 +02:00
..
api Remove timeout 2025-06-21 16:54:44 +02:00
cli refactor: streamline auth handling and CLI structure 2025-07-01 03:10:21 +02:00
client Support images input 2025-06-29 13:33:14 +02:00
gui Update validation 2025-06-28 17:04:41 +02:00
image Add any_model_map 2025-06-28 06:22:31 +02:00
integration feat: improve media handling, file conversion, and error management 2025-05-20 22:40:12 +02:00
local Fix import in LocalClient 2025-01-07 00:36:22 +01:00
locals Update models.py to create models directory when its not present 2024-05-30 19:29:16 +05:30
Provider refactor: streamline auth handling and CLI structure 2025-07-01 03:10:21 +02:00
providers refactor: streamline auth handling and CLI structure 2025-07-01 03:10:21 +02:00
requests fix: improve session handling, message formatting, and content saving 2025-06-29 21:59:22 +02:00
tools Move file functions 2025-06-24 22:32:59 +02:00
__init__.py feat: refactor provider create functions to class attributes and update calls 2025-06-12 12:45:55 +02:00
__main__.py Update __main__.py 2025-06-30 09:55:15 +02:00
constants.py Update website.py 2025-06-14 00:13:19 +02:00
cookies.py Add video provider 2025-06-17 16:30:00 +02:00
debug.py Catch import errors 2025-03-29 20:47:10 +01:00
errors.py feat: Refactor extra_body handling and update model error handling 2025-06-12 02:29:41 +02:00
files.py Move file functions 2025-06-24 22:32:59 +02:00
models.py Add any_model_map 2025-06-28 06:22:31 +02:00
typing.py feat: improve file handling and streamline provider implementations 2025-04-08 19:00:44 +02:00
version.py fix: enhance retry logic and parameter handling in commit and provider code 2025-06-13 05:32:55 +02:00