Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/awf-config-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ the corresponding CLI flag.
- `apiProxy.defaultModelMultiplier` → *(config-only; maps to `AWF_EFFECTIVE_TOKEN_DEFAULT_MODEL_MULTIPLIER`)*
- `apiProxy.maxRuns` → *(config-only; no CLI equivalent)*
- `apiProxy.maxModelMultiplierCap` → `--max-model-multiplier-cap <number>`
- `apiProxy.maxPermissionDenied` → `--max-permission-denied <number>`
- `apiProxy.requestedModel` → *(config-only; maps to `AWF_REQUESTED_MODEL` for pre-startup validation)*
- `apiProxy.modelFallback` → *(config-only; model fallback strategy)*
- `apiProxy.models` → *(config-only; model alias rewriting)*
Expand Down
8 changes: 8 additions & 0 deletions src/cli-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,14 @@ program
' are rejected with HTTP 400 and error type model_multiplier_cap_exceeded.\n' +
' Must be a positive number.',
)
.option(
'--max-permission-denied <number>',
'Maximum number of upstream 401/403 responses allowed per run (requires --enable-api-proxy).\n' +
' When reached, the API proxy rejects all subsequent requests with HTTP 403\n' +
' and error type permission_denied_limit_exceeded, stopping the run to avoid\n' +
' wasting tokens on misconfigured credentials.\n' +
' Must be a positive integer.',
)
.option(
'--enable-token-steering',
'Enable effective token budget steering in the API proxy (requires --enable-api-proxy).\n' +
Expand Down
Loading