Commit graph

3929 commits

Author SHA1 Message Date
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
hlohaus
d6e0cfaae6 Fix user retrieval logic in API key validation to ensure user is set correctly 2025-09-04 12:12:26 +02:00
hlohaus
2dfa807cfb Refactor provider type determination to use 'chat' for non-image models and update download URL configuration 2025-09-04 12:07:42 +02:00
hlohaus
01e7af68c0 Enhance error logging for invalid G4F API keys by capturing exception details 2025-09-04 11:15:03 +02:00
hlohaus
ad9069f3ad Refactor get_alias method to prioritize first alias if available 2025-09-04 08:24:06 +02:00
hlohaus
d6e2bf2c9e Fix secret validation logic to allow non-negative time differences 2025-09-04 08:01:05 +02:00
hlohaus
5ebe7763de Improve logging for invalid G4F API keys 2025-09-04 07:18:39 +02:00
hlohaus
b400ceee3b Log invalid requests 2025-09-04 06:38:27 +02:00
hlohaus
3fc69e0a99 Log invalid requests 2025-09-04 06:32:03 +02:00
hlohaus
9dd90991b6 Update backend_api.py 2025-09-04 06:03:54 +02:00
hlohaus
7c5ec5325a Update EasyChat and OpenRouter classes, modify backend API timing, and enhance website rendering 2025-09-04 02:42:04 +02:00
H Lohaus
e5e2737789
Merge pull request #3159 from 3mora2/main
add upload_file
2025-09-03 18:37:04 +02:00
H Lohaus
6935580bd7
Update g4f/image/__init__.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-03 17:11:43 +02:00
Ammar
c49e5b94b3 Update LMArena.py 2025-08-30 04:20:11 +03:00
Ammar
fe24210db2 add upload_file
- add upload_file
- add conversation_mode
- add temporary
2025-08-29 16:27:41 +03:00
H Lohaus
9423a23003
Update build-packages.yml 2025-08-27 19:29:03 +02:00