Ammar
079a5fd2ef
Improve LMArena auth, image handling & cookies ( #3413 )
...
* Improve LMArena auth, image handling & cookies
Qwen: avoid calling auth endpoint when no token is provided.
LMArena: add URL expiry check for cached images and use cls.url as referer/endpoint for image requests; extract and validate next-action IDs from JS via a new __extract_actions helper; update several next-action fingerprints; add parsing for AWS-style signed URLs using parse_qs and UTC-aware datetime; change prepare_images to skip expired cached images. Introduce multi-model support (modelA/modelB) with mode selection (direct/side-by-side/battle), additional message IDs, and include model IDs in the evaluation payload. Improve stream parsing to handle b2 image chunks and tag ImageResponse with model metadata; adjust heartbeat handling and rate-limit behavior to trigger cookie clearing.
Requests/nodriver: add clear_cookies_for_url to remove cookies via CDP and wire a clear_cookies_except argument through get_args_from_nodriver so callers can clear cookies selectively; add typing for Callable in get_nodriver return. Misc: minor imports and logging tweaks.
* Update LMArena.py
* datetime.timezone.utc)
2026-04-04 02:21:46 +02:00
hlohaus
e5bdc90124
fix: Correct Brave browser binary path in Windows script
2026-04-04 02:17:48 +02:00
hlohaus
3802134245
fix: Add additional paths for Brave and Chrome browser binaries in Windows
2026-04-04 01:48:20 +02:00
H Lohaus
7af6a73a7d
Merge pull request #3402 from dagecko/runner-guard/fix-ci-security
...
fix: pin 8 unpinned action(s),extract 2 unsafe expression(s) to env vars
2026-04-04 01:38:05 +02:00
hlohaus
a1cdfe3f97
fix: Remove LMArena from best provider list for flux-kontext model
2026-04-04 01:36:43 +02:00
hlohaus
f41007ccc7
fix: Improve tool response handling and thought signature restoration in Antigravity and GeminiCLI providers
2026-04-04 01:29:16 +02:00
hlohaus
03e77260eb
fix: Update thought signature handling for Gemini models in AntigravityProvider
2026-04-04 01:13:47 +02:00
hlohaus
0217ca247b
fix: Update thought signature handling and improve tool call processing in Antigravity and GeminiCLI providers
2026-04-04 01:12:47 +02:00
hlohaus
d98d8b5f92
fix: Remove video models from LMArena provider and update model handling in base provider
2026-04-03 22:45:17 +02:00
hlohaus
541a51fe43
Refactor code structure for improved readability and maintainability
2026-04-03 22:30:16 +02:00
hlohaus
68133b2241
feat: Enhance LMArena and PollinationsAI to support video models and improve model caching
2026-04-03 20:35:24 +02:00
hlohaus
1107316b5a
fix: Update API key retrieval method and enhance error handling in backend API
2026-04-03 19:10:06 +02:00
hlohaus
ff66c45f3b
fix: Update cookie path in start-browser script for consistency across environments
2026-04-03 18:49:31 +02:00
hlohaus
a600e8e16d
feat: Refactor start-browser script to support multiple browsers and improve path handling
2026-04-03 17:24:32 +02:00
hlohaus
ed4ef15738
feat: Add OpenClaw configuration patching script and update setup script for model application
2026-04-03 15:40:21 +02:00
hlohaus
49d0cfe2c0
feat: Add get_quota method and refactor login methods in multiple providers
2026-04-03 13:43:08 +02:00
hlohaus
48ae35fd5d
feat: Implement get_quota method across multiple providers and update related API handling
2026-04-02 15:33:33 +02:00
H Lohaus
411f6f4814
Merge pull request #3410 from yetval/fix/opera-aria-streaming
...
fix(OperaAria): real streaming, text+image coexistence, visible upload errors
2026-04-02 14:46:44 +02:00
hlohaus
c2cb04eee5
fix(read_text): improve regex to capture text block endings
2026-04-01 22:59:01 +02:00
H Lohaus
618a6300bf
Merge pull request #3408 from Lachine1/fix/video-format-upload-error
...
fix(image): support additional video formats in upload
2026-04-01 22:49:41 +02:00
yetval
4871bd5c0e
fix(OperaAria): real streaming, text+image coexistence, visible upload errors
2026-04-01 16:35:42 -04:00
hlohaus
71ed6243f9
feat: Implement JSON Schema sanitization for Gemini API compatibility and enhance OpenClaw setup script
2026-04-01 22:29:22 +02:00
hlohaus
91ccb19661
feat: Add OpenClaw setup script for multi-platform configuration and onboarding
2026-03-31 17:29:47 +02:00
lachine
d22c919c35
fix(image): support additional video formats in upload
...
- Add mov, avi, ogv, mpg, mpeg to EXTENSIONS_MAP
- Fix detect_file_type() to return video/mp4 for non-HEIC/AVIF ftyp brands
MP4 files with video brands (dash, iso6, avc1, etc.) were failing to
upload because detect_file_type() only recognized HEIC/AVIF brands from
the ftyp atom, falling through to 'Unknown or unsupported file type'.
Fixes video upload errors in Qwen and other providers that use
detect_file_type() to validate media files.
2026-03-31 16:55:01 +02:00
hlohaus
e6b5e4adfc
feat: Support hyphenated keys in evaluate_condition and update user quota structure
2026-03-31 15:26:28 +02:00
hlohaus
2827fe650c
fix: Update default model to "auto" and adjust system hints in OpenaiChat
2026-03-31 13:02:02 +02:00
dagecko
b2787fd6aa
fix: pin 8 unpinned action(s),extract 2 unsafe expression(s) to env vars
2026-03-26 18:39:50 -04:00
hlohaus
7bee687024
fix: Update socket import path in safety URL tests
2026-03-21 21:56:28 +01:00
hlohaus
d3588a1807
fix: Replace 'yaml' with 'PyYAML' in requirements files and setup.py
2026-03-21 21:50:21 +01:00
hlohaus
7448194cac
feat: Add YAML import check and skip tests if not available
2026-03-21 21:46:32 +01:00
hlohaus
b6a6db2c2e
feat: Enhance URL safety checks and integrate is_safe_url across image handling #3397
2026-03-21 21:38:38 +01:00
hlohaus
7a4bf072de
fix: Update image references and enhance cookie acceptance handling in Yupp and LMArena providers
2026-03-20 17:01:09 +01:00
hlohaus
db8fbe8fc3
feat: Implement OAuth flow for GitHub Copilot and enhance provider login handling
2026-03-20 12:19:31 +01:00
H Lohaus
d20b992876
Merge pull request #3394 from xtekky/copilot/add-config-yaml-custom-routing
...
Add config.yaml custom model routing with quota-aware provider selection
2026-03-20 10:49:02 +01:00
H Lohaus
d4be2feb52
Merge pull request #3391 from octo-patch/feature/upgrade-minimax-m27
...
feat: upgrade MiniMax default model to M2.7
2026-03-20 01:23:08 +01:00
H Lohaus
ccfca2f214
Merge pull request #3396 from Desel72/fix/issue-3395
...
Add get_quota to Ollama provider
2026-03-20 01:22:36 +01:00
Desel72
bcec2d4a1a
add headers, robust sign-out detection, fix section window
2026-03-19 20:06:22 +00:00
Desel72
c2da72c3af
feat: Add get_quota method to Ollama provider
2026-03-19 19:45:13 +00:00
copilot-swe-agent[bot]
8fd8cd5c80
Fix evaluate_condition to support provider-specific quota dict formats
...
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-03-19 15:28:00 +00:00
copilot-swe-agent[bot]
5ff28514cd
Add config.yaml custom model routing support
...
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-03-19 14:28:41 +00:00
copilot-swe-agent[bot]
9605a22880
Initial plan
2026-03-19 14:20:35 +00:00
hlohaus
8faa8607d7
Refactor PollinationsAI and PollinationsImage models: update endpoints and default model settings
2026-03-19 00:24:36 +01:00
PR Bot
d93dbf45d5
feat: upgrade MiniMax default model to M2.7
...
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to model list
- Set MiniMax-M2.7 as default model
- Keep all previous models as alternatives
- Add model routing entries in any_model_map
- Add unit tests for MiniMax provider
2026-03-18 17:21:01 +08:00
H Lohaus
067b11b8a7
Merge pull request #3386 from xtekky/copilot/bugfix-docker-slim-broken
...
Fix Docker slim: handle legacy `python -m g4f --port 8080` invocation without mode prefix
2026-03-13 19:11:57 +01:00
copilot-swe-agent[bot]
d27ba8829d
Fix Docker slim CLI: catch ArgumentError/SystemExit from mode_parser to handle legacy --port usage
...
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-03-13 18:08:59 +00:00
H Lohaus
b2539f8197
Merge pull request #3384 from xtekky/copilot/fix-typeerror-cookie-browsers
...
fix: TypeError 'module' object is not subscriptable with --cookie-browsers
2026-03-13 19:08:22 +01:00
H Lohaus
7365b9db72
Merge pull request #3385 from xtekky/copilot/fix-cpu-usage-in-debug-mode
...
fix: disable Werkzeug reloader to eliminate idle CPU usage in GUI debug mode
2026-03-13 19:07:37 +01:00
copilot-swe-agent[bot]
0de09b1cc5
Initial plan
2026-03-13 18:04:36 +00:00
copilot-swe-agent[bot]
270ba11c47
fix: disable Flask Werkzeug reloader to prevent CPU usage in debug mode
...
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-03-13 18:04:22 +00:00
copilot-swe-agent[bot]
5a3f54d734
fix: resolve TypeError when using --cookie-browsers CLI argument
...
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
2026-03-13 18:03:46 +00:00