diff --git a/surfsense_web/contracts/types/llm-config.types.ts b/surfsense_web/contracts/types/llm-config.types.ts index 745817425..b862d84b3 100644 --- a/surfsense_web/contracts/types/llm-config.types.ts +++ b/surfsense_web/contracts/types/llm-config.types.ts @@ -100,6 +100,13 @@ export const getLLMConfigsRequest = z.object({ export const getLLMConfigsResponse = z.array(llmConfig); +/** + * Get LLM config by ID + */ +export const getLLMConfigRequest = llmConfig.pick({ id: true }); + +export const getLLMConfigResponse = llmConfig; + export type LLMConfig = z.infer; export type LiteLLMProvider = z.infer; export type GlobalLLMConfig = z.infer; @@ -108,3 +115,5 @@ export type CreateLLMConfigRequest = z.infer; export type CreateLLMConfigResponse = z.infer; export type GetLLMConfigsRequest = z.infer; export type GetLLMConfigsResponse = z.infer; +export type GetLLMConfigRequest = z.infer; +export type GetLLMConfigResponse = z.infer;