gpt4free/g4f/providers
hlohaus 31fee02cce feat: add Qwen provider with conversation support and stream handling
- Added `Qwen` to `g4f/Provider/__init__.py` for provider registration
- Created new Qwen provider in `g4f/Provider/Qwen.py` using `AsyncGeneratorProvider`
- Implemented conversation state via new `JsonConversation` argument
- Replaced raw `print` statements with `debug.log` for internal logging
- Introduced `get_last_user_message()` for improved prompt extraction
- Added support for `Reasoning` and `Usage` response types during SSE parsing
- Replaced manual SSE parsing with `sse_stream()` utility from `requests`
- Added `active_by_default = True` to `Qwen` and modified related headers
- Tracked message and parent IDs for contextual threading
- Updated `Usage` class in `g4f/providers/response.py` to support `input_tokens` and `output_tokens`
- Refactored Nvidia provider: removed unused attributes and set `models_needs_auth = True
2025-08-08 10:56:48 +02:00
..
__init__.py Add missing file 2024-02-23 04:51:40 +01:00
any_model_map.py Update model list 2025-08-08 02:45:17 +02:00
any_provider.py Update model list 2025-08-08 02:45:17 +02:00
asyncio.py Add default timeout 2025-06-14 15:23:38 +02:00
base_provider.py feat: Update environment variables and modify model mappings 2025-08-07 01:21:22 +02:00
create_images.py Improve select custom model in UI 2025-02-03 20:23:55 +01:00
helper.py Update YouTube provider 2025-07-15 08:46:08 +02:00
response.py feat: add Qwen provider with conversation support and stream handling 2025-08-08 10:56:48 +02:00
retry_provider.py feat: Update environment variables and modify model mappings 2025-08-07 01:21:22 +02:00
tool_support.py feat: refactor provider create functions to class attributes and update calls 2025-06-12 12:45:55 +02:00
types.py feat: Add media parameter and update provider configurations 2025-06-14 11:36:52 +02:00