mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
- **example.env**:
- Added `G4F_API_KEY` and `G4F_PROXY` variables
- Removed Azure-related API keys and routes block
- Added `OLLAMA_API_KEY`, `NVIDIA_API_KEY`, and `PUTER_API_KEY`
- **g4f/Provider/EasyChat.py**:
- Replaced `page.js_dumps` with `page.evaluate` for retrieving `guestId`
- **g4f/Provider/deprecated/LegacyLMArena.py**:
- Changed `working = True` to `working = False`
- **g4f/Provider/deprecated/har/__init__.py**:
- Changed `working = True` to `working = False`
- **g4f/providers/any_provider.py**:
- Updated imports, adding `Custom`, `PollinationsImage`, `OpenaiAccount`, and reordering providers
- Renamed `PROVIERS_LIST_2` → `PROVIDERS_LIST_2` and `PROVIERS_LIST_3` → `PROVIDERS_LIST_3`
- Removed `PROVIERS_LIST_1` and replaced its usage with `Provider.__providers__`
- Changed `cls.audio_models` initialization from `{}` to `[]`
- Adjusted handling of model mapping with `clean_name` for consistency
- GeminiPro check updated to `if provider == GeminiPro`
- Changed final `cls.audio_models` assignment to `[ *cls.audio_models ]` instead of `list(cls.audio_models.keys())`
- Adjusted provider fallback in `AnyProvider` to use `PROVIDERS_LIST_2 + PROVIDERS_LIST_3`
- **g4f/requests/__init__.py**:
- Changed SSE parsing condition from `line.startswith(b"data: ")` to `line.startswith(b"data:")`
- Updated slice from `line[6:]` to `line[5:]` when extracting `rest
|
||
|---|---|---|
| .. | ||
| __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 | ||