Files
sub2api/frontend/src/components/admin
alfadb f8f6355280 feat(monitor): support ollama_cloud in the channel monitor UI
Frontend half of increment 5-2 (mirrors backend 39b8649df):

- Add ollama_cloud to the Provider union, channelMonitor constants
  (PROVIDER_OLLAMA_CLOUD, PROVIDERS, DEFAULT_OLLAMA_CLOUD_ENDPOINT =
  https://ollama.com; the probe adapter appends /v1/chat/completions,
  same source as the backend DefaultOllamaCloudBaseURL), the monitor
  form provider grid / endpoint preset, the filter bar, and the
  template manager tabs. ollama_cloud supports all three check modes
  and chat_completions only, so no antigravity-style restriction and
  no default-model preset (backend only defaults grok's model).
- Extend providerLabel/badge/picker/gradient (stone palette, aligned
  with utils/platformColors.ts), the user MonitorCard icon tint, and
  the ProviderIcon exhaustive map with the official llama mark.
- i18n: monitorCommon.providers.ollama_cloud and
  admin.groups.platforms.ollama_cloud in en+zh.
- ChannelsView: add ollama_cloud to platformOrder and
  compositePlatforms (backend isConcreteRequestPlatform already
  includes it); no per-platform extra config needed - matching
  opencode_go, which also carries none in the channel form.
- Update the stale ChannelMonitorView.grok.spec.ts provider count
  8 -> 11 (the grid already had 10 before this change and the spec
  was failing on the clean baseline).
2026-09-13 10:39:49 +08:00
..