From 506419597e586001a1dca4d7642d35e370092a13 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Tue, 9 Dec 2025 09:05:16 +0000 Subject: [PATCH] fix: adjust llm-config type constraints for api_base and language fields --- surfsense_web/contracts/types/llm-config.types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/surfsense_web/contracts/types/llm-config.types.ts b/surfsense_web/contracts/types/llm-config.types.ts index 613245f34..f24b23af6 100644 --- a/surfsense_web/contracts/types/llm-config.types.ts +++ b/surfsense_web/contracts/types/llm-config.types.ts @@ -41,8 +41,8 @@ export const llmConfig = z.object({ custom_provider: z.string().max(100).nullable().optional(), model_name: z.string().max(100), api_key: z.string(), - api_base: z.string().max(500).nullable().optional(), - language: z.string().max(50).nullable().optional().default("English"), + api_base: z.string().nullable().optional(), + language: z.string().max(50).nullable(), litellm_params: z.record(z.string(), z.any()).nullable().optional(), search_space_id: z.number(), created_at: z.string(),