@@ -37,6 +37,13 @@ describe("CodeIndexConfigManager", () => {
3737 modelId : undefined ,
3838 openAiOptions : { openAiNativeApiKey : "" } ,
3939 ollamaOptions : { ollamaBaseUrl : "" } ,
40+ geminiOptions : {
41+ apiModelId : undefined ,
42+ geminiApiKey : "" ,
43+ geminiEmbeddingDimension : undefined ,
44+ geminiEmbeddingTaskType : "CODE_RETRIEVAL_QUERY" ,
45+ rateLimitSeconds : undefined ,
46+ } ,
4047 qdrantUrl : "http://localhost:6333" ,
4148 qdrantApiKey : "" ,
4249 searchMinScore : 0.4 ,
@@ -68,6 +75,19 @@ describe("CodeIndexConfigManager", () => {
6875 modelId : "text-embedding-3-large" ,
6976 openAiOptions : { openAiNativeApiKey : "test-openai-key" } ,
7077 ollamaOptions : { ollamaBaseUrl : "" } ,
78+ geminiOptions : {
79+ apiModelId : "text-embedding-3-large" ,
80+ geminiApiKey : "" ,
81+ geminiEmbeddingDimension : undefined ,
82+ geminiEmbeddingTaskType : "CODE_RETRIEVAL_QUERY" ,
83+ rateLimitSeconds : {
84+ codebaseIndexEnabled : true ,
85+ codebaseIndexQdrantUrl : "http://qdrant.local" ,
86+ codebaseIndexEmbedderProvider : "openai" ,
87+ codebaseIndexEmbedderBaseUrl : "" ,
88+ codebaseIndexEmbedderModelId : "text-embedding-3-large" ,
89+ } ,
90+ } ,
7191 qdrantUrl : "http://qdrant.local" ,
7292 qdrantApiKey : "test-qdrant-key" ,
7393 searchMinScore : 0.4 ,
@@ -485,6 +505,19 @@ describe("CodeIndexConfigManager", () => {
485505 modelId : "text-embedding-3-large" ,
486506 openAiOptions : { openAiNativeApiKey : "test-openai-key" } ,
487507 ollamaOptions : { ollamaBaseUrl : undefined } ,
508+ geminiEmbeddingDimension : undefined ,
509+ geminiOptions : {
510+ apiModelId : "text-embedding-3-large" ,
511+ geminiApiKey : "" ,
512+ geminiEmbeddingDimension : undefined ,
513+ geminiEmbeddingTaskType : "CODE_RETRIEVAL_QUERY" ,
514+ rateLimitSeconds : {
515+ codebaseIndexEnabled : true ,
516+ codebaseIndexQdrantUrl : "http://qdrant.local" ,
517+ codebaseIndexEmbedderProvider : "openai" ,
518+ codebaseIndexEmbedderModelId : "text-embedding-3-large" ,
519+ } ,
520+ } ,
488521 qdrantUrl : "http://qdrant.local" ,
489522 qdrantApiKey : "test-qdrant-key" ,
490523 searchMinScore : 0.4 ,
0 commit comments