Commit graph

3904 commits

Author SHA1 Message Date
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
hlohaus
3dbb01ce2c Update build 2025-08-27 01:07:16 +02:00
H Lohaus
d9b3e4510e
Merge pull request #3156 from xtekky/copilot/fix-3155
Replace PyInstaller with Nuitka for package building with x64 and ARM64 support
2025-08-27 01:03:36 +02:00
copilot-swe-agent[bot]
ea42788e8d Add validation tests and ARM64 build plan documentation
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2025-08-26 22:55:36 +00:00
copilot-swe-agent[bot]
1f85c85b72 Implement Nuitka-based package building with architecture support
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2025-08-26 22:53:07 +00:00
copilot-swe-agent[bot]
878604fc0f Initial plan 2025-08-26 22:42:00 +00:00
H Lohaus
04a07bb8a3
Merge pull request #3154 from kqlio67/main
refactor: reorganize providers and update model configurations
2025-08-26 23:07:51 +02:00
kqlio67
9bac34fc88 refactor: reorganize providers and update model configurations
- Rename DeepInfraChat to DeepInfra across all files
- Move DeepInfra from needs_auth to main Provider directory
- Rename LMArenaBeta to LMArena throughout codebase
- Move search-related providers to new search subdirectory (GoogleSearch, SearXNG, YouTube)
- Move deprecated providers to not_working directory (Free2GPT, LegacyLMArena, PenguinAI, ImageLabs, har)
- Add new Mintlify provider with custom AI assistant implementation
- Update Anthropic provider with Claude 4 models and Opus 4.1 parameter handling
- Update Grok provider with Grok 4 models and improved streaming support
- Update GithubCopilot with expanded model list including o3-mini, o4-mini, gpt-5 previews
- Update LambdaChat default model from deepseek-r1 to deepseek-llama3.3-70b
- Update TeachAnything default model from gemini-1.5-pro to gemma
- Remove DeepInfra from needs_auth directory
- Update all model_map references from DeepInfraChat to DeepInfra
- Update all model_map references from LMArenaBeta to LMArena
- Add beta_headers support to Anthropic for special features
- Improve Mintlify provider with system prompt handling and streaming
- Update model configurations in models.py to reflect provider changes
2025-08-25 23:50:53 +03:00
hlohaus
0b75e68b51 Update styling 2025-08-25 00:19:42 +02:00
hlohaus
2cf62a8e63 feat: track Azure model failures; stop unlinking auth cache
- g4f/Provider/needs_auth/Azure.py: add class attribute failed: dict[str, int] = {}
- g4f/Provider/needs_auth/Azure.py: before creating async generator, raise MissingAuthError if failed[model] >= 3
- g4f/Provider/needs_auth/Azure.py: on MissingAuthError, increment failed[model] and re-raise with message
- g4f/providers/base_provider.py (AsyncAuthedProvider): comment out cache_file.unlink() in the branch following JSON dump handling
- g4f/providers/base_provider.py (AsyncAuthedProvider): comment out cache_file.unlink() in exception handler for (MissingAuthError, NoValidHarFileError, CloudflareError) before re-authentication
2025-08-23 18:24:18 +02:00
copilot-swe-agent[bot]
37b79b6df8 Handle bucket items with name vs plain text content based on user feedback
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2025-08-23 09:52:09 +00:00
copilot-swe-agent[bot]
9c6d2a93a3 Upload bucket files as attachments instead of using render_messages
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2025-08-23 09:37:04 +00:00
H Lohaus
4adeb2c40f
Merge pull request #3149 from xtekky/copilot/fix-3146
Disable GptOss provider by moving to not_working directory
2025-08-23 11:26:58 +02:00
copilot-swe-agent[bot]
86e6cd8c0c Fix message conversion logic and improve error handling for Cohere provider
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2025-08-23 09:11:28 +00:00
copilot-swe-agent[bot]
24d2a29090 Disable GptOss provider by moving to not_working directory
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2025-08-23 09:10:15 +00:00
copilot-swe-agent[bot]
fa0e37cf40 Implement bucket attachments support in Copilot provider
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2025-08-23 09:09:49 +00:00
copilot-swe-agent[bot]
760f3e348f Implement Cohere API provider with authentication and streaming support
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2025-08-23 09:08:55 +00:00
copilot-swe-agent[bot]
91d630cc4b Initial plan 2025-08-23 09:03:42 +00:00
copilot-swe-agent[bot]
1e144399da Initial plan 2025-08-23 09:03:30 +00:00
copilot-swe-agent[bot]
b604e9d9c2 Initial plan 2025-08-23 09:03:00 +00:00
hlohaus
84d3c78f43 Revert Dockerfile 2025-08-23 02:37:31 +02:00
hlohaus
30465d36dc Revert Dockerfile 2025-08-23 01:52:44 +02:00
hlohaus
8fef9b16f3 Update build-packages.yml 2025-08-23 01:07:15 +02:00
hlohaus
4373ac940f Update build-packages.yml 2025-08-22 22:17:15 +02:00
hlohaus
2a4bd7014d Update build-packages.yml 2025-08-22 21:18:32 +02:00
hlohaus
bb8b7999a0 Update build-packages.yml 2025-08-22 21:08:25 +02:00