feat(settings): handle no models
This commit is contained in:
parent
36bb265e1f
commit
8057f28b20
|
@ -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') ||
|
||||
|
|
Loading…
Reference in New Issue