File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
apps/desktop/src/components/settings/ai Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments