From ee7a95955f17d0b199ef6c341b42b15019d4ca93 Mon Sep 17 00:00:00 2001 From: Sylvia Crowe Date: Tue, 30 Jul 2024 04:07:28 -0700 Subject: [PATCH] fix: add frontend default to ai model header For some reason, this crashes the app on startup without a frontend default. The backend does not suffice in this case. --- frontend/app/view/waveai.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/view/waveai.tsx b/frontend/app/view/waveai.tsx index a520ded45..d821aa3b0 100644 --- a/frontend/app/view/waveai.tsx +++ b/frontend/app/view/waveai.tsx @@ -106,7 +106,7 @@ export class WaveAiModel implements ViewModel { const viewTextChildren: HeaderElem[] = [ { elemtype: "text", - text: get(atoms.settingsConfigAtom).ai.model, + text: get(atoms.settingsConfigAtom).ai?.model ?? "gpt-4o-mini", }, ]; return viewTextChildren;