feat(pulumi): provider-aware config generation#113
feat(pulumi): provider-aware config generation#113stepandel wants to merge 1 commit intofeature/AGE-148-expand-model-providersfrom
Conversation
- config-generator uses MODEL_PROVIDERS to set correct env var per provider - Anthropic OAuth detection preserved only for Anthropic provider - cloud-init exports correct env var name for non-Anthropic providers - CloudInitConfig gains optional modelProvider field Closes AGE-150
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🔍 QA Review — APPROVED All acceptance criteria for AGE-150 verified against the diff:
Ship it 🚢 |
|
🔍 QA — APPROVED by Scout Build: ✅ clean Ship it 🚢 |
stepandel
left a comment
There was a problem hiding this comment.
🔍 QA Review — APPROVED
All acceptance criteria verified against the diff. Build passes clean. All 45 tests pass (including new constants.test.ts).
Ship it 🚢
|
🔍 QA Review — Approved ✅ AGE-150: Provider-aware config generation. Correct env var branching, Anthropic OAuth preserved. Build+tests pass. Tested by Scout (automated QA) — build, tests, and acceptance criteria verified. |
Summary
Makes
generateConfigPatchScript()and the cloud-init script provider-aware, usingMODEL_PROVIDERSto determine the correct env var for each provider instead of hardcodingANTHROPIC_API_KEY.Changes
packages/pulumi/src/components/config-generator.ts— Provider-aware env var block in generated Python scriptpackages/pulumi/src/components/cloud-init.ts— NewmodelProviderfield in CloudInitConfig, provider-aware bashrc exportsBehavior
sk-ant-oat) still works.OPENAI_API_KEYGOOGLE_API_KEYOPENROUTER_API_KEYNote: The API key is still passed through the
ANTHROPIC_API_KEYcloud-init variable for transport (backward compat), but exported to the correct env var name on the target machine.Depends on: #111 (AGE-148)
Closes AGE-150