From dc7ee4e2f4c9fd8cc7a4ac7cd4c46fe17d9df95e Mon Sep 17 00:00:00 2001 From: Duarte Santos Date: Sat, 29 Aug 2026 21:36:07 +0200 Subject: [PATCH] Coach-Chat: bei einem lokalen Modell auf dem Server keine 'ein bis zwei Minuten' versprechen --- frontend/src/views/CoachChat.jsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/CoachChat.jsx b/frontend/src/views/CoachChat.jsx index e38b057..76f0afe 100644 --- a/frontend/src/views/CoachChat.jsx +++ b/frontend/src/views/CoachChat.jsx @@ -148,7 +148,7 @@ export default function CoachChat() { {(coach.chat || []).map(m => )} - {job && } + {job && } {pending && !job && (pending.kind === 'create' ? @@ -200,15 +200,19 @@ const stamp = at => { return d.toDateString() === today.toDateString() ? time : fmtDate(d.toISOString().slice(0, 10)) + ' · ' + time } -function Typing({ S, kind, coachLocal }) { +function Typing({ S, kind, coachLocal, config }) { const ms = estimateMs(S) - const local = coachLocal?.mode === 'byok' && coachLocal?.provider === 'compatible' + // "Local" on either side: the phone's own OpenAI-compatible endpoint, or the server's — + // /api/config names the provider, and a model on the owner's box is nothing like a cloud API. + const local = (coachLocal?.mode === 'byok' && coachLocal?.provider === 'compatible') || config?.coach?.provider === 'compatible' let eta if (ms) { const min = Math.round(ms / 60000) eta = min < 1 ? t('Usually under a minute.') : t('Usually about {0} min.', min) } else { - eta = t('This usually takes a minute or two.') + // Until a job has been measured, "a minute or two" is a cloud number — say nothing for a + // local model rather than something wrong; the next line already warns it takes longer. + eta = local ? '' : t('This usually takes a minute or two.') } return