Separate demo provider credentials - #43
Merged
Merged
Conversation
|
The macOS CLI preview for this PR is ready. With GitHub CLI authenticated, copy this one command to download and run it: preview_dir="$(mktemp -d)" && gh run download 30304085021 --repo yoavf/jst --name jst-pr-preview-macos-universal --dir "$preview_dir" && chmod +x "$preview_dir/jst" && "$preview_dir/jst" --dry list files in the current directoryReplace the example arguments after |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/translatethroughLLM_API_KEYand/demothrough a dedicatedDEMO_LLM_API_KEYDEMO_OPENROUTER_API_KEYas an alias without ever falling back to the app credentialWhy
App and browser-demo traffic currently share one OpenRouter key, which makes provider-side usage attribution difficult and prevents either surface from being revoked independently.
Behavior
/translatecontinues usingLLM_API_KEYorOPENROUTER_API_KEY/demouses onlyDEMO_LLM_API_KEYorDEMO_OPENROUTER_API_KEYthe browser demo is temporarily unavailable; try again laterValidation
cargo test --workspace --all-targetscargo clippy --workspace --all-targets -- -D warningsnpm run test:demo— 31/31 passednpm run build:demoDeployment
Set a separately created OpenRouter key as the Fly secret
DEMO_LLM_API_KEYbefore merging. If it is not set, the demo is intentionally disabled while CLI translations remain available.Greptile Summary
Separates browser-demo provider credentials from CLI translation credentials.
DEMO_LLM_API_KEYandDEMO_OPENROUTER_API_KEYconfiguration without fallback to application credentials.Confidence Score: 5/5
The pull request appears safe to merge with no actionable defects identified.
The current route graph consistently selects the dedicated demo credential for
/demoand the application credential for/translate, handles missing and rejected demo credentials without leaking provider details, and retains valid empty-key behavior for unauthenticated providers.Important Files Changed
Reviews (1): Last reviewed commit: "Separate demo provider credentials" | Re-trigger Greptile