gpt4free/docs
hlohaus e83282fc4b feat: add EdgeTTS audio provider and global image→media refactor
- **Docs**
  - `docs/file.md`: update upload instructions to use inline `bucket` content parts instead of `tool_calls/bucket_tool`.
  - `docs/media.md`: add asynchronous audio transcription example, detailed explanation, and notes.

- **New audio provider**
  - Add `g4f/Provider/audio/EdgeTTS.py` implementing Edge Text‑to‑Speech (`EdgeTTS`).
  - Create `g4f/Provider/audio/__init__.py` for provider export.
  - Register provider in `g4f/Provider/__init__.py`.

- **Refactor image → media**
  - Introduce `generated_media/` directory and `get_media_dir()` helper in `g4f/image/copy_images.py`; add `ensure_media_dir()`; keep back‑compat with legacy `generated_images/`.
  - Replace `images_dir` references with `get_media_dir()` across:
    - `g4f/api/__init__.py`
    - `g4f/client/stubs.py`
    - `g4f/gui/server/api.py`
    - `g4f/gui/server/backend_api.py`
    - `g4f/image/copy_images.py`
  - Rename CLI/API config field/flag from `image_provider` to `media_provider` (`g4f/cli.py`, `g4f/api/__init__.py`, `g4f/client/__init__.py`).
  - Extend `g4f/image/__init__.py`
    - add `MEDIA_TYPE_MAP`, `get_extension()`
    - revise `is_allowed_extension()`, `to_input_audio()` to support wider media types.

- **Provider adjustments**
  - `g4f/Provider/ARTA.py`: swap `raise_error()` parameter order.
  - `g4f/Provider/Cloudflare.py`: drop unused `MissingRequirementsError` import; move `get_args_from_nodriver()` inside try; handle `FileNotFoundError`.

- **Core enhancements**
  - `g4f/providers/any_provider.py`: use `default_model` instead of literal `"default"`; broaden model/provider matching; update model list cleanup.
  - `g4f/models.py`: safeguard provider count logic when model name is falsy.
  - `g4f/providers/base_provider.py`: catch `json.JSONDecodeError` when reading auth cache, delete corrupted file.
  - `g4f/providers/response.py`: allow `AudioResponse` to accept extra kwargs.

- **Misc**
  - Remove obsolete `g4f/image.py`.
  - `g4f/Provider/Cloudflare.py`, `g4f/client/types.py`: minor whitespace and import tidy‑ups.
2025-04-19 03:20:57 +02:00
..
guides Added missing periods. 2024-05-03 11:06:01 -04:00
images Add Authentication Setup Guide 2024-12-07 03:01:43 +01:00
async_client.md Add example for video generation 2025-03-27 09:38:31 +01:00
authentication.md Code review changes 2025-03-30 17:57:42 +02:00
client.md Adding New Models and Enhancing Provider Functionality (#2689) 2025-02-07 13:54:00 +01:00
configuration.md Update model configurations, provider implementations, and documentation (#2577) 2025-01-24 03:47:57 +01:00
docker.md Add nodriver to Gemini provider, 2024-11-17 11:06:37 +01:00
file.md feat: add EdgeTTS audio provider and global image→media refactor 2025-04-19 03:20:57 +02:00
git.md Update (docs/ README.md g4f/client/client.py) 2024-11-12 08:44:48 +02:00
gui.md Support "Think Deeper" in Copilot 2025-03-30 15:40:46 +02:00
interference-api.md Update docs: Using the OpenAI Library 2025-03-22 07:32:30 +01:00
legacy.md Update legacy.md 2025-02-21 09:53:56 +01:00
local.md Updated almost all documentation and added new documentation for the local interface 2024-10-19 20:21:14 +03:00
media.md feat: add EdgeTTS audio provider and global image→media refactor 2025-04-19 03:20:57 +02:00
providers-and-models.md docs: update providers documentation and enhance support for Blackbox HAR auth 2025-04-04 13:36:28 +03:00
pydantic_ai.md Add ARTA image provider 2025-03-11 02:49:24 +01:00
requests.md Fix invalid escape in requests module 2025-01-06 23:20:29 +01:00
requirements.md Update requirements.md 2025-02-21 09:56:20 +01:00
selecting_a_provider.md Fix generate Images with OpenaiChat 2025-01-24 17:49:07 +01:00
vision.md Add multiple images support (#2478) 2024-12-13 22:20:58 +01:00
webview.md Add Installation Guide for Windows 2024-04-06 10:47:43 +02:00