gpt4free/etc/tool
hlohaus f3923f8e50 feat: add new GPT-5 support and improve captcha handling
- **g4f/Provider/Copilot.py**
  - Added `"Smart (GPT-5)"` to `models` list.
  - Added `"gpt-5"` alias mapping to `"GPT-5"` in `model_aliases`.
  - Introduced `mode` selection logic to support `"smart"` mode for GPT-5 models alongside existing `"reasoning"` and `"chat"` modes.
- **g4f/Provider/EasyChat.py**
  - Added `get_models` class method to map `-free` models to aliases and store them in `cls.models`.
  - Resolved model via `cls.get_model(model)` at start of `create_async_generator`.
  - Reset `cls.captchaToken` to `None` at the beginning of `callback`.
  - Wrapped main generator logic in a loop to allow retry once if `CLEAR-CAPTCHA-TOKEN` error occurs, clearing auth file and resetting args.
- **g4f/Provider/needs_auth/OpenaiChat.py**
  - Added handling for image models: detect and set `image_model` flag, use `default_model` when sending requests if image model selected, and include `"picture_v2"` in `system_hints` when applicable.
  - Replaced textarea/button detection code in page load sequence with `nodriver` `select` calls, sending "Hello" before clicking send button, and included profile button selection if class needs auth.
- **g4f/Provider/openai/models.py**
  - Changed `default_image_model` from `"dall-e-3"` to `"gpt-image"`.
  - Added `"gpt-5"` and `"gpt-5-thinking"` to `text_models` list.
  - Added alias mapping for `"dall-e-3"` pointing to new `default_image_model`.
2025-08-09 01:33:56 +02:00
..
commit.py feat: add new GPT-5 support and improve captcha handling 2025-08-09 01:33:56 +02:00
contributers.py Add more contributers, add link to Swagger UI (#2443) 2024-11-30 22:11:18 +01:00
copilot.py Update copilot.py 2025-07-11 09:27:46 +02:00
create_provider.py feat: Add LMArenaBeta provider and update existing providers 2025-05-29 03:42:17 +02:00
improve_code.py refactor(provider): use default model for code improvement prompt 2024-09-06 17:45:17 +03:00
md2html.py refactor: replace see_stream with sse_stream and update md2html output logic 2025-07-29 19:57:13 +02:00
openapi.py Improve slim docker build, Add openapi.json to release 2024-11-24 22:20:08 +01:00
readme_table.py Add Anthropic provider 2025-01-02 02:33:09 +01:00
template.html feat: Add dev tools, reorganize providers, and expand model support (#3019) 2025-06-11 15:29:27 +02:00
translate_readme.py Change uses of whitelist to allowlist in translate_readme.py. 2024-02-26 15:28:28 +08:00
update.py Disable update packages 2025-06-15 07:42:24 +02:00
vercel.py ~ | improve compatibility 2023-11-20 18:40:55 +00:00