mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add AI budget policy and period deployment config (#25122)
Closes https://linear.app/codercom/issue/AIGOV-283/add-deployment-config-for-ai-budget-policy-and-period Adds `CODER_AI_BUDGET_POLICY` and `CODER_AI_BUDGET_PERIOD` deployment options for AI Governance cost controls.
This commit is contained in:
Generated
+2
@@ -193,6 +193,8 @@ curl -X GET http://coder-server:8080/api/v2/deployment/config \
|
||||
"region": "string",
|
||||
"small_fast_model": "string"
|
||||
},
|
||||
"budget_period": "string",
|
||||
"budget_policy": "string",
|
||||
"circuit_breaker_enabled": true,
|
||||
"circuit_breaker_failure_threshold": 0,
|
||||
"circuit_breaker_interval": 0,
|
||||
|
||||
Generated
+10
@@ -450,6 +450,8 @@
|
||||
"region": "string",
|
||||
"small_fast_model": "string"
|
||||
},
|
||||
"budget_period": "string",
|
||||
"budget_policy": "string",
|
||||
"circuit_breaker_enabled": true,
|
||||
"circuit_breaker_failure_threshold": 0,
|
||||
"circuit_breaker_interval": 0,
|
||||
@@ -487,6 +489,8 @@
|
||||
| `allow_byok` | boolean | false | | |
|
||||
| `anthropic` | [codersdk.AIBridgeAnthropicConfig](#codersdkaibridgeanthropicconfig) | false | | Deprecated: Use Providers with indexed CODER_AIBRIDGE_PROVIDER_<N>_* env vars instead. |
|
||||
| `bedrock` | [codersdk.AIBridgeBedrockConfig](#codersdkaibridgebedrockconfig) | false | | Deprecated: Use Providers with indexed CODER_AIBRIDGE_PROVIDER_<N>_* env vars instead. |
|
||||
| `budget_period` | string | false | | |
|
||||
| `budget_policy` | string | false | | Budget settings for AI Governance cost controls. |
|
||||
| `circuit_breaker_enabled` | boolean | false | | Circuit breaker protects against cascading failures from upstream AI provider overload (503, 529). |
|
||||
| `circuit_breaker_failure_threshold` | integer | false | | |
|
||||
| `circuit_breaker_interval` | integer | false | | |
|
||||
@@ -1275,6 +1279,8 @@
|
||||
"region": "string",
|
||||
"small_fast_model": "string"
|
||||
},
|
||||
"budget_period": "string",
|
||||
"budget_policy": "string",
|
||||
"circuit_breaker_enabled": true,
|
||||
"circuit_breaker_failure_threshold": 0,
|
||||
"circuit_breaker_interval": 0,
|
||||
@@ -5288,6 +5294,8 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
"region": "string",
|
||||
"small_fast_model": "string"
|
||||
},
|
||||
"budget_period": "string",
|
||||
"budget_policy": "string",
|
||||
"circuit_breaker_enabled": true,
|
||||
"circuit_breaker_failure_threshold": 0,
|
||||
"circuit_breaker_interval": 0,
|
||||
@@ -5884,6 +5892,8 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
"region": "string",
|
||||
"small_fast_model": "string"
|
||||
},
|
||||
"budget_period": "string",
|
||||
"budget_policy": "string",
|
||||
"circuit_breaker_enabled": true,
|
||||
"circuit_breaker_failure_threshold": 0,
|
||||
"circuit_breaker_interval": 0,
|
||||
|
||||
Reference in New Issue
Block a user