Skip to content

refactor(core): move provider env key exceptions into plugins - #54005

Merged
rekram1-node merged 3 commits into
v2from
env-key-names
Oct 8, 2026
Merged

rekram1-node merged 3 commits into
v2from
env-key-names

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #44065

models-dev.ts                      before: environmentNames() with per-provider special cases
                                   after:  every models.dev env var is registered as a key (no provider IDs)

provider plugins narrow providers whose models.dev env also lists setup values (method.update env)
  databricks             (new plugin) → DATABRICKS_TOKEN          DATABRICKS_HOST only fills the base URL
  neon                   (new plugin) → NEON_AI_GATEWAY_TOKEN     NEON_AI_GATEWAY_BASE_URL only fills the base URL
  google-vertex          (moved)      → GOOGLE_VERTEX_API_KEY
  azure                  (moved)      → AZURE_API_KEY, AZURE_COGNITIVE_SERVICES_API_KEY
  cloudflare-workers-ai  (moved)      → CLOUDFLARE_API_KEY, CLOUDFLARE_WORKERS_AI_TOKEN, CLOUDFLARE_API_TOKEN
  amazon-bedrock, snowflake-cortex    → unchanged
accepted env names vs v2
  databricks  DATABRICKS_HOST, DATABRICKS_TOKEN               → DATABRICKS_TOKEN        (HOST was active first)
  neon        NEON_AI_GATEWAY_BASE_URL, NEON_AI_GATEWAY_TOKEN → NEON_AI_GATEWAY_TOKEN   (BASE_URL was active first)
  every other provider                                        → unchanged

@rekram1-node rekram1-node changed the title fix(core): treat only tokens as Databricks and Neon env keys refactor(core): accept only key env vars and move provider exceptions into plugins Oct 8, 2026
@rekram1-node rekram1-node changed the title refactor(core): accept only key env vars and move provider exceptions into plugins refactor(core): move provider env key exceptions into plugins Oct 8, 2026
@rekram1-node
rekram1-node merged commit 2b9cd89 into v2 Oct 8, 2026
11 checks passed
@rekram1-node
rekram1-node deleted the env-key-names branch October 8, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant