mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-12-01 14:44:15 +08:00
Add an xhigh upper bound of 32768 so larger budgets map to max instead of xhigh. Convert translated budgets to adaptive effort for hybrid Claude and Interactions models in validation rather than in the Gemini-to-Claude translator, which now preserves the budget for model-aware handling. Validate user-defined models before normalization so translated budgets are clamped to model limits while custom settings are preserved. Reuse the canonical budget conversion for Devin and prefer the lower effort on ties only for budget-derived levels.