Commit graph

3836 commits

Author SHA1 Message Date
hlohaus
4399b432c4 Refactor OpenaiChat authentication flow; replace get_nodriver with async context manager and improve error handling
Update backend_anon_url in har_file.py for correct endpoint
Add async context manager for get_nodriver_session in requests module
Fix start-browser.sh to remove stale cookie file before launching Chrome
2025-10-02 02:08:20 +02:00
hlohaus
7d184411e2 Refactor OIVSCodeSer2 and OIVSCodeSer0501 classes; consolidate Perplexity provider and update OpenaiTemplate for API key handling 2025-10-02 00:55:01 +02:00
hlohaus
9931e874ee Add Perplexity provider and enhance response handling in existing providers 2025-10-01 23:41:38 +02:00
Ammar
c938760aac
fix LMArena get_models (#3189)
* fix

* Update PollinationsAI.py

* Update Qwen.py

* Update Qwen.py

* Update Qwen.py

* Update LMArena.py

* Update LMArena.py

* Update Qwen.py

* Update Qwen.py

* Update g4f/Provider/Qwen.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: H Lohaus <hlohaus@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-01 13:10:26 +02:00
H Lohaus
8cea9b823a
Update README.md 2025-09-24 08:15:23 +02:00
Ammar
90627d595b
Qwen Catch error (#3186) 2025-09-23 00:00:10 +02:00
hlohaus
74fcb27cbc Add OpenRouterFree API key to environment and adjust max_tokens 2025-09-22 22:32:49 +02:00
hlohaus
391e1f463e Enhance Azure provider error handling and update environment variables 2025-09-22 22:21:03 +02:00
H Lohaus
cb0136fdcf
Update Qwen.py 2025-09-21 22:26:28 +02:00
H Lohaus
3e37961b00
Merge pull request #3184 from xtekky/3mora2-main
Swap model aliases for consistency and enhance model retrieval logic
2025-09-21 13:37:15 +02:00
hlohaus
5bac1a8bfb Refactor QwenCode and oauthFlow for improved model handling and credential management 2025-09-21 13:33:49 +02:00
hlohaus
9bed8da354 Swap model aliases for consistency and enhance model retrieval logic 2025-09-21 12:48:55 +02:00
H Lohaus
3fca4145c1
Merge pull request #3183 from xtekky/3mora2-main
Update Qwen
2025-09-21 11:57:20 +02:00
hlohaus
bb02eeb481 Add model alias for Kimi-K2-Instruct and update best_provider references 2025-09-21 11:55:29 +02:00
hlohaus
4e5c26fd60 Remove unused import and update sse_stream function signature for consistency 2025-09-21 11:40:54 +02:00
Ammar
bfc7707cd5 Qwen add media 2025-09-19 21:49:51 +03:00
hlohaus
f46c179359 Fix typo in organization_id attribute in Claude class 2025-09-13 21:49:57 +02:00
H Lohaus
f13a4fc715
Update LMArena.py 2025-09-13 17:10:45 +02:00
H Lohaus
ce888ad47c
Update OpenRouter.py 2025-09-13 17:10:01 +02:00
hlohaus
89a3da5800 Update STATIC_URL 2025-09-12 09:30:53 +02:00
hlohaus
91ea2d7a27 Add streaming endpoint for file management and enhance manage_files function 2025-09-12 00:30:12 +02:00
hlohaus
0804d6836a Comment out JSDELIVR_URL replacement in render function to prevent URL rewriting 2025-09-11 22:59:04 +02:00
hlohaus
d7375d4c6c Add Claude provider with authentication handling and update Nvidia provider 2025-09-11 20:55:31 +02:00
hlohaus
f8c10a41ad Update README.md 2025-09-10 13:25:36 +02:00
hlohaus
4f8456623d Fix error logging format in provider model retrieval and improve message handling in raise_for_status 2025-09-10 09:09:53 +02:00
hlohaus
e1a665dfbf Add error handling for provider model checks in AnyProvider 2025-09-10 00:34:39 +02:00
hlohaus
217c1e85db Enhance OpenaiTemplate and Nvidia providers with support for text/plain responses and improved error handling 2025-09-09 21:18:47 +02:00
H Lohaus
6ad8c8c397
Merge pull request #3173 from restartxx/feat/add-qwen3-max-model
feat(qwen): add support for qwen3-max-preview model
2025-09-09 20:22:25 +02:00
hlohaus
de688319ae Add error handling for missing authentication and Unicode encoding in response streaming 2025-09-08 15:40:32 +02:00
H Lohaus
ed31d0e4e1
Update requirements.txt 2025-09-08 09:56:49 +02:00
hlohaus
7e34009fc9 Enhance LMArena and PuterJS providers with error handling and model filtering improvements 2025-09-08 09:19:10 +02:00
H Lohaus
dd4910da94
Update build-packages.yml 2025-09-08 07:58:05 +02:00
Oppon
6972b56c8c
feat(qwen): add support for qwen3-max-preview model
This adds the 'qwen3-max-preview' model to the list of supported models for the chat.qwen.ai provider.

Resolves #3172
2025-09-08 01:24:47 -03:00
hlohaus
4c1da4e610 Fix handling of stream_timeout 2025-09-08 05:21:44 +02:00
hlohaus
b18d2970e0 Update build-linux-exe job to use matrix runner 2025-09-08 02:00:13 +02:00
hlohaus
ce82746890 Add initial implementation of the Qwen provider 2025-09-07 09:20:33 +02:00
hlohaus
0f8853d9f3 Fix latest_version handling in render function to correctly append query string 2025-09-07 02:54:09 +02:00
hlohaus
99e647a016 Update render function to use GITHUB_URL for download URL handling 2025-09-07 02:44:05 +02:00
hlohaus
3852fda31d Refactor render function to simplify download URL handling by removing version query parameter 2025-09-07 02:42:06 +02:00
hlohaus
130a429500 Update download URL in website.py to use GITHUB_URL for improved version handling 2025-09-07 02:27:29 +02:00
hlohaus
9b4727b2f1 Update render function to use latest_version for download URL and cache handling 2025-09-07 01:57:38 +02:00
hlohaus
24ebab640c Refactor tool_calls handling in iter_response and async_iter_response functions for improved readability and logic consistency 2025-09-07 01:44:03 +02:00
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