Add LiteLLM to the remote config (#7307)

* Add Google Vertex and LiteLLM to the remote config

* Add the LiteLLM models and export types
This commit is contained in:
Tomás Barreiro authored and GitHub committed 2025-11-07 20:24:27 +01:00
1 parent f1bf9b3f90
commit daf14ef181
1 file changed
+26 -5
+26 -5
View File
@@ -87,6 +87,17 @@ export const VertexSettingsSchema = z.object({
vertexRegion: z.string().optional(),
})
export const LiteLLMModelSchema = z.object({
id: z.string(),
thinkingBudgetTokens: z.number().optional(),
promptCachingEnabled: z.boolean().optional(),
})
export const LiteLLMSchema = z.object({
models: z.array(LiteLLMModelSchema).optional(),
baseUrl: z.string().optional(),
})
// Provider settings schema
// Each provider becomes an optional field
const ProviderSettingsSchema = z.object({
@@ -94,6 +105,7 @@ const ProviderSettingsSchema = z.object({
AwsBedrock: AwsBedrockSettingsSchema.optional(),
Cline: ClineSettingsSchema.optional(),
Vertex: VertexSettingsSchema.optional(),
LiteLLM: LiteLLMSchema.optional(),
})
export const AllowedMCPServerSchema = z.object({
@@ -153,12 +165,21 @@ export const RemoteConfigSchema = z.object({
})
// Type inference from schemas
export type RemoteConfig = z.infer<typeof RemoteConfigSchema>
export type MCPServer = z.infer<typeof AllowedMCPServerSchema>
export type OpenAiCompatibleModel = z.infer<typeof OpenAiCompatibleModelSchema>
export type GlobalInstructionsFile = z.infer<typeof GlobalInstructionsFileSchema>
export type ProviderSettings = z.infer<typeof ProviderSettingsSchema>
export type OpenAiCompatible = z.infer<typeof OpenAiCompatibleSchema>
export type OpenAiCompatibleModel = z.infer<typeof OpenAiCompatibleModelSchema>
export type AwsBedrockSettings = z.infer<typeof AwsBedrockSettingsSchema>
export type AwsBedrockModel = z.infer<typeof AwsBedrockModelSchema>
export type AwsBedrockCustomModel = z.infer<typeof AwsBedrockCustomModelSchema>
export type AwsBedrockSettings = z.infer<typeof AwsBedrockSettingsSchema>
export type ProviderSettings = z.infer<typeof ProviderSettingsSchema>
export type RemoteConfig = z.infer<typeof RemoteConfigSchema>
export type GlobalInstructionsFile = z.infer<typeof GlobalInstructionsFileSchema>
export type VertexSettings = z.infer<typeof VertexSettingsSchema>
export type VertexModel = z.infer<typeof VertexModelSchema>
export type LiteLLMSettings = z.infer<typeof LiteLLMSchema>
export type LiteLLMModel = z.infer<typeof LiteLLMModelSchema>