Commit Graph

2034 Commits

Author SHA1 Message Date
diegosouzapw
c6389c4f82 Merge release/v3.7.0 to resolve conflicts 2026-04-23 01:47:55 -03:00
diegosouzapw
4bd37a81e2 docs(i18n): sync CHANGELOG.md and documentation updates to 39 languages 2026-04-23 01:34:24 -03:00
diegosouzapw
e628f0ea0d fix(providers): resolve 400 errors for GLM and Antigravity Claude adapter
This commit addresses issues #1514, #1520, and #1522. It ensures cache_control is only injected for supported Anthropic models and removes Gemini-specific validation tools from Vertex AI Claude adapter envelopes.
2026-04-23 01:25:34 -03:00
diegosouzapw
1c6c21fa9a docs: update changelog with PRs 1516, 1517, and 1521 for v3.7.0 2026-04-23 01:16:10 -03:00
Randi
fff025ca0f Fix OpenRouter remote discovery and unify managed model sync (#1521)
Integrated into release/v3.7.0
2026-04-23 01:14:59 -03:00
Prakersh Maheshwari
331e1b7d61 feat(usage): MiniMax + MiniMax-CN quota tracking in provider limits dashboard (#1516)
Integrated into release/v3.7.0
2026-04-22 19:35:14 -03:00
diegosouzapw
16b0499192 fix(api): harden batch and file endpoints for auth and recovery
Reject invalid API keys even when authentication is optional and add
OPTIONS handlers for batch and file routes to support CORS preflights.

Also recover orphaned batches stuck in finalizing after restarts,
include finalizing in pending batch queries, preserve multipart upload
content handling, and fetch remote vision images as data URIs for
Anthropic requests.
2026-04-22 17:10:47 -03:00
diegosouzapw
fe09fe485f fix: Strip reasoning_content from OpenAI format messages for non-reasoning models (#1505) 2026-04-22 14:52:35 -03:00
diegosouzapw
d52a5af87d docs: update changelog with recent PR merges for v3.7.0 2026-04-22 12:27:15 -03:00
diegosouzapw
d539a21f69 fix(ui): add dark mode support for native dropdown options (#1488) 2026-04-22 12:26:21 -03:00
diegosouzapw
128f242808 Feature/OpenAI batching gui (#1500)
* Added GUI for OpenAI batching
* Support downloading files via API
* Set stream: false for chat completions in batchProcessor
2026-04-22 12:26:21 -03:00
Markus Hartung
66bf8054f9 bug: fixes Error: Cannot find module 'process/' #1507 (#1509)
Integrated into release/v3.7.0
2026-04-22 12:26:17 -03:00
austrian_guy
d99cf6350f fix(logs): add periodic runtime log rotation check (#1504)
Integrated into release/v3.7.0
2026-04-22 12:25:53 -03:00
Owen
9bd7cb7d00 feat(opencode-go): register 6 missing models from upstream catalog (#1510)
Integrated into release/v3.7.0
2026-04-22 12:25:49 -03:00
th-ch
f804a5f443 Add search in the providers page (#1511)
Integrated into release/v3.7.0
2026-04-22 12:25:44 -03:00
diegosouzapw
7549a68d6c feat(release): implement Hermes CLI config and message content stripping (#1475, #1387) 2026-04-22 01:39:49 -03:00
diegosouzapw
1ef354465a fix(release): resolve combo prefixing, electron packaging, and CLI auth regressions (#1471, #1492, #1496, #1497, #1486) 2026-04-21 22:11:19 -03:00
diegosouzapw
a7b6dfb06e chore: apply PR 1495 and update changelog 2026-04-21 21:12:29 -03:00
diegosouzapw
98c5b250b9 refactor: implement path utilities, add custom date formatting, improve type safety, and unify database imports 2026-04-21 21:10:48 -03:00
Markus Hartung
098639e146 fix: add batch item dispatching to specific handlers based on URL (#1495)
Integrated into release/v3.7.0
2026-04-21 21:10:38 -03:00
diegosouzapw
a7d30d9c6f test: isolate batch API unit tests with temp DATA_DIR to prevent schema state collisions 2026-04-21 19:32:20 -03:00
diegosouzapw
0937c5a8a3 chore(release): v3.7.0 — final integration of batch ui and versions 2026-04-21 19:01:56 -03:00
diegosouzapw
56608a4654 feat(ui): add batch processing dashboard page and translations 2026-04-21 19:01:48 -03:00
diegosouzapw
8bb1c83479 chore: merge release/v3.7.0 2026-04-21 18:47:17 -03:00
Hernan Javier Ardila Sanchez
b709dca2d6 feat(vision-bridge): add automatic image description fallback for non-vision models (#1476)
* feat(vision-bridge): add automatic image description fallback for non-vision models

Implements VisionBridgeGuardrail (priority 5) that intercepts image-bearing
requests to non-vision models, extracts descriptions via a configurable
vision model (default: gpt-4o-mini), and replaces images with text before
forwarding. Fails open on any error.

- Add VisionBridgeGuardrail class extending BaseGuardrail
- Add visionBridgeHelpers: extractImageParts, callVisionModel, replaceImageParts, resolveImageAsDataUri
- Add visionBridgeDefaults with configurable settings
- Register VisionBridgeGuardrail in GuardrailRegistry at priority 5
- Add 51 unit tests covering all spec scenarios (VB-S01 through VB-S10)
- Dependency injection for getSettings and callVisionModel (testable without SQLite)

Closes diegosouzapw/OmniRoute#1424

* fix(vision-bridge): resolve Anthropic API, parallel processing, provider keys, structuredClone
2026-04-21 18:14:24 -03:00
diegosouzapw
b925be2758 fix: update prompt injection test for fail-closed policy 2026-04-21 17:54:37 -03:00
Markus Hartung
2e36599d40 fix: resolve code rebase issues 2026-04-21 22:53:19 +02:00
diegosouzapw
0d852ab3e0 fix: restore local test fixes for encryption and resilience 2026-04-21 17:46:47 -03:00
Jason Landbridge
495ca290e0 docs: add Arch Linux AUR install notes (#1478)
Integrated into release/v3.7.0
2026-04-21 17:18:34 -03:00
cloudy
de1bea8227 fix: deduplicate case-variant anthropic-version header in Claude Code patch (#1481)
Integrated into release/v3.7.0
2026-04-21 17:18:29 -03:00
vanminhph
9cd36af3e8 fix(codex): preserve namespace MCP tools forwarded to Codex Responses API (#1483)
Integrated into release/v3.7.0
2026-04-21 17:18:26 -03:00
clousky2020
3502c5afd1 fix(fallback): use shared CircuitBreaker instead of undefined constants (#1485)
Integrated into release/v3.7.0
2026-04-21 17:18:23 -03:00
Markus Hartung
03769eb0ea feat: add support for OpenAI batch processing 2026-04-21 15:12:12 +02:00
Diego Rodrigues de Sa e Souza
76b0f077a4 Merge pull request #1473 from clousky2020/provider
feat(fallback): add provider-level circuit breaker with configurable thresholds
2026-04-21 10:08:44 -03:00
diegosouzapw
1dae161823 Merge remote-tracking branch 'origin/release/v3.7.0' into release/v3.7.0 2026-04-21 08:41:08 -03:00
diegosouzapw
25e22df2cf chore(release): v3.7.0 — finalization 2026-04-21 08:36:39 -03:00
diegosouzapw
96d0f57558 feat: auto-inject stream_options.include_usage for OpenAI format streams (fixes #1423) 2026-04-21 08:34:41 -03:00
clousky
f651a27418 🐛 fix(providers): add optional chaining to connection object
- 在访问 providerSpecificData 前对 connection 添加可选链操作符
- 防止 connection 为 null/undefined 时导致的运行时错误
2026-04-21 19:31:46 +08:00
diegosouzapw
3834768b72 feat(providers): add lm studio and grok 4.3 support
Register LM Studio as an OpenAI-compatible local provider and map the
new grok-4.3 thinking model for web executor requests.

This update also hardens related platform behavior by switching backup
archive creation to execFileSync, validating ACP agent ids, expanding
shared CORS handling, and making prompt injection guard failures return
an explicit 500 response.

To preserve existing stored credentials, encryption now derives new
keys from a secret-based salt while still falling back to the legacy
static-salt key during decryption.
2026-04-21 08:27:48 -03:00
clousky
0d86244c90 fix: address PR review comments
1. Remove 429 from PROVIDER_FAILURE_ERROR_CODES
   - 429 (rate limit) is already handled by model-level and account-level locks
   - Including it in provider-wide circuit breaker causes premature cooldown

2. Fix reference counting in ModelStatusContext
   - Changed registeredModels from Set to Map<string, number>
   - Prevents polling stop when one component unmounts while others still track the model

3. Fix model ID parsing for providers with slashes in model names
   - Use indexOf/substring instead of split to handle models like "modelscope/moonshotai/Kimi-K2.5"

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-21 16:27:53 +08:00
clousky
a389f2699a fix(fallback): merge new provider failure threshold fields in profile
The mergeProviderProfile function was missing the three new fields
added to PROVIDER_PROFILES (providerFailureThreshold, providerFailureWindowMs,
providerCooldownMs). This caused tests to fail because the profile
returned by getRuntimeProviderProfile did not include these fields.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-21 16:26:35 +08:00
clousky
3478dea5de ♻️ refactor(fallback): make provider failure thresholds configurable
- add provider-level circuit breaker config to PROVIDER_PROFILES
- remove hardcoded threshold constants in favor of profile-based config
- use getProviderProfile() to read thresholds with fallback defaults
- support different failure tolerance per provider type
2026-04-21 16:21:00 +08:00
clousky
0c24ab45af test(settings-api): add test harness for proper isolation
- create createSettingsApiHarness function with temp directory setup
- add beforeEach/afterEach hooks for storage reset between tests
- add after hook for cleanup
- use dynamic imports after env setup to ensure proper initialization
2026-04-21 16:16:53 +08:00
diegosouzapw
cde6f56014 Merge release/v3.7.0 into translation branch and resolve conflicts 2026-04-21 04:59:11 -03:00
dependabot[bot]
9754b04bd6 deps: bump the development group with 4 updates (#1464)
Integrated into release/v3.7.0
2026-04-21 04:50:07 -03:00
dependabot[bot]
d19b8d83e8 deps: bump the production group with 4 updates (#1463)
Integrated into release/v3.7.0
2026-04-21 04:50:04 -03:00
Marcus Bearden
496114ae8b fix(sse): enable tool calling for GPT OSS and DeepSeek Reasoner models (#1455)
Integrated into release/v3.7.0
2026-04-21 04:50:00 -03:00
Paijo
ceca26ae87 fix(encryption): return null on decryption failure to prevent sending encrypted tokens to providers (#1462)
Integrated into release/v3.7.0
2026-04-21 04:49:57 -03:00
Paijo
20f04574e5 fix: resolve skills, memory, and encryption system issues (#1456)
Integrated into release/v3.7.0
2026-04-21 04:48:32 -03:00
diegosouzapw
1d3d99bb9e fix(combo): resolve cross-provider thinking 400 and http clipboard (#1444)
Integrated into release/v3.7.0
2026-04-21 04:36:16 -03:00