From a4f0b215292f81149746af577f7b431081ce4072 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Tue, 9 Dec 2025 08:07:03 +0000 Subject: [PATCH] feat: add create LLM config request/response schemas --- .../contracts/types/llm-config.types.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/surfsense_web/contracts/types/llm-config.types.ts b/surfsense_web/contracts/types/llm-config.types.ts index 9898a72d0..5095e3469 100644 --- a/surfsense_web/contracts/types/llm-config.types.ts +++ b/surfsense_web/contracts/types/llm-config.types.ts @@ -68,7 +68,26 @@ export const globalLLMConfig = llmConfig */ export const getGlobalLLMConfigsResponse = z.array(globalLLMConfig); +/** + * Create LLM config + */ +export const createLLMConfigRequest = llmConfig.pick({ + name: true, + provider: true, + custom_provider: true, + model_name: true, + api_key: true, + api_base: true, + language: true, + litellm_params: true, + search_space_id: true, +}); + +export const createLLMConfigResponse = llmConfig; + export type LLMConfig = z.infer; export type LiteLLMProvider = z.infer; export type GlobalLLMConfig = z.infer; export type GetGlobalLLMConfigsResponse = z.infer; +export type CreateLLMConfigRequest = z.infer; +export type CreateLLMConfigResponse = z.infer;