Skip to content

Commit be84157

Browse files
committed
fix: add mistral to codebase index schema types
- Add mistral to codebaseIndexModelsSchema - Add codebaseIndexMistralApiKey to codebaseIndexProviderSchema - Fixes TypeScript compilation errors in webview component
1 parent f33ed1b commit be84157

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/types/src/codebase-index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export const codebaseIndexModelsSchema = z.object({
4747
ollama: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
4848
"openai-compatible": z.record(z.string(), z.object({ dimension: z.number() })).optional(),
4949
gemini: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
50+
mistral: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
5051
})
5152

5253
export type CodebaseIndexModels = z.infer<typeof codebaseIndexModelsSchema>
@@ -62,6 +63,7 @@ export const codebaseIndexProviderSchema = z.object({
6263
codebaseIndexOpenAiCompatibleApiKey: z.string().optional(),
6364
codebaseIndexOpenAiCompatibleModelDimension: z.number().optional(),
6465
codebaseIndexGeminiApiKey: z.string().optional(),
66+
codebaseIndexMistralApiKey: z.string().optional(),
6567
})
6668

6769
export type CodebaseIndexProvider = z.infer<typeof codebaseIndexProviderSchema>

0 commit comments

Comments
 (0)