File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " think-app " : patch
3+ ---
4+
5+ fix(app): use mxbai-embed-large instead of nomic-embed-text in SetupWizard
6+
7+ The SetupWizard was still hardcoded to download nomic-embed-text, which is now
8+ blocked due to crashes on content >5000 chars. Updated to use mxbai-embed-large
9+ to match the backend's default embedding model.
Original file line number Diff line number Diff line change @@ -112,13 +112,13 @@ export default function SetupWizard({ onComplete }: Props) {
112112 if ( res . ok ) {
113113 const data = await res . json ( ) ;
114114 const models = data . models ?. map ( ( m : { name : string } ) => m . name ) || [ ] ;
115- const hasEmbedding = models . some ( ( n : string ) => n . startsWith ( 'nomic -embed-text ' ) ) ;
115+ const hasEmbedding = models . some ( ( n : string ) => n . startsWith ( 'mxbai -embed-large ' ) ) ;
116116
117117 if ( ! hasEmbedding && window . electronAPI ) {
118118 setStep ( 'pulling' ) ;
119119 setProgress ( 0 ) ;
120120 setStatusText ( 'Downloading embedding model...' ) ;
121- const result = await window . electronAPI . pullModel ( 'nomic -embed-text ' ) ;
121+ const result = await window . electronAPI . pullModel ( 'mxbai -embed-large ' ) ;
122122 if ( ! result . success ) {
123123 setError ( result . error || 'Embedding model download failed' ) ;
124124 setStep ( 'choose' ) ;
@@ -171,7 +171,7 @@ export default function SetupWizard({ onComplete }: Props) {
171171 setProgress ( 0 ) ;
172172 setStatusText ( 'Downloading embedding model...' ) ;
173173
174- const embedResult = await window . electronAPI . pullModel ( 'nomic -embed-text ' ) ;
174+ const embedResult = await window . electronAPI . pullModel ( 'mxbai -embed-large ' ) ;
175175
176176 if ( ! embedResult . success ) {
177177 setError ( embedResult . error || 'Embedding model download failed' ) ;
You can’t perform that action at this time.
0 commit comments