Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
Greptile SummaryThis PR introduces a shared Key changes:
Notable concerns:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Env as OS Environment
participant Cfg as moltis-config<br/>provider_env
participant Providers as moltis-providers<br/>resolve_api_key
participant Setup as moltis-provider-setup<br/>is_configured / auto_detect
Note over Env: MOLTIS_PROVIDER and<br/>MOLTIS_API_KEY are set
Providers->>Cfg: env_value_with_overrides(overrides, "OPENAI_API_KEY")
Cfg->>Env: std::env::var("OPENAI_API_KEY")
Env-->>Cfg: None (not set)
Cfg-->>Providers: None — fall through
Providers->>Cfg: generic_provider_api_key_from_env("openai", overrides)
Cfg->>Env: std::env::var("MOLTIS_PROVIDER") returns "openai"
Cfg->>Env: std::env::var("MOLTIS_API_KEY") returns secret value
Cfg-->>Providers: Some(Secret)
Providers-->>Providers: API key resolved
Setup->>Cfg: generic_provider_env_source_for_provider("openai", overrides)
Cfg-->>Setup: Some("env:MOLTIS_PROVIDER+MOLTIS_API_KEY")
Setup-->>Setup: source appended to auto-detect list
Setup->>Cfg: generic_provider_api_key_from_env("openai", overrides)
Cfg-->>Setup: Some(_)
Setup-->>Setup: is_configured returns true
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Addressed the Greptile review items in |
* feat(docker): support generic provider env bootstrap * test(onboarding): stabilize import step e2e flow * fix(config): address provider env review comments * test(tools): fix sandbox off coverage
* feat(docker): support generic provider env bootstrap * test(onboarding): stabilize import step e2e flow * fix(config): address provider env review comments * test(tools): fix sandbox off coverage
Summary
MOLTIS_PROVIDER/MOLTIS_API_KEYand the short aliasesPROVIDER/API_KEY.MOLTIS_PASSWORD,MOLTIS_PROVIDER, andMOLTIS_API_KEY.Validation
Completed
just formatcargo +nightly-2025-11-30 test -p moltis-config provider_env --libcargo +nightly-2025-11-30 test -p moltis-providers openai_registers_with_generic_provider_env_override --libcargo +nightly-2025-11-30 test -p moltis-provider-setup generic_provider_env --libjust build-csscargo +nightly-2025-11-30 clippy -Z unstable-options --workspace --all-targets --timings -- -D warningsRemaining
just lint(cargo +nightly-2025-11-30 clippy -Z unstable-options --workspace --all-features --all-targets --timings -- -D warnings) on this macOS host, blocked byllama-cpp-sysrequiring CUDA/NVCC when--all-featuresenables the CUDA local-llm path.Manual QA
MOLTIS_PASSWORD,MOLTIS_PROVIDER=openai, andMOLTIS_API_KEY=sk-....