Commit graph

3944 commits

Author SHA1 Message Date
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
hlohaus
537dd8a572 Update build-packages.yml 2025-08-22 20:43:48 +02:00
H Lohaus
59d638de7b
Merge pull request #3140 from xtekky/copilot/fix-3139
Add build artifacts to created releases
2025-08-22 20:28:57 +02:00
copilot-swe-agent[bot]
d900d55579 Complete build artifacts implementation with testing and documentation
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2025-08-22 18:25:17 +00:00
copilot-swe-agent[bot]
b26c6abc2a Add Debian package builds and fix release asset uploads
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2025-08-22 18:23:08 +00:00
copilot-swe-agent[bot]
9e1803af0d Initial plan 2025-08-22 18:17:23 +00:00
hlohaus
75124e503f Update build-packages.yml 2025-08-22 19:31:03 +02:00
hlohaus
d7ae06617b Update build-packages.yml 2025-08-22 15:55:37 +02:00
H Lohaus
f9ad738ac7
Update build-packages.yml 2025-08-22 15:01:12 +02:00
H Lohaus
c0483fb738
Update build-packages.yml 2025-08-22 14:52:21 +02:00
H Lohaus
07e08d417a
Update build-packages.yml 2025-08-22 14:48:30 +02:00