File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/app/[variants]/(main)/settings/provider/features/ProviderConfig Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ const Checker = memo<ConnectionCheckerProps>(
5959 ) ;
6060 const totalModels = useAiInfraStore ( aiModelSelectors . aiProviderChatModelListIds ) ;
6161 const updateAiProviderConfig = useAiInfraStore ( ( s ) => s . updateAiProviderConfig ) ;
62+ const currentConfig = useAiInfraStore ( aiProviderSelectors . providerConfigById ( provider ) ) ;
6263
6364 const [ loading , setLoading ] = useState ( false ) ;
6465 const [ pass , setPass ] = useState ( false ) ;
@@ -126,7 +127,10 @@ const Checker = memo<ConnectionCheckerProps>(
126127 listItemHeight = { 36 }
127128 onSelect = { async ( value ) => {
128129 setCheckModel ( value ) ;
129- await updateAiProviderConfig ( provider , { checkModel : value } ) ;
130+ await updateAiProviderConfig ( provider , {
131+ ...currentConfig ,
132+ checkModel : value ,
133+ } ) ;
130134 } }
131135 optionRender = { ( { value } ) => {
132136 return (
You can’t perform that action at this time.
0 commit comments