Skip to content

Commit 03a6c69

Browse files
coderabbit
1 parent 3ade0f7 commit 03a6c69

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

apps/desktop/src/components/settings/ai/llm/select.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,16 @@ export function SelectProviderAndModel() {
6666
if (!currentModel) {
6767
const listModelsFunc = configuredProviders[providerId];
6868
if (listModelsFunc) {
69-
listModelsFunc().then((result) => {
70-
if (result.models.length > 0) {
71-
form.setFieldValue("model", result.models[0]);
72-
}
73-
}).catch(console.error);
69+
listModelsFunc()
70+
.then((result) => {
71+
if (form.getFieldValue("provider") !== providerId) {
72+
return;
73+
}
74+
if (result.models.length > 0) {
75+
form.setFieldValue("model", result.models[0]);
76+
}
77+
})
78+
.catch(console.error);
7479
}
7580
}
7681
providerChangeRef.current = null;

apps/desktop/src/components/settings/ai/stt/select.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,10 @@ function HealthCheck() {
258258

259259
const isLocalModel = current_stt_provider === "hyprnote"
260260
&& current_stt_model
261-
&& (current_stt_model === "am-parakeet-v2" || current_stt_model === "am-parakeet-v3");
261+
&& (
262+
current_stt_model.startsWith("am-")
263+
|| current_stt_model.startsWith("Quantized")
264+
);
262265

263266
if (!isLocalModel) {
264267
return null;

0 commit comments

Comments
 (0)