Skip to content

Commit d98378f

Browse files
committed
feat: Add geminiOptions to configuration and remove redundant model ID requirement
1 parent 3738fc3 commit d98378f

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/services/code-index/config-manager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ export class CodeIndexConfigManager {
280280
modelId: this.modelId,
281281
openAiOptions: this.openAiOptions,
282282
ollamaOptions: this.ollamaOptions,
283+
geminiOptions: this.geminiOptions,
283284
qdrantUrl: this.qdrantUrl,
284285
qdrantApiKey: this.qdrantApiKey,
285286
searchMinScore: this.searchMinScore,

webview-ui/src/components/settings/CodeIndexSettings.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ export const CodeIndexSettings: React.FC<CodeIndexSettingsProps> = ({
147147
gemini: baseSchema.extend({
148148
codebaseIndexEmbedderProvider: z.literal("gemini"),
149149
geminiApiKey: z.string().min(1, "Gemini API key is required"),
150-
codebaseIndexEmbedderModelId: z.string().min(1, "Gemini Model ID is required"),
151150
geminiEmbeddingTaskType: z.string().min(1, "Gemini Task Type is required"),
152151
}),
153152
}

0 commit comments

Comments
 (0)