Commit graph

2805 commits

Author SHA1 Message Date
Heiner Lohaus
afc94b2e36 Fix unitests 2025-01-05 20:26:51 +01:00
Heiner Lohaus
13b6fdef98 Add files requirements 2025-01-05 20:20:25 +01:00
Heiner Lohaus
12c413fd2e Add Edge as Browser for nodriver
Fix for RetryProviders doesn't retry
Add retry and continue for DuckDuckGo provider
Add cache for Cloudflare provider
Add cache for prompts on gui home
Add scroll to bottom checkbox in gui
Improve prompts on home gui
Fix response content type in api for files
2025-01-05 17:02:15 +01:00
H Lohaus
9fd4e3c755
Update README.md 2025-01-03 20:56:25 -08:00
H Lohaus
14a6c97777
Merge pull request #2537 from hlohaus/cont
Fix websearch with special chars
2025-01-03 21:27:26 +01:00
Heiner Lohaus
a57adbee97 Fix websearch with special chars 2025-01-03 21:26:20 +01:00
H Lohaus
04624f2dfa
Merge pull request #2532 from kqlio67/main
Enhance Provider Performance
2025-01-03 20:40:19 +01:00
H Lohaus
63a81fd662
Merge pull request #2536 from hlohaus/cont
Support continue messages in Airforce
2025-01-03 20:40:03 +01:00
Heiner Lohaus
6e0bc147b5 Support continue messages in Airforce
Add auth caching for OpenAI ChatGPT
Some provider improvments
2025-01-03 20:35:46 +01:00
kqlio67
f028acfefe Update g4f/Provider/DDG.py 2025-01-03 12:31:49 +02:00
H Lohaus
48c4183344
Update README.md 2025-01-03 11:26:12 +01:00
kqlio67
175cf16361 (g4f/Provider/DDG.py): The provider has been updated to the new version-3 2025-01-03 09:35:22 +02:00
kqlio67
dd75051d65 (g4f/Provider/DDG.py): The provider has been updated to the new version-2 2025-01-03 09:34:18 +02:00
kqlio67
c0a6c6f8de (g4f/Provider/DDG.py): The provider has been updated to the new version 2025-01-03 09:33:21 +02:00
kqlio67
acdb8670d4 The old version of the provider is back 2025-01-03 09:20:09 +02:00
kqlio67
08fca338ba Update g4f/models.py 2025-01-03 09:13:19 +02:00
kqlio67
ee0affd8dc Update docs/providers-and-models.md g4f/models.py g4f/Provider/Blackbox.py g4f/Provider/FreeGpt.py g4f/Provider/GizAI.py g4f/Provider/Liaobots.py g4f/Provider/needs_auth/GeminiPro.py 2025-01-03 09:11:48 +02:00
kqlio67
63c68c12e9 Fix conflicts 2025-01-03 08:34:37 +02:00
H Lohaus
b3ea96bb23
Merge pull request #2533 from hlohaus/cont
Add ignored-providers argument to gui
2025-01-03 03:04:21 +01:00
Heiner Lohaus
b0bc665621 Add ignored-providers argument to gui 2025-01-03 03:03:15 +01:00
H Lohaus
c5ba78c7e1
Merge pull request #2530 from hlohaus/cont
Add Anthropic provider
2025-01-03 02:56:06 +01:00
Heiner Lohaus
1b30651d43 Fix: [Errno 36] File name too long 2025-01-03 02:49:34 +01:00
Heiner Lohaus
486e9a9122 Add login_url to authed providers
Create a home page for the GUI
Fix CopyButton in Code Highlight
2025-01-03 02:40:21 +01:00
Heiner Lohaus
5b74a22cf9 Fix unittests 2025-01-02 03:19:39 +01:00
Heiner Lohaus
7a19a6c941 Fix unittests 2025-01-02 02:59:46 +01:00
Heiner Lohaus
74a289ae64 Add Anthropic provider 2025-01-02 02:33:09 +01:00
H Lohaus
6d7bb6aa2e
Update __init__.py 2025-01-01 15:00:56 +01:00
H Lohaus
5fcedfd524
Update tools 2025-01-01 15:00:45 +01:00
H Lohaus
a1d7cb43b1
Merge pull request #2526 from hlohaus/cont
Add files support, scrape and refine your data
2025-01-01 14:11:52 +01:00
Heiner Lohaus
fe88b57dfa Add File API Documentation for Python and JS 2025-01-01 14:10:48 +01:00
Heiner Lohaus
0d59789eed Add File API Documentation for Python and JS
Format Bucket Placeholder in GUI
2025-01-01 14:01:33 +01:00
Heiner Lohaus
7893a0835e Add filessupport, scrape and refine your data
Remove Webdriver usages
Add continue messages for other providers
2025-01-01 04:20:02 +01:00
kqlio67
90360ccfa6
fix: Update deprecated DuckDuckGo search backend from 'api' to 'auto' (#2516)
* fix: Update deprecated DuckDuckGo search backend from 'api' to 'auto'

Fixes UserWarning: 'api' backend is deprecated, using backend='auto'
- Updated default backend parameter from 'api' to 'auto' in search function
- Aligns with latest duckduckgo-search library recommendations

* Update g4f/Provider/Blackbox.py

* Fix response_format=b64_json (g4f/client/__init__.py)

* Update g4f/Provider/Blackbox2.py g4f/Provider/BlackboxCreateAgent.py

---------

Co-authored-by: kqlio67 <>
2024-12-30 03:04:06 +01:00
H Lohaus
9a5c3378c1
Merge pull request #2518 from xtekky/newww
Fix missing NoneType in old python versions
2024-12-30 02:59:20 +01:00
Heiner Lohaus
66c6abd893 Fix missing NoneType in old python versions 2024-12-30 02:57:20 +01:00
Heiner Lohaus
75fe95cbed Add continue messages support,
Remove old text_to_speech service from gui
Update gui and client readmes,
Add HuggingSpaces group provider;
Add providers parameters config forms to gui
2024-12-30 02:51:36 +01:00
kqlio67
e0f5e83729
Update docs/. etc/. g4f/. README.md (#2515)
Co-authored-by: kqlio67 <>
2024-12-28 20:11:48 +01:00
Heiner Lohaus
14c93055ba Add glhfChat provider 2024-12-28 19:29:46 +01:00
Heiner Lohaus
ac087b118b Fix gui api 2024-12-28 18:06:11 +01:00
H Lohaus
86e36efe6b
Add Path and PathLike support when uploading images (#2514)
* Add Path and PathLike support when uploading images
Improve raise_for_status in special cases
Move ImageResponse to providers.response module
Improve OpenaiChat and OpenaiAccount providers
Add Sources for web_search in OpenaiChat
Add JsonConversation for import and export conversations to js
Add RequestLogin response type
Add TitleGeneration support in OpenaiChat and gui
* Improve Docker Container Guide in README.md
* Add tool calls api support, add search tool support
2024-12-28 16:50:08 +01:00
Tekky
9918df98b3
. 2024-12-21 15:04:21 +01:00
H Lohaus
43deaecdbd
Merge pull request #2495 from hlohaus/12345
Fix issue with get_cookies from nodriver in OpenaiChat
2024-12-18 19:24:08 +01:00
Heiner Lohaus
2a853f03c9 Fix unittests 2024-12-18 19:22:37 +01:00
Heiner Lohaus
6390fccafd Fix unittests 2024-12-18 13:04:50 +01:00
Heiner Lohaus
af677717ee Fix issue with get_cookies from nodriver in OpenaiChat 2024-12-18 02:28:26 +01:00
kqlio67
821e78d9e6
feat(provider/blackbox): update API validation patterns and enhance request headers (#2494)
* feat(blackbox2): update license key pattern

- Change regex pattern from 'j= to v=' in license_pattern
- Maintain consistent error handling and retry logic
- Preserve header configuration for API requests

* feat(blackbox): update API key pattern and add accept-language header

- Change regex pattern from 'w= to p=' in key_pattern for validation
- Add accept-language header to API request headers

* refactor(blackbox): enhance UUID validation and regex pattern

- Implement robust UUID validation with context checking
- Update regex pattern to use dynamic character matching
- Add helper function for validating UUID context

* refactor(blackbox2): simplify license key validation

- Update regex pattern from dynamic format to static 'v=' pattern
- Remove context validation helper function
- Add docstring for license key validation method

---------

Co-authored-by: kqlio67 <>
2024-12-17 21:18:24 +01:00
H Lohaus
bbb858249b
Improve gradient in gui, show only models with enabled providers (#2492)
- **Cloudflare Provider**: Added error handling for missing requirements when fetching arguments.
- **Copilot Provider**: Updated the prompt formatting to use a maximum length function, improving message handling.
- **PollinationsAI Provider**: Adjusted the prompt length to a maximum of 5000 characters.
- **GitHub Copilot Provider**: Updated to use `ClientSession` for better session management.
- **CSS Updates**: Enhanced the gradient styling in the GUI for a more visually appealing interface.
- **JavaScript Updates**: Added functionality to toggle search options in the chat interface.
2024-12-17 21:17:40 +01:00
H Lohaus
0332d0d820
Merge pull request #2490 from hlohaus/ccccc
Fix docker build and fix api_base issue in OpenaiAPI providers
2024-12-16 19:43:03 +01:00
H Lohaus
a45e8318b0
Update README.md 2024-12-16 19:42:06 +01:00
Heiner Lohaus
75cb6163ae Use other model for copilot 2024-12-16 19:34:22 +01:00