Commit graph

3017 commits

Author SHA1 Message Date
Arken1xs
68414ece4c
Small fixes and updates around various providers (#2717)
* Update DDG.py: added Llama 3.3 Instruct and o3-mini

Duck.ai now supports o3-mini, and previous Llama 3.1 70B is now replaced by Llama 3.3 70B.

* Update DDG.py: change Llama 3.3 70B Instruct ID to "meta-llama/Llama-3.3-70B-Instruct-Turbo"

Fixed typo in full model name

* Update Cerebras.py: add "deepseek-r1-distill-llama-70b" to the models list

Cerebras now provides inference for a DeepSeek-R1 distilled to Llama 3.3 70B as well.

* Update models.py: reflect changes in DDG provider

- Removed DDG from best providers list for Llama 3.1 70B
- Added DDG to best providers list for o3-mini and Llama 3.3 70B

* A small update in HuggingFaceInference get_models() method

Previously, get_models() method was returning "TypeError: string indices must be integers, not 'str' on line 31" from time to time, possibly because of network error so the models list couldn't load and method was trying to parse this data. Now the code is updated in order to check for any potential errors first.

* Update BlackboxAPI.py: remove unused imports 

format_prompt() and JSON library are not being used here, so they may be removed safely.

* Update copilot.yml

This job is failing due to the error in JavaScript code; this commit is trying to fix it.

* Update providers-and-models.md to reflect latest changes

Updated models list and removed providers that are currently not working.
2025-02-19 16:34:30 +01:00
H Lohaus
292d5b69cd
Merge pull request #2708 from xtekky/10Feb
Fix styling on mobile
2025-02-12 18:24:48 +01:00
hlohaus
5676752ca4 Fix copy_images, Add support .arc files 2025-02-12 16:30:24 +01:00
hlohaus
226c69da93 Improve styling mobile 2025-02-11 18:58:53 +01:00
hlohaus
e9f96629a0 Fix styling on mobile 2025-02-10 22:36:08 +01:00
H Lohaus
34b815b38e
Merge pull request #2705 from kqlio67/main
Updated Blackbox/CablyAI/PollinationsAI provider
2025-02-10 21:36:16 +01:00
kqlio67
bd8071b3ed feat(g4f/gui/client/static/js/chat.v1.js): enhance sidebar interactions 2025-02-10 22:33:47 +02:00
kqlio67
fd1d589ca1 (g4f/gui/client/static/css/style.css): Enhance mobile responsiveness and fix layout issues 2025-02-10 22:31:00 +02:00
H Lohaus
1fd27e7d39
Merge pull request #2706 from mikebilly/main
add ssl keyfile and certfile
2025-02-10 21:23:22 +01:00
H Lohaus
ed02be32e1
Merge pull request #2707 from hlohaus/8Feb
Fix check pipline tag in HuggingFace
2025-02-10 21:22:39 +01:00
hlohaus
e66ee9e0d0 Fix check pipline tag in HuggingFace 2025-02-10 21:21:19 +01:00
H Lohaus
722b1c1a01
Merge pull request #2701 from hlohaus/8Feb
Fix issue with demo mode
2025-02-10 21:03:44 +01:00
hlohaus
19c318e391 Cache pipline tag in HuggingFaceAPI 2025-02-10 20:58:37 +01:00
kqlio67
d93853afd8 feat(g4f/image/copy_images.py): improve image handling with Unicode support and safer encoding 2025-02-10 21:17:10 +02:00
kqlio67
b1de624963 fix(g4f/Provider/PollinationsAI.py): Remove duplicate model alias 2025-02-10 19:50:35 +02:00
kqlio67
3f26a71913 fix(g4f/Provider/Blackbox.py): update model handling and premium authentication 2025-02-10 19:35:32 +02:00
Hoàng Đức Mạnh
f2d176ccc6
Update __init__.py 2025-02-11 00:06:52 +07:00
Hoàng Đức Mạnh
4f85d02294
Update cli.py 2025-02-11 00:06:30 +07:00
kqlio67
d678255397 feat(g4f/Provider/Blackbox.py): add premium model support and validation 2025-02-10 15:44:37 +02:00
kqlio67
a7f19ea588 refactor(g4f/Provider/CablyAI.py > g4f/Provider/needs_auth/CablyAI.py): restructure provider and simplify model handling 2025-02-10 13:35:20 +02:00
kqlio67
ebd8bb44a9 fix(g4f/gpt4free/g4f/Provider/Blackbox.py), (session): Update API request data structure 2025-02-10 13:09:00 +02:00
hlohaus
0d57ea5051 Fix provider specific api endpoints 2025-02-09 17:39:57 +01:00
hlohaus
776d7ec18e Add vision models to HuggingFace provider 2025-02-09 17:25:22 +01:00
hlohaus
2d6ce560d4 Fix issue with demo mode
Fix issue with share API
2025-02-08 18:35:05 +01:00
H Lohaus
17a0fd78d3
Merge pull request #2698 from kqlio67/main
Optimization and bug fixes for PollinationsAI/Blackbox provider: improved error handling, model validation, and HTTP request processing
2025-02-07 19:32:36 +01:00
kqlio67
59c65a096f feat(g4f/Provider/Blackbox.py): Add Gemini-Flash-2.0 model and improve premium handling 2025-02-07 19:50:21 +02:00
kqlio67
21eecea02f Optimization and bug fixes for PollinationsAI provider: improved error handling, model validation, and HTTP request processing 2025-02-07 16:50:35 +02:00
H Lohaus
ff191be4d0
Update README.md 2025-02-07 14:02:59 +01:00
H Lohaus
22f1147ae3
Update README.md 2025-02-07 13:57:05 +01:00
kqlio67
88e7ef98f0
Adding New Models and Enhancing Provider Functionality (#2689)
* Adding New Models and Enhancing Provider Functionality

* fix(core): handle model errors and improve configuration

- Import ModelNotSupportedError for proper exception handling in model resolution
- Update login_url configuration to reference class URL attribute dynamically
- Remove redundant typing imports after internal module reorganization

* feat(g4f/Provider/PerplexityLabs.py): Add new Perplexity models and update provider listings

- Update PerplexityLabs provider with expanded Sonar model family including pro/reasoning variants
- Add new text models: sonar-reasoning-pro to supported model catalog
- Standardize model naming conventions across provider documentation

* feat(g4f/models.py): add Sonar Reasoning Pro model configuration

- Add new  model to Perplexity AI text models section
- Include model in ModelUtils.convert mapping with PerplexityLabs provider
- Maintain consistent configuration pattern with existing Sonar variants

* feat(docs/providers-and-models.md): update provider models and add new reasoning model

- Update PerplexityLabs text models to standardized sonar naming convention
- Add new sonar-reasoning-pro model to text models table
- Include latest Perplexity AI documentation references for new model

* docs(docs/providers-and-models.md): update AI providers documentation

- Remove deprecated chatgptt.me from no-auth providers list
- Delete redundant Auth column from HuggingSpace providers table
- Update PerplexityLabs model website URLs to sonar.perplexity.ai
- Adjust provider counts for GPT-4/GPT-4o models in text models section
- Fix inconsistent formatting in image models provider listings

* chore(g4f/models.py): remove deprecated ChatGptt provider integration

- Remove ChatGptt import from provider dependencies
- Exclude ChatGptt from default model's best_provider list
- Update gpt_4 model configuration to eliminate ChatGptt reference
- Modify gpt_4o vision model provider hierarchy
- Adjust gpt_4o_mini provider selection parameters

BREAKING CHANGE: Existing integrations using ChatGptt provider will no longer function

* Disabled provider (g4f/Provider/ChatGptt.py > g4f/Provider/not_working/ChatGptt.py): Problem with Cloudflare

* fix(g4f/Provider/CablyAI.py): update API endpoints and model configurations

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

* feat(g4f/models.py): Add Hermes-3 model and enhance provider configs

* feat(g4f/Provider/CablyAI.py): Add free tier indicators to model aliases

* refactor(g4f/tools/run_tools.py): modularize thinking chunk handling

* fix(g4f/Provider/DeepInfraChat.py): resolve duplicate keys and enhance request headers

* feat(g4f/Provider/DeepInfraChat.py): Add multimodal image support and improve model handling

* chore(g4f/models.py): update default vision model providers

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

* Update docs/client.md

* docs(docs/providers-and-models.md): Update DeepInfraChat models documentation

* feat(g4f/Provider/DeepInfraChat.py): add new vision models and expand model aliases

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

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

---------

Co-authored-by: kqlio67 <>
2025-02-07 13:54:00 +01:00
H Lohaus
5d35b746f2
Merge pull request #2688 from hlohaus/space
Add zerogpu_uuid to demo
2025-02-07 13:21:29 +01:00
hlohaus
ad5d09fbbe Fix show new Window Button 2025-02-07 13:13:09 +01:00
hlohaus
5b454f6626 Add missing import 2025-02-06 21:46:11 +01:00
hlohaus
383ec53927 Update Webmanifest 2025-02-06 21:41:32 +01:00
hlohaus
035daa225b Add FluxDev to G4F provider
Improve image preview in FluxDev
Add zerogpu_token to FluxDev
Add HuggingSpace header in Demo
Add new window button in Demo
2025-02-06 21:24:59 +01:00
hlohaus
31a4812d7a Improve copy_images api
Update share target support
Improve search enabled hightlight
2025-02-05 22:11:19 +01:00
hlohaus
ead25d33e9 Check for exception in generate of G4F 2025-02-05 19:37:11 +01:00
hlohaus
e208303598 Check for exception in generate of G4F 2025-02-05 19:33:15 +01:00
hlohaus
fb58feae87 Check for exception in generate of G4F 2025-02-05 19:30:47 +01:00
hlohaus
cbd663511c Check for exception in generate of G4F 2025-02-05 17:22:34 +01:00
hlohaus
9994bb67a1 Add zerogpu_uuid to demo 2025-02-05 17:07:20 +01:00
H Lohaus
9ba283195d
Merge pull request #2686 from hlohaus/space
Add mew G4F provider
2025-02-05 14:16:33 +01:00
hlohaus
be8c3f7cd2 Update model list, Fix model list in CablyAI 2025-02-05 14:06:41 +01:00
hlohaus
88918cb897 Remove login url from error message
Remove print in CablyAI
Fix Vision Support in HuggingSpace provider
Support images in BackendApi provider
Add missing import in Blackbox provider
2025-02-05 13:37:55 +01:00
hlohaus
03d0c3053f Add mew G4F provider 2025-02-05 01:29:11 +01:00
H Lohaus
292ebe7491
Merge pull request #2685 from hlohaus/space
Update README.md
2025-02-04 19:33:06 +01:00
hlohaus
221d6f2ec6 Update README.md 2025-02-04 19:31:31 +01:00
H Lohaus
c0853e68c8
Merge pull request #2683 from sobelmangentz/makenzi
refactor: use dependency injection for RequestConfig
2025-02-04 17:45:42 +01:00
H Lohaus
530ae1d820
Merge pull request #2684 from hlohaus/space
Space
2025-02-04 17:44:53 +01:00
hlohaus
44289e1f91 Add error message on Ratelimit 2025-02-04 17:31:26 +01:00