Skip to content

Commit 7cf14e0

Browse files
committed
fix: add openrouter to codebase index type definitions
1 parent 66387bc commit 7cf14e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/types/src/codebase-index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const codebaseIndexConfigSchema = z.object({
2222
codebaseIndexEnabled: z.boolean().optional(),
2323
codebaseIndexQdrantUrl: z.string().optional(),
2424
codebaseIndexEmbedderProvider: z
25-
.enum(["openai", "ollama", "openai-compatible", "gemini", "mistral", "vercel-ai-gateway"])
25+
.enum(["openai", "ollama", "openai-compatible", "gemini", "mistral", "vercel-ai-gateway", "openrouter"])
2626
.optional(),
2727
codebaseIndexEmbedderBaseUrl: z.string().optional(),
2828
codebaseIndexEmbedderModelId: z.string().optional(),
@@ -51,6 +51,7 @@ export const codebaseIndexModelsSchema = z.object({
5151
gemini: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
5252
mistral: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
5353
"vercel-ai-gateway": z.record(z.string(), z.object({ dimension: z.number() })).optional(),
54+
openrouter: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
5455
})
5556

5657
export type CodebaseIndexModels = z.infer<typeof codebaseIndexModelsSchema>

0 commit comments

Comments
 (0)