mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
fix: add mistral to codebase index schema types
- Add mistral to codebaseIndexModelsSchema - Add codebaseIndexMistralApiKey to codebaseIndexProviderSchema - Fixes TypeScript compilation errors in webview component
This commit is contained in:
parent
f33ed1bc6b
commit
be84157d29
1 changed files with 2 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ export const codebaseIndexModelsSchema = z.object({
|
|||
ollama: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
|
||||
"openai-compatible": z.record(z.string(), z.object({ dimension: z.number() })).optional(),
|
||||
gemini: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
|
||||
mistral: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
|
||||
})
|
||||
|
||||
export type CodebaseIndexModels = z.infer<typeof codebaseIndexModelsSchema>
|
||||
|
|
@ -62,6 +63,7 @@ export const codebaseIndexProviderSchema = z.object({
|
|||
codebaseIndexOpenAiCompatibleApiKey: z.string().optional(),
|
||||
codebaseIndexOpenAiCompatibleModelDimension: z.number().optional(),
|
||||
codebaseIndexGeminiApiKey: z.string().optional(),
|
||||
codebaseIndexMistralApiKey: z.string().optional(),
|
||||
})
|
||||
|
||||
export type CodebaseIndexProvider = z.infer<typeof codebaseIndexProviderSchema>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue