ulysses/static
Kenny Van de Maele 147d1fbde6
Show the serving provider in the model-info card (#2185)
* Show the serving provider in the model-info card

The model-info popup (click the model name on a message) shows the model
and pricing, with a logo inferred from the model NAME. But the same model
can be served by different endpoints — e.g. claude-haiku via OpenRouter
vs GitHub Copilot vs Anthropic direct — which the name-based logo can't
distinguish.

Add a 'Provider' line derived from the session's endpoint URL:
- new providerLabel(endpointUrl) in static/js/providers.js maps the host
  to a friendly name (GitHub Copilot, OpenRouter, Anthropic, OpenAI,
  Google, AWS Bedrock, DeepSeek, Mistral, Groq, Together, Fireworks,
  Perplexity, xAI), 'Local' for loopback/LAN, else the bare host.
- static/js/chatRenderer.js renders it under Model in the card, from
  window.sessionModule.getCurrentEndpointUrl().

* Anchor provider-label patterns to the hostname

providerLabel matched its patterns against the full endpoint URL with
unanchored substrings, so a host like max.airlines.com matched /x\.ai/ and was
mislabeled "xAI". Anchor each pattern to the end of the hostname ((^|.)domain$)
and test against the parsed host instead of the raw URL.
2026-06-04 18:22:31 +02:00
..
fonts Odysseus v1.0 2026-05-31 23:58:26 +09:00
js Show the serving provider in the model-info card (#2185) 2026-06-04 18:22:31 +02:00
lib Odysseus v1.0 2026-05-31 23:58:26 +09:00
app.js fix(ui): use raw data for 'Copy Chat' to avoid extra newlines (#1391) 2026-06-03 14:12:28 +09:00
index.html fix(models): stabilize proxy endpoint refresh behavior 2026-06-04 04:56:11 +01:00
landing.html feat: Add mobile hamburger navigation menu and toggle functionality 2026-06-01 15:57:01 +04:00
login.html fix(login): keep inputs >=16px on touch so iOS doesn't zoom on focus (#1632) 2026-06-03 14:23:24 +09:00
manifest.json Odysseus v1.0 2026-05-31 23:58:26 +09:00
style.css feat: Claude Agent integration + cookbook reconnect + UI polish 2026-06-04 08:27:26 +09:00
sw.js Odysseus v1.0 2026-05-31 23:58:26 +09:00