feat: Amazon Bedrock provider + runtime model toggle dashboard - #2
Open
kejiali wants to merge 3 commits into
Open
feat: Amazon Bedrock provider + runtime model toggle dashboard#2kejiali wants to merge 3 commits into
kejiali wants to merge 3 commits into
Conversation
- DisabledModels module: in-memory Set persisted to ~/.openclaw/clawrouter/disabled-models.json - GET /api/models — returns all tier models with enabled state and tier assignments - POST /api/models/toggle — toggles a model on/off and persists to disk - GET /dashboard — self-contained dark-theme UI with provider grouping, toggle switches, tier badges, warning banner, and 5s auto-refresh - proxyRequest filters disabled models from modelsToTry; returns 503 if all models in a tier are disabled Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add Amazon Bedrock as direct provider (SDK-based, not HTTP) - Add /dashboard UI for toggling models on/off at runtime - Add /api/models and /api/models/toggle endpoints - Persist disabled models to ~/.openclaw/clawrouter/disabled-models.json - Filter disabled models from routing fallback chains - Fix: missing space in checkbox data-model attribute - Fix: use async body reading for toggle endpoint
…emove savings metric - Map Bedrock/Anthropic stop reasons to OpenAI format (max_tokens→length, tool_use→tool_calls) - Add timestamps to all console log output via shared clog/cerr helpers - COMPLEX tier now routes to Opus as primary (was identical to MEDIUM/Sonnet) - Remove misleading savings percentage from log output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Bedrock Provider (original)
/dashboardBug Fixes & Improvements (new)
max_tokens→length,tool_use→tool_calls,stop_sequence→stop). Fixes OpenClawUnhandled stop reason: max_tokenserrors.[ClawRouter]console output now prefixed with[YYYY-MM-DD HH:MM:SS]via sharedclog/cerrhelpers insrc/log.ts.