gpt4free/g4f/providers
hlohaus 05f0f55711 refactor: update providers list, env vars, and minor fixes
- **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
2025-08-18 17:44:05 +02:00
..
__init__.py Add missing file 2024-02-23 04:51:40 +01:00
any_model_map.py Update model map 2025-08-18 17:19:02 +02:00
any_provider.py refactor: update providers list, env vars, and minor fixes 2025-08-18 17:44:05 +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