Skip to content

Commit

Permalink
feat(settings): handle no models
Browse files Browse the repository at this point in the history
  • Loading branch information
ItzCrazyKns committed Oct 18, 2024
1 parent 36bb265 commit 8057f28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/components/SettingsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ const SettingsDialog = ({
const chatModel =
localStorage.getItem('chatModel') ||
(data.chatModelProviders &&
data.chatModelProviders[chatModelProvider]?.[0].name) ||
data.chatModelProviders[chatModelProvider]?.length > 0
? data.chatModelProviders[chatModelProvider][0].name
: undefined) ||
'';
const embeddingModelProvider =
localStorage.getItem('embeddingModelProvider') ||
Expand Down

0 comments on commit 8057f28

Please sign in to comment.