Commit graph

3103 commits

Author SHA1 Message Date
hlohaus
c97ba0c88e Add audio transcribing example and support
Add Grok Chat provider
Rename images parameter to media
Update demo homepage
2025-03-21 03:17:45 +01:00
hlohaus
10d32a4c5f Improve TypeGPT, GizAI, Goabror and LambdaChat provider
Update conversation body in OpenaiChat provider
Update ThinkingProcessor in run_tools
Add unittests for ThinkingProcessor
Update default headers in requests module
Add AuthFileMixin to base_provider
2025-03-20 21:45:59 +01:00
mkantwala
f5bdae4d8b
Merge pull request #2812 from mkantwala/main
New provider added (g4f/Provider/TypeGPT.py)
2025-03-20 17:37:05 +01:00
kqlio67
52ecfb5019
Add new providers and enhance existing provider configurations (#2805)
* New provider added(g4f/Provider/Websim.py)

* New provider added(g4f/Provider/Dynaspark.py)

* feat(g4f/gui/client/static/js/chat.v1.js): Enhance provider labeling for HuggingFace integrations

* feat(g4f/gui/server/api.py): add Hugging Face Space compatibility flag to provider data

* feat(g4f/models.py): add new providers and update model configurations

* Update g4f/Provider/__init__.py

* feat(g4f/Provider/AllenAI.py): expand model alias mappings for AllenAI provider

* feat(g4f/Provider/Blackbox.py): restructure image model handling and response processing

* feat(g4f/Provider/PollinationsAI.py): add new model aliases and streamline headers

* Update g4f/Provider/hf_space/*

* refactor(g4f/Provider/Copilot.py): update model alias mapping

* chore(g4f/models.py): update provider configurations for OpenAI models

* docs(docs/providers-and-models.md): update provider tables and model categorization

* fix(etc/examples/vision_images.py): update model and simplify client configuration

* fix(docs/providers-and-models.md): correct streaming status for GlhfChat provider

* docs(docs/providers-and-models.md): update provider capabilities and model documentation

* fix(models): update provider configurations for Mistral models

* fix(g4f/Provider/Blackbox.py): correct model alias key for Mistral variant

* feat(g4f/Provider/hf_space/CohereForAI_C4AI_Command.py): update supported model versions and aliases (close #2802)

* fix(documentation): correct model names and provider counts (https://github.com/xtekky/gpt4free/pull/2805#issuecomment-2727489835)

* fix(g4f/models.py): correct mistral model configurations

* fix(g4f/Provider/DeepInfraChat.py): correct mixtral-small alias key

* New provider added(g4f/Provider/LambdaChat.py)

* feat(g4f/models.py): add new providers and enhance model configurations

* docs(docs/providers-and-models.md): add LambdaChat provider and update model listings

* feat(g4f/models.py): add new Liquid AI model and enhance providers

* docs(docs/providers-and-models.md): update model listings and provider counts

* feat(g4f/Provider/LambdaChat.py): add conditional reasoning processing based on model

* fix(g4f/tools/run_tools.py): handle combined thinking tags in single chunk

* New provider added(g4f/Provider/Goabror.py)

* feat(g4f/Provider/Blackbox.py): implement dynamic session management and model access control

* refactor(g4f/models.py): update provider configurations and model entries

* docs(docs/providers-and-models.md): update model listings and provider counts

---------

Co-authored-by: kqlio67 <>
2025-03-20 17:36:00 +01:00
H Lohaus
9c94f9b2e9
Merge pull request #2798 from xtekky/27Feb
Update model list in PollinationsAI
Update config parameters
2025-03-13 13:16:23 +01:00
hlohaus
a839900392 Enable streaming in PollinationsAI 2025-03-13 08:07:27 +01:00
hlohaus
56f1f70f10 Update safe parameters 2025-03-13 07:59:28 +01:00
H Lohaus
0325e31842
Update __init__.py 2025-03-12 16:49:21 +01:00
H Lohaus
2615237464
Update models.py 2025-03-12 15:25:37 +01:00
hlohaus
a021dcdfc6 Update model list in PollinationsAI
Update config parameters
2025-03-12 14:58:06 +01:00
H Lohaus
a2f609b540
Update PollinationsAI.py 2025-03-12 09:09:41 +01:00
H Lohaus
2795861341
Merge pull request #2792 from nazdridoy/ARTA-fix-and-add-seed
fix: ARTA model and add optional seed parameter
2025-03-12 08:00:06 +01:00
H Lohaus
92813812ad
Merge pull request #2793 from xtekky/27Feb
Add many parameters to API endpoints
2025-03-12 07:58:16 +01:00
H Lohaus
237ee94878
Update chat.v1.js 2025-03-12 07:47:22 +01:00
hlohaus
713ad2c83c Add many parameters to API endpoints
Support conversational HuggingFace providers
Fix streaming in PollinationsAI provider
2025-03-11 22:16:03 +01:00
nazDridoy
5e1e825c48
fix: ARTA model and add optional seed parameter
- [fix] change model alias from "flux_black_ink" to "black_ink" in g4f/Provider/ARTA.py
- [feat] Add optional seed parameter with random generation in ARTA.
2025-03-11 21:23:36 +06:00
H Lohaus
eb70426faf
Merge pull request #2791 from hlohaus/27Feb
Add ARTA image provider
2025-03-11 08:18:21 +01:00
hlohaus
3e7af90949 Add ARTA image provider
Add ToolSupport in PollinationsAI provider
Add default value for model in chat completions
Add Streaming Support for PollinationsAI provider
2025-03-11 02:49:24 +01:00
H Lohaus
8a57323373
Merge pull request #2789 from xtekky/27Feb
Add Phi_4 provider, Update demo template
2025-03-10 11:29:54 +01:00
hlohaus
ad59df3011 Fix track usage 2025-03-10 05:21:20 +01:00
hlohaus
0fc0f0e977 Fix Liaobots provider 2025-03-10 04:34:08 +01:00
hlohaus
6f07ce4525 Update PollinationsAI provider 2025-03-10 03:52:26 +01:00
hlohaus
e4afa12fb9 Code review changes 2025-03-10 02:07:35 +01:00
hlohaus
2799bf728c Show Audio, hide YouTube response 2025-03-10 01:40:39 +01:00
hlohaus
c3ba69249e Fix default model in DeepInfraChat, Fix AllenAI provider 2025-03-10 00:45:18 +01:00
hlohaus
7d0102d1a6 Add Phi_4 provider, Update demo template 2025-03-10 00:13:47 +01:00
kqlio67
ce2692565c
Add Audio Generation and Response Support for AI Providers (#2788)
* feat(g4f/providers/response.py): add audio response support

* feat(g4f/Provider/PollinationsAI.py): add audio generation support and enhance model handling

* fix(g4f/providers/response.py): remove duplicate Audio class definition

---------

Co-authored-by: kqlio67 <>
2025-03-09 21:21:09 +01:00
H Lohaus
247d48d153
Merge pull request #2787 from hlohaus/27Feb
Add missing Audio model
2025-03-09 19:57:23 +01:00
hlohaus
eb05b87882 Add missing Audio model 2025-03-09 19:56:18 +01:00
kqlio67
c79635aaeb
Update models and providers with improved documentation and code structure (#2786)
* docs(docs/providers-and-models.md): update documentation structure and model listings

* refactor(g4f/debug.py): add type hints and docstrings

* refactor(g4f/tools/run_tools.py): Restructure tool handling and improve modularity

* refactor(g4f/providers/response.py): enhance type hints and code documentation

* feat(g4f/models.py): Update model providers and add new models

* feat(g4f/Provider/Blackbox.py): add encrypted session handling and model updates

* fix(g4f/Provider/ChatGptEs.py): migrate to curl_cffi for request handling and improve error resilience

* feat(g4f/Provider/DeepInfraChat.py): Update default model and add new DeepSeek variants

* feat(g4f/Provider/Free2GPT.py): add Gemini models and streamline headers

* feat(g4f/Provider/FreeGpt.py): Add support for Gemini 1.5 Flash model

* feat(g4f/Provider/Liaobots.py): Add Claude 3.7 models and update default GPT-4o

* fix(g4f/Provider/PollinationsAI.py): Correct model mappings and generation parameters

* feat(g4f/Provider/PollinationsImage.py): Add class identifier label

* chore(g4f/Provider/TeachAnything.py): Update default model and simplify model handling

* (g4f/Provider/Mhystical.py): Remove class implementation

* chore(g4f/Provider/Prodia.py > g4f/Provider/not_working/Prodia.py): mark Prodia provider as non-working

* feat(g4f/Provider/Blackbox.py): Add Claude 3.7 Sonnet model alias

* chore(g4f/models.py): Update model configurations

* fix(g4f/Provider/ChatGptEs.py): improve request reliability and nonce detection

---------

Co-authored-by: kqlio67 <>
2025-03-09 19:46:27 +01:00
H Lohaus
17a99b684a
Merge pull request #2783 from xtekky/27Feb
Add support for crewai, Fix infinity run in OpenaiChat
2025-03-09 19:28:50 +01:00
hlohaus
14817cdd66 Audio model support in PollinationsAI
Allow Fullscreen for Youtube in Gemini
2025-03-06 23:19:57 +01:00
hlohaus
da0cc3fdfc Update models list 2025-03-06 20:18:02 +01:00
hlohaus
eb4e90e8ee Add support for crewai, Fix infinity run in OpenaiChat 2025-03-06 20:13:18 +01:00
H Lohaus
b064f37ff7
Update README.md 2025-03-06 17:46:30 +01:00
H Lohaus
d53b37e91d
Merge pull request #2778 from xtekky/27Feb
Hide request login in api
2025-03-06 17:45:59 +01:00
hlohaus
f358567ccc Update HuggingFace model list 2025-03-06 17:42:06 +01:00
hlohaus
571aa2f0c3 Refresh cookies on error in OpenaiChat 2025-03-06 17:34:31 +01:00
hlohaus
23814d3c8c Hide request login in api
Add Grok provider
Update liaobots provider
2025-03-04 16:58:41 +01:00
H Lohaus
70712708ea
Merge pull request #2768 from hlohaus/27Feb
Add ToolSupportProvider
2025-03-01 10:47:09 +01:00
hlohaus
6ce2875a74 Add ToolSupportProvider 2025-03-01 10:25:51 +01:00
hlohaus
d9f90ff8bb Add ToolSupportProvider 2025-03-01 10:17:27 +01:00
hlohaus
a0e8559fc3 Add ToolSupportProvider 2025-03-01 10:16:39 +01:00
hlohaus
fa086e23af Fix unit tests 2025-03-01 09:45:52 +01:00
hlohaus
d11aabcd56 Add ToolSupportProvider 2025-03-01 09:38:57 +01:00
hlohaus
989f02fc31 Add ToolSupportProvider 2025-03-01 01:46:04 +01:00
H Lohaus
c4cdbdb500
Update README.md 2025-02-28 22:13:09 +01:00
H Lohaus
33e91864d2
Merge pull request #2766 from xtekky/27Feb
Add langchain integration
2025-02-28 09:37:21 +01:00
hlohaus
963e0104ad Add gpt-4.5 model 2025-02-28 09:36:15 +01:00
hlohaus
510d9d9bcd Add LangChain Documenation Example 2025-02-28 00:14:29 +01:00