Skip to content

feat(ui): show Gemini, OpenRouter and Ollama provider cards on setup - #233

Open
sanjayy-22 wants to merge 1 commit into
google:mainfrom
sanjayy-22:main
Open

sanjayy-22 wants to merge 1 commit into
google:mainfrom
sanjayy-22:main

Conversation

@sanjayy-22

@sanjayy-22 sanjayy-22 commented Nov 3, 2026 •

Copy link
Copy Markdown

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

  • UI (home.component.html/.ts) — 4 provider cards: Google Gemini (Recommended), OpenRouter, Ollama (Local), and Custom Configuration, each with a "Configured" badge when set:
    • OpenRouter: key input with Save & Apply + Test Key via the existing /api/system/credentials endpoints (stored as OPEN_ROUTER_API_KEY in .env).
    • Ollama: base-URL (default http://localhost:11434/v1) + vision-model inputs, Test Connection (probes GET {base}/models), Save Endpoint, and a copyable artemis.jsonc snippet; no API key needed. Selecting Ollama/Custom is no longer blocked by the Gemini-key credentials probe.
  • Backend — OLLAMA_BASE_URL setting (persisted via the credentials endpoint; treated as Ollama's credential, no API key); Ollama router default fixed to localhost:11434/v1 (was the vLLM port 8000); /credentials and /model-config-env now list Ollama (and xAI).
  • Config — fixed the local-ollama preset (provider: "openai" → "ollama") and added an openrouter preset in both artemis.jsonc copies; documented OLLAMA_BASE_URL in .env.example.
  • scripts/start.ps1 — rebuilds the Showcase UI when src is newer than dist, so UI changes show up on the next start.bat run instead of serving a stale build.

Test plan

  • Angular build succeeds; the built bundle was verified to contain the OpenRouter/Ollama cards.
  • 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" in config/artemis.jsonc must also point at that provider (the Ollama panel provides the exact snippet; Ollama additionally needs ollama serve + a pulled vision model).

@google-cla

google-cla Bot commented Nov 3, 2026

Copy link
Copy Markdown

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.
@sanjayy-22 sanjayy-22 changed the title added ollama/openrouter providers feat(ui): show Gemini, OpenRouter and Ollama provider cards on setup Nov 3, 2026
@sanjayy-22

Copy link
Copy Markdown
Author

Hi maintainers — this PR is ready for review.

Quick notes:

  • The cla/google check initially failed only because of a Co-Authored-By: [email protected] trailer on my commit; I've rewritten the commit without it, and the CLA check now passes (single clean commit).
  • As a first-time contributor, the workflow runs are awaiting maintainer approval — could someone please approve them and take a look when convenient?

Thanks!

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