[docs] Add model fallback feature documentation#3617
Conversation
Documents the new middle-power model fallback strategy that automatically selects alternative models when a requested model is unavailable. Includes: - Configuration reference for apiProxy.modelFallback in awf-config-spec.md - Extended model alias syntax with per-alias fallback control - Middle-power strategy explanation with capability tier mapping - Usage examples and introspection via /health endpoint - API proxy sidecar documentation with configuration and behavior guide Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
Smoke Test PASS ✅
Status: All tests passed
|
Smoke Test Results ✅
Status: PASS
|
Smoke Test Results✅ GitHub MCP: Retrieved PR #3607 - feat(api-proxy): add middle-power model fallback Status: PARTIAL (MCP working, file test failed) cc
|
|
Smoke Test Codex: FAIL Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "registry.npmjs.org"See Network Configuration for more information.
|
Service Connectivity Test Results❌ Redis: TIMEOUT/ERROR Result: FAIL — No services reachable via host.docker.internal
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS All build and test operations completed successfully across all ecosystems.
|
|
Smoke test results: FAIL (Gemini) Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "localhost"See Network Configuration for more information.
|
Documentation Sync - Model Fallback Feature
This PR synchronizes documentation with the model fallback feature added in commit 1d234dd.
Changes Made
docs/awf-config-spec.md: Added comprehensive section (§12) documenting model fallback including:
apiProxy.modelFallbackwithenabledandstrategyfields/healthendpointapiProxy.modelFallbackto CLI mapping section (§5)docs/api-proxy-sidecar.md: Added model fallback section covering:
model_fallbackfieldCode Changes Referenced
getModelCapabilityTier()andgetTierSortedModels()for tier-based model rankingselectMiddlePowerFallback()for median model selection{ patterns: string[], fallback?: boolean }model_fallbackconfigurationVerification
containers/api-proxy/model-discovery.jsandmodel-resolver.jssrc/awf-config-schema.jsongetModelCapabilityTier()function logicparseModelAliases()andresolveAliasDefinition()implementations🤖 Generated with [Claude Code]((claude.com/redacted)