feat(chat): show config name in AI status chip (offered · Foundry · kimi-k2.7-code)
All checks were successful
Stuffle/nebula-client/pipeline/head This commit looks good

This commit is contained in:
2026-08-02 19:09:34 +05:30
parent 24d9fd480f
commit fe0502c911
2 changed files with 7 additions and 2 deletions

View File

@@ -3455,6 +3455,7 @@ export interface ApiChatAiStatus {
stream: string
provider_slug: string | null
vendor: string | null
config_name: string | null
model: string | null
healthy: boolean
detail: string

View File

@@ -47,10 +47,12 @@ export function AiStatusChip({ hidden }: { hidden?: boolean }) {
: stream === 'byoai'
? 'byoai · api'
: data.vendor || data.provider_slug || stream || 'backend'
const configName = data.config_name || ''
const model = data.model || ''
const titleParts = [label, configName, model].filter(Boolean).join(' → ')
const title = healthy
? `Backend AI: ${label} → ${model} (healthy)`
: `Backend AI: ${label} → ${model} (may be unhealthy)`
? `Backend AI: ${titleParts} (healthy)`
: `Backend AI: ${titleParts} (may be unhealthy)`
return (
<span
@@ -66,6 +68,8 @@ export function AiStatusChip({ hidden }: { hidden?: boolean }) {
>
{healthy ? <Zap size={10} /> : <AlertTriangle size={10} />}
<span>{label}</span>
{configName && <span style={{ opacity: 0.7 }}>·</span>}
{configName && <span style={{ opacity: 0.7 }}>{configName}</span>}
{model && <span style={{ opacity: 0.7 }}>·</span>}
{model && <span style={{ opacity: 0.7 }}>{model}</span>}
</span>