gpt4free/g4f/Provider
hlohaus 57cbd55d74 feat: integrate Pollinations AI enhancements and simplify gpt4free references
- Replaced the large GitHub project stats table in `README.md` with summaries and logos for Pollinations AI and MoneyPrinter V2
- Introduced `STATIC_URL` and `DIST_DIR` constants in new `g4f/constants.py` and used them across multiple files
- Updated `PollinationsAI.py` to support conversation title and follow-up generation using tool calls
- Modified `PollinationsAI.py` and `PollinationsImage.py` to use `STATIC_URL` for the `referrer` header
- Enhanced `PollinationsAI.stream_complete` to yield `ToolCalls`, `TitleGeneration`, and `SuggestedFollowups`
- Added `ToolCalls` handling in `client/__init__.py` to support non-stream and stream modes
- Updated `ChatCompletionDelta` model in `client/stubs.py` to support `ToolCalls`
- Modified `HarProvider` to merge `DEFAULT_HEADERS` into request headers
- Improved `OpenaiChat.py` by adding optional chaining to page evaluation expressions for robustness
- Updated `any_provider.py` to force use of `PollinationsAI` if `tools` key is present in kwargs
- Refactored `is_content` into a reusable function in `providers/response.py` and used in `retry_provider.py`
- Updated `gui/server/website.py` to use `STATIC_URL` and simplify `GPT4FREE_URL` handling
- Removed redundant constants from `version.py` and imported them from `constants.py
2025-05-18 01:54:09 +02:00
..
audio feat: add Qwen Qwen-3 provider and update audio/media handling 2025-05-01 10:22:12 +02:00
bing Add filessupport, scrape and refine your data 2025-01-01 04:20:02 +01:00
deprecated Add Path and PathLike support when uploading images (#2514) 2024-12-28 16:50:08 +01:00
har feat: integrate Pollinations AI enhancements and simplify gpt4free references 2025-05-18 01:54:09 +02:00
hf fix: improve error handling and add type checks in various providers and API 2025-05-17 10:02:13 +02:00
hf_space Fix unittests 2025-05-17 11:08:52 +02:00
local Fix Image Generation in HuggingChat 2025-01-24 03:13:04 +01:00
mini_max Set return_conversation to True 2025-04-26 23:10:06 +02:00
needs_auth feat: integrate Pollinations AI enhancements and simplify gpt4free references 2025-05-18 01:54:09 +02:00
not_working fix: update provider status and fix line ending issues 2025-05-12 20:45:53 +03:00
npm Revert "Cleanup unused dependencies" 2024-01-23 04:59:46 +01:00
openai refactor: update model mappings, error handling, and file utils 2025-04-26 17:50:48 +02:00
template fix: resolve model duplication and improve provider handling 2025-05-16 00:18:12 +02:00
__init__.py fix: resolve model duplication and improve provider handling 2025-05-16 00:18:12 +02:00
ARTA.py fix: remove debug print statement from ARTA provider 2025-05-12 21:18:23 +03:00
base_provider.py Improve download of generated images, serve images in the api (#2391) 2024-11-20 19:58:16 +01:00
Blackbox.py fix: resolve model duplication and improve provider handling 2025-05-16 00:18:12 +02:00
Chatai.py refactor: update providers and models for better compatibility 2025-05-12 20:24:36 +03:00
ChatGLM.py AI Provider and Model Updates: Adding New, Removing Deprecated, and Enhancing Functionality (#2739) 2025-02-24 15:53:20 +01:00
ChatGpt.py Add AsyncAuthedProvider in Copilot 2025-01-28 20:33:50 +01:00
Cloudflare.py feat: integrate Pollinations AI enhancements and simplify gpt4free references 2025-05-18 01:54:09 +02:00
Copilot.py Set return_conversation to True 2025-04-26 23:10:06 +02:00
DDG.py fix: improve error handling and add type checks in various providers and API 2025-05-17 10:02:13 +02:00
DeepInfraChat.py fix: improve error handling and add type checks in various providers and API 2025-05-17 10:02:13 +02:00
DuckDuckGo.py fix: update provider status and fix line ending issues 2025-05-12 20:45:53 +03:00
Dynaspark.py refactor: update providers and models for better compatibility 2025-05-12 20:24:36 +03:00
Free2GPT.py Update models and providers with improved documentation and code structure (#2786) 2025-03-09 19:46:27 +01:00
FreeGpt.py Update models and providers with improved documentation and code structure (#2786) 2025-03-09 19:46:27 +01:00
GizAI.py Improve TypeGPT, GizAI, Goabror and LambdaChat provider 2025-03-20 21:45:59 +01:00
helper.py Remove all not working provider (#1679) 2024-03-12 02:06:06 +01:00
ImageLabs.py Fix using ImageResponse 2025-03-31 21:33:17 +02:00
LambdaChat.py refactor: update providers and models for better compatibility 2025-05-12 20:24:36 +03:00
Liaobots.py Fix unittests 2025-05-17 11:08:52 +02:00
LMArenaProvider.py fix: update provider status and fix line ending issues 2025-05-12 20:45:53 +03:00
PerplexityLabs.py refactor: update providers and models for better compatibility 2025-05-12 20:24:36 +03:00
Pi.py Add leagcy port to docker-compose files 2025-01-26 16:32:32 +01:00
Pizzagpt.py Provider Updates and Fixes (#2570) 2025-01-15 22:35:05 +01:00
PollinationsAI.py feat: integrate Pollinations AI enhancements and simplify gpt4free references 2025-05-18 01:54:09 +02:00
PollinationsImage.py feat: integrate Pollinations AI enhancements and simplify gpt4free references 2025-05-18 01:54:09 +02:00
SearXNG.py Add SearXNG provider and support in web_search 2025-04-23 12:53:08 +02:00
TeachAnything.py Update models and providers with improved documentation and code structure (#2786) 2025-03-09 19:46:27 +01:00
TypeGPT.py Fix unittests 2025-05-15 02:36:49 +02:00
Websim.py Fix using ImageResponse 2025-03-31 21:33:17 +02:00
You.py Add chat share function 2025-03-25 01:46:57 +01:00
Yqcloud.py Set return_conversation to True 2025-04-26 23:10:06 +02:00