From e29fe1c13f28bb1890718c359b3fc8b45442e5a2 Mon Sep 17 00:00:00 2001 From: Shubham Bajaj Date: Wed, 6 Aug 2025 19:11:25 +0530 Subject: [PATCH] Add headers option to custom LLM models --- api.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api.ts b/api.ts index f3b3ca26d..bb9780f91 100644 --- a/api.ts +++ b/api.ts @@ -4801,6 +4801,10 @@ export interface CustomLLMModel { metadataSendMode?: "off" | "variable" | "destructured"; /** These is the URL we'll use for the OpenAI client's `baseURL`. Ex. https://openrouter.ai/api/v1 */ url: string; + /** + * Custom headers to send with requests to the custom LLM endpoint. These headers can override default OpenAI headers except Authorization. + */ + headers?: Record; /** * This sets the timeout for the connection to the custom provider without needing to stream any tokens back. Default is 20 seconds. * @min 20