Commit graph

3944 commits

Author SHA1 Message Date
hlohaus
bc77a9226e Update render function to include version in download URL and improve cache handling 2025-09-07 01:39:12 +02:00
hlohaus
ffae27b3cf Refactor render function in website.py to improve HTML handling and caching logic 2025-09-07 01:02:35 +02:00
hlohaus
09b35403e3 Update g4f_cli.py to call main function from g4f.cli on execution 2025-09-06 21:27:32 +02:00
hlohaus
4f44c149ba Refactor BrowserConfig class: move it from requests to cookies module and update its initialization. 2025-09-06 21:22:15 +02:00
hlohaus
c7bb1538ea Add BrowserConfig initialization in cookies.py and ensure directory creation in SharedTokenManager 2025-09-06 21:20:34 +02:00
hlohaus
aff4e12784 Improve user identity header handling in Copilot provider by conditionally including it based on access token presence. 2025-09-06 20:41:00 +02:00
hlohaus
76a1bb754c Ensure BrowserConfig port is converted to integer when retrieved from environment variable 2025-09-06 20:36:15 +02:00
hlohaus
a4d0a10a4f Update BrowserConfig port retrieval to handle non-integer values from environment variable 2025-09-06 20:32:23 +02:00
hlohaus
bca45481ea Refactor SharedTokenManager to remove async from reloadCredentialsFromFile and update its invocation. Set default host in BrowserConfig to 127.0.0.1. 2025-09-06 20:22:15 +02:00
hlohaus
d0ae94def3 Refactor Copilot provider to improve authentication handling and streamline media uploads; add error handling for user retrieval. Enhance QwenCode provider to manage token validation and refresh logic. Update backend API to include new error handling for model and provider not found scenarios. Add start-browser script for automated Chrome launch. 2025-09-06 20:11:24 +02:00
hlohaus
2bb58a18be Enhance LMArena provider to handle image responses and raise MissingRequirementsError for missing auth files 2025-09-06 19:02:11 +02:00
hlohaus
933fff985b Enhance PuterJS provider to track live model instances and update BrowserConfig for automation tool settings 2025-09-06 16:28:17 +02:00
hlohaus
b4ed1a55da Add more live info 2025-09-06 12:42:51 +02:00
hlohaus
9fbff6347c Refactor Gemini, GeminiCLI, GeminiPro, and QwenCode providers to streamline model handling and track live instances 2025-09-06 12:32:13 +02:00
hlohaus
6607c82d3c Track live model instances in Ollama and Cohere providers, updating count on model retrieval 2025-09-06 12:10:14 +02:00
hlohaus
3df3595e63 Add models_needs_auth flag to Groq provider and enhance get_models method to load API key 2025-09-06 12:01:10 +02:00
hlohaus
5bfea4611a Track live model instances in PollinationsAI, LMArena, OpenaiTemplate, and base_provider classes 2025-09-06 11:48:21 +02:00
hlohaus
1cbf9dfb6a Track live provider instances and update count on success or failure in various providers 2025-09-06 11:28:09 +02:00
hlohaus
6a6a25fba8 Improve error handling in QwenCode and update credential file path retrieval in SharedTokenManager 2025-09-06 10:36:59 +02:00
hlohaus
455f7aa0f6 Add QwenCode provider and OAuth2 support with token management 2025-09-06 09:30:07 +02:00
hlohaus
e1e34eccb3 Enhance Cohere and OpenRouter providers with API key handling and model management improvements 2025-09-05 18:17:48 +02:00
hlohaus
c045a64697 Update README.md 2025-09-05 10:57:53 +02:00
hlohaus
1286ededbb Update README.md 2025-09-05 10:55:21 +02:00
hlohaus
83e1519165 Update Nuitka build script to include --onefile argument and improve output verification 2025-09-05 10:49:11 +02:00
H Lohaus
6aa0a6a535
Update build-nuitka.sh 2025-09-05 10:12:20 +02:00
H Lohaus
3a90353853
Update README.md 2025-09-05 08:12:35 +02:00
H Lohaus
d8709aaf31
Update README.md 2025-09-05 08:04:41 +02:00
H Lohaus
aebc28d515
Update README.md 2025-09-05 07:59:25 +02:00
H Lohaus
4d172f7e72
Update README.md 2025-09-05 07:52:40 +02:00
H Lohaus
1a293b545e
Update README.md 2025-09-05 07:48:24 +02:00
H Lohaus
26897ec9c3
Merge pull request #3164 from TheFirstNoob/main
Fix missing comma
2025-09-05 05:22:06 +02:00
hlohaus
be52b6aff0 Add user information to encryption response in handle_synthesize method 2025-09-05 05:05:17 +02:00
hlohaus
2030bdd62a Fix JSDELIVR_URL replacement in render function to ensure correct path formatting 2025-09-05 04:08:46 +02:00
hlohaus
17b2526f69 Refactor G4F API key decryption to improve error handling and user validation 2025-09-05 04:03:21 +02:00
hlohaus
2832a98454 Refactor error handling in Api class to ensure consistent response for invalid providers 2025-09-05 03:12:13 +02:00
hlohaus
1ddf666da4 Fix owned_by retrieval in Api class to use provider directly 2025-09-05 02:50:19 +02:00
hlohaus
1d4c708726 Add models_needs_auth attribute to FenayAI class and fix owned_by retrieval in Api class 2025-09-05 02:46:09 +02:00
TheFirstNoob
c388606c52
Fix missing comma 2025-09-05 03:35:43 +03:00
hlohaus
b8845f4afe Fix header key formatting in get_provider_models method 2025-09-05 01:52:46 +02:00
hlohaus
92c083440f Remove PollinationsAI from best_provider list for gpt-4.1-nano model 2025-09-05 00:09:15 +02:00
H Lohaus
50760a94e4
Merge pull request #3147 from xtekky/copilot/fix-3144
Upload bucket files as attachments to Microsoft Copilot provider with support for named media files and plain text content
2025-09-05 00:07:41 +02:00
hlohaus
03eef2a226 Enhance Copilot provider to support user identity type in API requests and improve bucket item handling 2025-09-05 00:01:52 +02:00
hlohaus
0ac4239a47 Update Azure output format to PNG and ensure Together model authentication requirement is clear 2025-09-04 22:27:25 +02:00
hlohaus
25b35ddf99 Refactor build scripts and API to enhance model handling and improve timeout functionality 2025-09-04 22:21:42 +02:00
hlohaus
1edd0fff17 Refactor model handling and improve timeout functionality
- Removed empty string mapping from model_map in AnyModelProviderMixin.
- Updated clean_name function to exclude 'chat' from version patterns.
- Added stream_timeout parameter to AsyncGeneratorProvider for more flexible timeout handling.
- Enhanced chunk yielding in AsyncAuthedProvider to support stream_timeout, allowing for better control over asynchronous responses.
2025-09-04 18:11:05 +02:00
hlohaus
e09c08969a Update PollinationsAI model retrieval to use new API endpoint with fallback 2025-09-04 15:16:51 +02:00
H Lohaus
690b95c0af
Merge pull request #3148 from xtekky/copilot/fix-3145
Add Cohere API Provider with Full Streaming and Authentication Support
2025-09-04 13:01:51 +02:00
hlohaus
a1c3ed72c2 Refactor Cohere provider to update API endpoint and improve model retrieval logic 2025-09-04 13:01:15 +02:00
hlohaus
e2f8437cc6 Refactor API key validation to improve error handling and user retrieval logic 2025-09-04 12:35:59 +02:00
hlohaus
f269ea1b4c Fix user retrieval logic to raise an error if user is not set in API key validation 2025-09-04 12:13:03 +02:00