mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat!: default CODER_AI_GATEWAY_ENABLED to true (#25575)
`CODER_AI_GATEWAY_ENABLED` / `CODER_AIBRIDGE_ENABLED` is now being defaulted to `true` now that it will be used by Coder Agents. If you previously had this value disabled explicitly, that value will persist.
This commit is contained in:
@@ -54,7 +54,7 @@ func TestAIBridgeListInterceptions(t *testing.T) {
|
||||
var sdkErr *codersdk.Error
|
||||
require.ErrorAs(t, err, &sdkErr)
|
||||
require.Equal(t, http.StatusForbidden, sdkErr.StatusCode())
|
||||
require.Equal(t, "AI Bridge is a Premium feature. Contact sales!", sdkErr.Message)
|
||||
require.Equal(t, "AI Gateway is a Premium feature. Contact sales!", sdkErr.Message)
|
||||
})
|
||||
|
||||
t.Run("EmptyDB", func(t *testing.T) {
|
||||
|
||||
@@ -94,6 +94,7 @@ func TestEntitlements(t *testing.T) {
|
||||
features[codersdk.FeatureUserLimit] = 100
|
||||
coderdenttest.AddLicense(t, adminClient, coderdenttest.LicenseOptions{
|
||||
Features: features,
|
||||
Addons: []codersdk.Addon{codersdk.AddonAIGovernance},
|
||||
GraceAt: time.Now().Add(59 * 24 * time.Hour),
|
||||
})
|
||||
res, err := adminClient.Entitlements(context.Background()) //nolint:gocritic // adding another user would put us over user limit
|
||||
|
||||
Reference in New Issue
Block a user