@@ -272,7 +272,7 @@ const LLM_PRESETS = [
272272
273273type LlmPresetId = typeof LLM_PRESETS [ number ] [ 'id' ] ;
274274
275- const ASR_DEFAULT_RESOURCE_ID = 'volc.bigasr .sauc.duration' ;
275+ const ASR_DEFAULT_RESOURCE_ID = 'volc.seedasr .sauc.duration' ;
276276
277277// SiliconFlow ASR 暂未在后端实现(coordinator.rs 只路由 whisper / volcengine)。
278278// 在后端接入前不暴露给用户,避免选了之后必然失败。重新启用见 issue #58 的 follow-up。
@@ -569,8 +569,8 @@ function CredentialField({ label, account, placeholder, mono, mask, defaultValue
569569 statusRef . current = window . setTimeout ( ( ) => setStatus ( 'idle' ) , 1600 ) ;
570570 } ;
571571
572- const save = async ( v : string ) => {
573- if ( ! loaded || ! dirty ) return ;
572+ const save = async ( v : string , force = false ) => {
573+ if ( ! loaded || ( ! dirty && ! force ) ) return ;
574574 setStatus ( 'saving' ) ;
575575 try {
576576 await setCredential ( account , v ) ;
@@ -588,7 +588,7 @@ function CredentialField({ label, account, placeholder, mono, mask, defaultValue
588588 if ( ! loaded ) return ;
589589 setDirty ( true ) ;
590590 if ( debounceRef . current ) clearTimeout ( debounceRef . current ) ;
591- debounceRef . current = setTimeout ( ( ) => save ( v ) , 300 ) ;
591+ debounceRef . current = setTimeout ( ( ) => save ( v , true ) , 300 ) ;
592592 } ;
593593
594594 const onBlur = ( ) => {
@@ -597,14 +597,14 @@ function CredentialField({ label, account, placeholder, mono, mask, defaultValue
597597 clearTimeout ( debounceRef . current ) ;
598598 debounceRef . current = null ;
599599 }
600- save ( value ) ;
600+ save ( value , true ) ;
601601 } ;
602602
603603 const fillDefault = async ( ) => {
604604 if ( ! loaded || ! defaultValue ) return ;
605605 setValue ( defaultValue ) ;
606606 setDirty ( true ) ;
607- await save ( defaultValue ) ;
607+ await save ( defaultValue , true ) ;
608608 } ;
609609
610610 const onCopy = async ( ) => {
0 commit comments