Repository navigation
feat(ui): show Gemini, OpenRouter and Ollama provider cards on setup - #233
Open
sanjayy-22 wants to merge 1 commit into
Open
sanjayy-22 wants to merge 1 commit into
sanjayy-22 wants to merge 1 commit into
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Step 2 (AI Model Setup) only offered a Gemini card plus a buried Custom card, so OpenRouter and local Ollama never appeared when launching via start.bat even though the backend/router already supported them.
- home: add OpenRouter card/panel (save+test key via existing /api/system/credentials endpoints, stored as OPEN_ROUTER_API_KEY) and Ollama card/panel (base URL + vision model, Test Connection probes GET {base}/models, Save persists OLLAMA_BASE_URL, copyable artemis.jsonc snippet). Selecting Ollama/Custom no longer gets blocked by the Gemini-key credential probe.
- backend: settings gain OLLAMA_BASE_URL (get/set_api_key treat the base URL as the ollama credential, no API key); router defaults ollama to http://localhost:11434/v1 instead of the vLLM port; /credentials and /model-config-env now list ollama (and xai).
- config: fix local-ollama preset provider openai->ollama and add an openrouter preset in both artemis.jsonc copies; document OLLAMA_BASE_URL in .env.example.
- start.ps1: rebuild the Showcase UI when src is newer than dist, so UI changes actually show up on the next start.bat run instead of serving a stale build.
Author
|
Hi maintainers — this PR is ready for review. Quick notes:
Thanks! |
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
Step 2 ("AI Model Setup") in the Showcase UI only offered a Google Gemini card plus a buried "Custom Configuration" card, so OpenRouter and local Ollama never appeared when launching via
start.bat— even though the backend/router already supported both providers. This PR gives them first-class setup cards so users can also use local models and the wide range of models available via OpenRouter.Changes
home.component.html/.ts) — 4 provider cards: Google Gemini (Recommended), OpenRouter, Ollama (Local), and Custom Configuration, each with a "Configured" badge when set:/api/system/credentialsendpoints (stored asOPEN_ROUTER_API_KEYin.env).http://localhost:11434/v1) + vision-model inputs, Test Connection (probesGET {base}/models), Save Endpoint, and a copyableartemis.jsoncsnippet; no API key needed. Selecting Ollama/Custom is no longer blocked by the Gemini-key credentials probe.OLLAMA_BASE_URLsetting (persisted via the credentials endpoint; treated as Ollama's credential, no API key); Ollama router default fixed tolocalhost:11434/v1(was the vLLM port 8000);/credentialsand/model-config-envnow list Ollama (and xAI).local-ollamapreset (provider: "openai"→"ollama") and added anopenrouterpreset in bothartemis.jsonccopies; documentedOLLAMA_BASE_URLin.env.example.scripts/start.ps1— rebuilds the Showcase UI whensrcis newer thandist, so UI changes show up on the nextstart.batrun instead of serving a stale build.Test plan
tests/unit/test_credentials_validator.py+tests/unit/test_config_package.py: 38 passed (with a dummy Gemini key set).Note for reviewers
Saving a key alone does not switch the active model — for OpenRouter/Ollama,
"default"inconfig/artemis.jsoncmust also point at that provider (the Ollama panel provides the exact snippet; Ollama additionally needsollama serve+ a pulled vision model).