mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-15 14:51:19 -08:00
- 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 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| any_model_map.py | ||
| any_provider.py | ||
| asyncio.py | ||
| base_provider.py | ||
| create_images.py | ||
| helper.py | ||
| response.py | ||
| retry_provider.py | ||
| tool_support.py | ||
| types.py | ||