Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8472a68

Browse files
authored
chore!: remove env-based AI provider configuration (#29053)
> AI tools were used to create this PR Removes deprecated AI provider configuration through environment variables, CLI flags, and YAML. Deletion includes indexed providers and legacy OpenAI, Anthropic, and Bedrock options under both AI Gateway and AI Bridge branding, eg. `CODER_AI_GATEWAY_PROVIDER_<N>_*` or `CODER_AI_GATEWAY_ANTHROPIC_KEY`. Removes the associated startup-seeding code. Updates tests and documentation. **Breaking change:** Remove [obsolete AI provider CLI flags and YAML keys](https://coder.com/docs/ai-coder/ai-gateway/providers#database-management-of-providers) before upgrading, otherwise Coder will fail to start with an `unknown flag` or `unknown option` error. Provider environment variables are ignored and no longer seed the database. Existing database-stored provider configuration is preserved.
1 parent 6e2b0ab commit 8472a68

31 files changed

Lines changed: 214 additions & 3812 deletions

cli/aibridged.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ import (
3939
// That reload blocks while acquiring a client, and it passes a background
4040
// context, so only the daemon lifecycle bounds the wait. That is acceptable
4141
// here: the embedded daemon's connection is an in-memory pipe that comes up
42-
// immediately, and the env seed (which holds the seed lock) has already
43-
// completed earlier in startup, so the wait is negligible.
42+
// immediately.
4443
func newAIBridgeDaemon(coderAPI *coderd.API, cfg codersdk.AIBridgeConfig, reg prometheus.Registerer, metrics *aibridge.Metrics) (*aibridged.Server, func(), error) {
4544
ctx := context.Background()
4645
coderAPI.Logger.Debug(ctx, "starting in-memory aibridge daemon")

0 commit comments

Comments
 (0)