Skip to content

Commit e29fe1c

Browse files
committed
Add headers option to custom LLM models
1 parent 37300c0 commit e29fe1c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

api.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4801,6 +4801,10 @@ export interface CustomLLMModel {
48014801
metadataSendMode?: "off" | "variable" | "destructured";
48024802
/** These is the URL we'll use for the OpenAI client's `baseURL`. Ex. https://openrouter.ai/api/v1 */
48034803
url: string;
4804+
/**
4805+
* Custom headers to send with requests to the custom LLM endpoint. These headers can override default OpenAI headers except Authorization.
4806+
*/
4807+
headers?: Record<string, string>;
48044808
/**
48054809
* This sets the timeout for the connection to the custom provider without needing to stream any tokens back. Default is 20 seconds.
48064810
* @min 20

0 commit comments

Comments
 (0)