File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,9 @@ class LLMService {
114114 async initializeMultimodal ( mmProjPath : string ) : Promise < boolean > {
115115 if ( ! this . context ) { logger . warn ( '[LLM] initializeMultimodal: no context' ) ; return false ; }
116116 try {
117- const sizeMB = ( Number ( ( await RNFS . stat ( mmProjPath ) ) . size ) / ( 1024 * 1024 ) ) . toFixed ( 1 ) ;
118- logger . log ( `[LLM] mmproj file size: ${ sizeMB } MB` ) ;
119- if ( Number ( sizeMB ) < 100 ) console . warn ( `[LLM] WARNING: mmproj file seems too small (${ sizeMB } MB)` ) ;
117+ const sizeMB = Number ( ( await RNFS . stat ( mmProjPath ) ) . size ) / ( 1024 * 1024 ) ;
118+ logger . log ( `[LLM] mmproj file size: ${ sizeMB . toFixed ( 1 ) } MB` ) ;
119+ if ( sizeMB < 100 ) console . warn ( `[LLM] WARNING: mmproj file seems too small (${ sizeMB . toFixed ( 1 ) } MB)` ) ;
120120 } catch ( statErr ) { console . error ( '[LLM] Failed to stat mmproj file:' , statErr ) ; }
121121 const devInfo = useAppStore . getState ( ) . deviceInfo ;
122122 const useGpuForClip = Platform . OS === 'ios' && ! devInfo ?. isEmulator && ( devInfo ?. totalMemory ?? 0 ) > 4 * BYTES_PER_GB ;
You can’t perform that action at this time.
0 commit comments