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.
This commit is contained in:
Sylvia Crowe 2024-07-30 04:07:28 -07:00
parent 923850313f
commit ee7a95955f

View File

@ -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;