@@ -104,11 +104,16 @@ describe("CodeIndexConfigManager", () => {
104104 isConfigured : false ,
105105 embedderProvider : "openai" ,
106106 modelId : undefined ,
107+ modelDimension : undefined ,
107108 openAiOptions : { openAiNativeApiKey : "" } ,
108109 ollamaOptions : { ollamaBaseUrl : "" } ,
110+ openAiCompatibleOptions : undefined ,
111+ geminiOptions : undefined ,
112+ mistralOptions : undefined ,
109113 qdrantUrl : "http://localhost:6333" ,
110114 qdrantApiKey : "" ,
111115 searchMinScore : 0.4 ,
116+ embeddingBatchSize : 60 ,
112117 } )
113118 expect ( result . requiresRestart ) . toBe ( false )
114119 } )
@@ -135,11 +140,16 @@ describe("CodeIndexConfigManager", () => {
135140 isConfigured : true ,
136141 embedderProvider : "openai" ,
137142 modelId : "text-embedding-3-large" ,
143+ modelDimension : undefined ,
138144 openAiOptions : { openAiNativeApiKey : "test-openai-key" } ,
139145 ollamaOptions : { ollamaBaseUrl : "" } ,
146+ openAiCompatibleOptions : undefined ,
147+ geminiOptions : undefined ,
148+ mistralOptions : undefined ,
140149 qdrantUrl : "http://qdrant.local" ,
141150 qdrantApiKey : "test-qdrant-key" ,
142151 searchMinScore : 0.4 ,
152+ embeddingBatchSize : 60 ,
143153 } )
144154 } )
145155
@@ -167,6 +177,10 @@ describe("CodeIndexConfigManager", () => {
167177 expect ( result . currentConfig ) . toEqual ( {
168178 isConfigured : true ,
169179 embedderProvider : "openai-compatible" ,
180+ embeddingBatchSize : 60 ,
181+ geminiOptions : undefined ,
182+ mistralOptions : undefined ,
183+ modelDimension : undefined ,
170184 modelId : "text-embedding-3-large" ,
171185 openAiOptions : { openAiNativeApiKey : "" } ,
172186 ollamaOptions : { ollamaBaseUrl : "" } ,
@@ -204,6 +218,9 @@ describe("CodeIndexConfigManager", () => {
204218 expect ( result . currentConfig ) . toEqual ( {
205219 isConfigured : true ,
206220 embedderProvider : "openai-compatible" ,
221+ embeddingBatchSize : 60 ,
222+ geminiOptions : undefined ,
223+ mistralOptions : undefined ,
207224 modelId : "custom-model" ,
208225 modelDimension : 1024 ,
209226 openAiOptions : { openAiNativeApiKey : "" } ,
@@ -242,6 +259,10 @@ describe("CodeIndexConfigManager", () => {
242259 expect ( result . currentConfig ) . toEqual ( {
243260 isConfigured : true ,
244261 embedderProvider : "openai-compatible" ,
262+ embeddingBatchSize : 60 ,
263+ geminiOptions : undefined ,
264+ mistralOptions : undefined ,
265+ modelDimension : undefined ,
245266 modelId : "custom-model" ,
246267 openAiOptions : { openAiNativeApiKey : "" } ,
247268 ollamaOptions : { ollamaBaseUrl : "" } ,
@@ -280,6 +301,7 @@ describe("CodeIndexConfigManager", () => {
280301 expect ( result . currentConfig ) . toEqual ( {
281302 isConfigured : true ,
282303 embedderProvider : "openai-compatible" ,
304+ embeddingBatchSize : 60 ,
283305 modelId : "custom-model" ,
284306 modelDimension : undefined , // Invalid dimension is converted to undefined
285307 openAiOptions : { openAiNativeApiKey : "" } ,
@@ -289,6 +311,7 @@ describe("CodeIndexConfigManager", () => {
289311 apiKey : "test-openai-compatible-key" ,
290312 } ,
291313 geminiOptions : undefined ,
314+ mistralOptions : undefined ,
292315 qdrantUrl : "http://qdrant.local" ,
293316 qdrantApiKey : "test-qdrant-key" ,
294317 searchMinScore : 0.4 ,
@@ -1291,10 +1314,13 @@ describe("CodeIndexConfigManager", () => {
12911314 expect ( config ) . toEqual ( {
12921315 isConfigured : true ,
12931316 embedderProvider : "openai" ,
1317+ embeddingBatchSize : 60 ,
1318+ geminiOptions : undefined ,
1319+ mistralOptions : undefined ,
1320+ modelDimension : undefined ,
12941321 modelId : "text-embedding-3-large" ,
12951322 openAiOptions : { openAiNativeApiKey : "test-openai-key" } ,
12961323 ollamaOptions : { ollamaBaseUrl : undefined } ,
1297- geminiOptions : undefined ,
12981324 openAiCompatibleOptions : undefined ,
12991325 qdrantUrl : "http://qdrant.local" ,
13001326 qdrantApiKey : "test-qdrant-key" ,
0 commit comments