From 4720e4129dca43670c0781e63be7110c403dc47a Mon Sep 17 00:00:00 2001 From: Renn F Date: Thu, 18 Jun 2026 10:35:04 +0200 Subject: [PATCH] style(panel): show the Grok (xAI) key card above the Ollama card --- .../components/settings/ai-routing-card.tsx | 97 ++++++++++--------- 1 file changed, 49 insertions(+), 48 deletions(-) diff --git a/panel/src/components/settings/ai-routing-card.tsx b/panel/src/components/settings/ai-routing-card.tsx index b4144bc1..1c599d97 100644 --- a/panel/src/components/settings/ai-routing-card.tsx +++ b/panel/src/components/settings/ai-routing-card.tsx @@ -310,54 +310,6 @@ export function AIRoutingCard() { - {/* -------- Ollama key -------- */} -
-
- - {hasOllamaKey ? ( - - key set - - ) : ( - - not set - - )} -
-
- setApiKey(e.target.value)} - placeholder={ - hasOllamaKey ? "•••••••••••• (leave blank to keep)" : "ollama_xxx…" - } - disabled={clearKey} - /> - -
- {hasOllamaKey ? ( - - ) : ( -

- Stored Fernet-encrypted server-side; never returned by the API. -

- )} -
- - {/* -------- Grok (xAI) key -------- */}
@@ -409,6 +361,55 @@ export function AIRoutingCard() { + {/* -------- Ollama key -------- */} +
+
+ + {hasOllamaKey ? ( + + key set + + ) : ( + + not set + + )} +
+
+ setApiKey(e.target.value)} + placeholder={ + hasOllamaKey ? "•••••••••••• (leave blank to keep)" : "ollama_xxx…" + } + disabled={clearKey} + /> + +
+ {hasOllamaKey ? ( + + ) : ( +

+ Stored Fernet-encrypted server-side; never returned by the API. +

+ )} +
+ + + {/* -------- Self-Hosted LLM -------- */}