Skip to content

Commit

Permalink
settings crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nbonamy committed Dec 24, 2024
1 parent 521e2f2 commit 5f006f3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/settings/SettingsAnthropic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const chat_models = ref([])
const load = () => {
apiKey.value = store.config.engines.anthropic?.apiKey || ''
chat_models.value = store.config.engines.anthropic?.models.chat || []
chat_models.value = store.config.engines.anthropic?.models?.chat || []
chat_model.value = store.config.engines.anthropic?.model?.chat || ''
}
Expand Down
2 changes: 1 addition & 1 deletion src/settings/SettingsCerebras.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const chat_models = ref([])
const load = () => {
apiKey.value = store.config.engines.cerebras?.apiKey || ''
chat_models.value = store.config.engines.cerebras?.models.chat || []
chat_models.value = store.config.engines.cerebras?.models?.chat || []
chat_model.value = store.config.engines.cerebras?.model?.chat || ''
}
Expand Down
2 changes: 1 addition & 1 deletion src/settings/SettingsGroq.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const chat_models = ref([])
const load = () => {
apiKey.value = store.config.engines.groq?.apiKey || ''
chat_models.value = store.config.engines.groq?.models.chat || []
chat_models.value = store.config.engines.groq?.models?.chat || []
chat_model.value = store.config.engines.groq?.model?.chat || ''
}
Expand Down
2 changes: 1 addition & 1 deletion src/settings/SettingsMistralAI.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const chat_models = ref([])
const load = () => {
apiKey.value = store.config.engines.mistralai?.apiKey || ''
chat_models.value = store.config.engines.mistralai?.models.chat || []
chat_models.value = store.config.engines.mistralai?.models?.chat || []
chat_model.value = store.config.engines.mistralai?.model?.chat || ''
}
Expand Down
2 changes: 1 addition & 1 deletion src/settings/SettingsOllama.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ onMounted(() => {
const load = () => {
baseURL.value = store.config.engines.ollama?.baseURL || ''
chat_models.value = store.config.engines.ollama?.models.chat || []
chat_models.value = store.config.engines.ollama?.models?.chat || []
chat_model.value = store.config.engines.ollama?.model?.chat || ''
}
Expand Down
2 changes: 1 addition & 1 deletion src/settings/SettingsXAI.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const chat_models = ref([])
const load = () => {
apiKey.value = store.config.engines.xai?.apiKey || ''
chat_models.value = store.config.engines.xai?.models.chat || []
chat_models.value = store.config.engines.xai?.models?.chat || []
chat_model.value = store.config.engines.xai?.model?.chat || ''
}
Expand Down

0 comments on commit 5f006f3

Please sign in to comment.