mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-06 02:47:56 +00:00
Bring back more gemini cli types (#5227)
This commit is contained in:
parent
0c89162199
commit
5cda9e453b
1 changed files with 7 additions and 0 deletions
|
|
@ -159,6 +159,11 @@ const geminiSchema = apiModelIdProviderModelSchema.extend({
|
|||
googleGeminiBaseUrl: z.string().optional(),
|
||||
})
|
||||
|
||||
const geminiCliSchema = apiModelIdProviderModelSchema.extend({
|
||||
geminiCliOAuthPath: z.string().optional(),
|
||||
geminiCliProjectId: z.string().optional(),
|
||||
})
|
||||
|
||||
const openAiNativeSchema = apiModelIdProviderModelSchema.extend({
|
||||
openAiNativeApiKey: z.string().optional(),
|
||||
openAiNativeBaseUrl: z.string().optional(),
|
||||
|
|
@ -224,6 +229,7 @@ export const providerSettingsSchemaDiscriminated = z.discriminatedUnion("apiProv
|
|||
vsCodeLmSchema.merge(z.object({ apiProvider: z.literal("vscode-lm") })),
|
||||
lmStudioSchema.merge(z.object({ apiProvider: z.literal("lmstudio") })),
|
||||
geminiSchema.merge(z.object({ apiProvider: z.literal("gemini") })),
|
||||
geminiCliSchema.merge(z.object({ apiProvider: z.literal("gemini-cli") })),
|
||||
openAiNativeSchema.merge(z.object({ apiProvider: z.literal("openai-native") })),
|
||||
mistralSchema.merge(z.object({ apiProvider: z.literal("mistral") })),
|
||||
deepSeekSchema.merge(z.object({ apiProvider: z.literal("deepseek") })),
|
||||
|
|
@ -251,6 +257,7 @@ export const providerSettingsSchema = z.object({
|
|||
...vsCodeLmSchema.shape,
|
||||
...lmStudioSchema.shape,
|
||||
...geminiSchema.shape,
|
||||
...geminiCliSchema.shape,
|
||||
...openAiNativeSchema.shape,
|
||||
...mistralSchema.shape,
|
||||
...deepSeekSchema.shape,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue