Commit Graph

885 Commits

Author SHA1 Message Date
kqlio67
8d5d522c4e
feat(g4f): Major provider updates and new model support (#2437)
* refactor(g4f/Provider/Airforce.py): Enhance Airforce provider with dynamic model fetching

* refactor(g4f/Provider/Blackbox.py): Enhance Blackbox AI provider configuration and streamline code

* feat(g4f/Provider/RobocodersAPI.py): Add RobocodersAPI new async chat provider

* refactor(g4f/client/__init__.py): Improve provider handling in async_generate method

* refactor(g4f/models.py): Update provider configurations for multiple models

* refactor(g4f/Provider/Blackbox.py): Streamline model configuration and improve response handling

* feat(g4f/Provider/DDG.py): Enhance model support and improve conversation handling

* refactor(g4f/Provider/Copilot.py): Enhance Copilot provider with model support

* refactor(g4f/Provider/AmigoChat.py): update models and improve code structure

* chore(g4f/Provider/not_working/AIUncensored.): move AIUncensored to not_working directory

* chore(g4f/Provider/not_working/Allyfy.py): remove Allyfy provider

* Update (g4f/Provider/not_working/AIUncensored.py g4f/Provider/not_working/__init__.py)

* refactor(g4f/Provider/ChatGptEs.py): Implement format_prompt for message handling

* refactor(g4f/Provider/Blackbox.py): Update message formatting and improve code structure

* refactor(g4f/Provider/LLMPlayground.py): Enhance text generation and error handling

* refactor(g4f/Provider/needs_auth/PollinationsAI.py): move PollinationsAI to needs_auth directory

* refactor(g4f/Provider/Liaobots.py): Update Liaobots provider models and aliases

* feat(g4f/Provider/DeepInfraChat.py): Add new DeepInfra models and aliases

* Update (g4f/Provider/__init__.py)

* Update (g4f/models.py)

* g4f/models.py

* Update g4f/models.py

* Update g4f/Provider/LLMPlayground.py

* Update (g4f/models.py g4f/Provider/Airforce.py g4f/Provider/__init__.py g4f/Provider/LLMPlayground.py)

* Update g4f/Provider/__init__.py

* Update (g4f/Provider/Airforce.py)

---------

Co-authored-by: kqlio67 <kqlio67@users.noreply.github.com>
2024-11-28 17:50:24 +01:00
H Lohaus
971a01eb5c
Update OpenaiChat.py 2024-11-28 10:59:49 +01:00
H Lohaus
a292ca317b
Update OpenaiChat.py 2024-11-28 10:58:33 +01:00
Heiner Lohaus
651df0cf82 Add some arguments to chat completion api, update discord links 2024-11-27 14:44:24 +01:00
H Lohaus
fdb46662d5
Merge pull request #2432 from hlohaus/model
Add duckduckgo-search to slim requirements,
2024-11-27 00:03:03 +01:00
Heiner Lohaus
4ae3d98df8 Sort .har files by date, filter None from result 2024-11-26 19:28:41 +01:00
H Lohaus
b99717df39
Merge pull request #2430 from hlohaus/model
Add armv7 docker image, Remove Bing provider, add update banner
2024-11-26 11:54:17 +01:00
Heiner Lohaus
6b48af1757 Add armv7 docker image, Remove Bing provider, add update banner 2024-11-25 20:34:50 +01:00
H Lohaus
f01f679965
Merge pull request #2424 from ufoptg/patch-1
FIX: Bug fix for flux-pro aka flux-schnell
2024-11-25 15:48:44 +01:00
Heiner Lohaus
442185eac2 Fix provider selection in images generate
Improve image generation in Airforce provider
2024-11-25 15:44:17 +01:00
TrueSaiyan
30b9707657
FIX: Bug fix for flux-pro aka flux-schnell
https://api.airforce/imagine2?model=flux-4o

https://api.airforce/imagine2?model=flux-schnell 
and
https://api.airforce/imagine2?model=flux-1.1-pro

all generate same images but "Flux-1.1-Pro" doesnt work
2024-11-25 21:28:50 +08:00
Heiner Lohaus
46038c6a20 Add .har file support for Copilot
Update provider in Vision documentation
Hide
2024-11-25 13:27:56 +01:00
H Lohaus
804a80bc7c
Arm2 (#2414)
* Fix arm v7 build / improve api

* Update stubs.py

* Fix unit tests
2024-11-24 17:43:45 +01:00
H Lohaus
f36e6a2e3b
Fix provider api response (#2408)
* Update __init__.py

* Update __init__.py

* Update Gemini.py

* Update Gemini.py

* Update Gemini.py

* Update Gemini.py

* Update internet.py
2024-11-24 13:30:10 +01:00
H Lohaus
5d68b570c8
Update GithubCopilot.py 2024-11-23 09:50:59 +01:00
H Lohaus
431db7b8ea
Update api / add a synthesize and upload_cookies endpoint (#2406)
* Add web_search function to OpenaiChat provider
* GithubCopilot provider added, it need a api_key
* Remove nodriver login in Gemini synthesize

* Update api / add a synthesize and upload_cookies endpoint
2024-11-23 00:17:35 +01:00
H Lohaus
e8bd24a25b
Add speech synthesize from Gemini (#2404)
* Improve slim docker image example, clean up OpenaiChat provider

* Enhance event loop management for asynchronous generators

* Fix attribute " shutdown_default_executor" not found in old python versions

* asyncio file created with all async helpers

* Add speech synthesize from Gemini. You can use it without a account
2024-11-22 01:50:48 +01:00
H Lohaus
e4bfd9db5c
Improve slim docker image example, clean up OpenaiChat provider (#2397)
* Improve slim docker image example, clean up OpenaiChat provider

* Enhance event loop management for asynchronous generators

* Fix attribute " shutdown_default_executor" not found in old python versions

* asyncio file added with all async helpers
2024-11-21 14:05:50 +01:00
Heiner Lohaus
1e2c18580c Improve reading .har file in OpenaiChat 2024-11-21 08:22:48 +01:00
Heiner Lohaus
6f2b6cccbd Add upload cookie files 2024-11-21 07:14:36 +01:00
H Lohaus
eae317a166
Support synthesize in Openai generator (#2394)
* Improve download of generated images, serve images in the api

* Add support for conversation handling in the api

* Add orginal prompt to image response

* Add download images option in gui, fix loading model list in Airforce

* Support speech synthesize in Openai generator
2024-11-21 05:00:08 +01:00
H Lohaus
ffb4b0d162
Improve download of generated images, serve images in the api (#2391)
* Improve download of generated images, serve images in the api
Add support for conversation handling in the api

* Add orginal prompt to image response

* Add download images option in gui, fix loading model list in Airforce

* Add download images option in gui, fix loading model list in Airforce
2024-11-20 19:58:16 +01:00
H Lohaus
dba41cda56
Fix image generation in OpenaiChat (#2390)
* Fix image generation in OpenaiChat

* Add PollinationsAI provider with image and text generation
2024-11-20 09:52:38 +01:00
kqlio67
ea346971df
New RobocodersAPI provider with providers enhancement and client updates (#2388)
* refactor(g4f/Provider/Airforce.py): Enhance Airforce provider with dynamic model fetching

* refactor(g4f/Provider/Blackbox.py): Enhance Blackbox AI provider configuration and streamline code

* feat(g4f/Provider/RobocodersAPI.py): Add RobocodersAPI new async chat provider

* refactor(g4f/client/__init__.py): Improve provider handling in async_generate method

* refactor(g4f/models.py): Update provider configurations for multiple models

* refactor(g4f/Provider/Blackbox.py): Streamline model configuration and improve response handling

---------

Co-authored-by: kqlio67 <kqlio67@users.noreply.github.com>
2024-11-20 09:51:29 +01:00
Heiner Lohaus
58fa409eef Add Cerebras and HuggingFace2 provider, Fix RubiksAI provider
Add support for image generation in Copilot provider
2024-11-20 02:34:47 +01:00
Heiner Lohaus
1fe59623b2 Add image upload to Copilot provider
Add --cookie-browsers argument to cli
2024-11-19 20:26:00 +01:00
Heiner Lohaus
8f3fbee0d8 Add show log option to gui 2024-11-19 15:26:03 +01:00
Heiner Lohaus
c3103164ce Add image upload to Copilot provider 2024-11-19 11:03:50 +01:00
Heiner Lohaus
08085d345b Fix loading models in Airforce provider 2024-11-19 10:59:49 +01:00
Heiner Lohaus
b79a4d6aeb Ask for auth on image upload 2024-11-19 10:39:22 +01:00
Heiner Lohaus
7c10a036ed Add image upload to Copilot provider
Remove prompt lock from gui
Fix discord link in gui
2024-11-19 10:23:24 +01:00
Heiner Lohaus
2fe43166cc Update unittests 2024-11-18 18:23:16 +01:00
Heiner Lohaus
8bc456f3b6 Add account support in Copilot provider 2024-11-18 17:53:15 +01:00
Heiner Lohaus
f1ef23285a Fix load model list i AirforceChat provider
Add Microsoft Copilot provider
Show image support in the model list of the gui
2024-11-18 15:41:45 +01:00
H Lohaus
56beb19fef
Update Blackbox.py 2024-11-18 11:35:26 +01:00
H Lohaus
4526dd46e3
Update HuggingChat.py 2024-11-18 11:21:32 +01:00
Heiner Lohaus
2a7770ea51 Add full nodriver support to OpenaiChat
Move small docker images before old images
2024-11-18 02:53:50 +01:00
Heiner Lohaus
b7a8e03220 Update docker tags in workfloe for slim images,
Update read har file in OpenaiChat provider
Remove webdriver in OpenaiChat provider
Add supported_encodings and supported_encodings in OpenaiChat
2024-11-17 19:51:26 +01:00
Heiner Lohaus
ea1448001d Add nodriver to Gemini provider,
Add slim docker image with google-chrome usage,
Add the new docker images to publish worklow,
Update requirements.txt and pip requirements
2024-11-17 11:06:37 +01:00
H Lohaus
6ce493d4df
Fix api streaming, fix AsyncClient (#2357)
* Fix api streaming, fix AsyncClient, Improve Client class, Some providers fixes, Update models list, Fix some tests, Update model list in Airforce provid
er, Add OpenAi image generation url to api, Fix reload and debug in api arguments, Fix websearch in gui

* Fix Cloadflare and Pi and AmigoChat provider

* Fix conversation support in DDG provider, Add cloudflare bypass with nodriver

* Fix unittests without curl_cffi
2024-11-16 13:19:51 +01:00
Tekky
6ac545445a minor improvements for release 2024-11-15 11:58:58 +01:00
Tekky
66d3cecc59 Ai4Chat not working 2024-11-15 11:24:56 +01:00
Tekky
f65ebd9851
Merge pull request #2313 from kqlio67/main
Major Provider Updates and Documentation Restructuring
2024-11-15 11:18:56 +01:00
Tekky
b377931334 quick fix for Conflicts 2024-11-15 11:18:41 +01:00
foxfire52
f38428ab23
Improve logging implementation (#2347) 2024-11-15 07:38:51 +01:00
kqlio67
054eef11cb ### refactor(g4f/Provider/Blackbox.py): Optimize fetch_validated method 2024-11-13 22:48:01 +02:00
kqlio67
df08275b39 ### refactor(g4f/Provider/Blackbox.py): Optimize fetch_validated method 2024-11-13 22:46:46 +02:00
kqlio67
4d4190b3c4 feat(g4f/Provider/Blackbox.py): Improve validated token retrieval mechanism 2024-11-13 16:16:44 +02:00
kqlio67
37a8e8d2ad Merge remote-tracking branch 'upstream/main' 2024-11-13 14:46:59 +02:00
kqlio67
795e42a296 Update (g4f/Provider/needs_auth/GeminiPro.py) 2024-11-13 14:38:39 +02:00