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;