-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
42 lines (37 loc) · 1.19 KB
/
types.ts
File metadata and controls
42 lines (37 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
export interface AdapterOptions {
/**
* OpenAI API key. Go to https://platform.openai.com/, go to Dashboard -> API keys -> Create new secret key
* Paste value in your .env file OPENAI_API_KEY=your_key
* Set openAiApiKey: process.env.OPENAI_API_KEY to access it
*/
openAiApiKey: string;
/**
* Optional OpenAI-compatible base URL.
*
* Example: `https://oai.endpoints.kepler.ai.cloud.ovh.net/v1`
*/
baseUrl?: string;
/**
* Forces LangChain agent mode to use the Chat Completions API instead of the
* Responses API.
*
* When omitted, the adapter keeps the current default behavior:
* - official OpenAI uses the Responses API
* - custom `baseUrl` providers use the Chat Completions API
*/
useComplitionApi?: boolean;
/**
* Model name. Go to https://platform.openai.com/docs/models, select model and copy name.
* Default is `gpt-5-nano`.
*/
model?: string;
/**
* Additional request body parameters to include in the API request.
*/
extraRequestBodyParameters?: Record<string, unknown>;
/**
* Logs the exact JSON body sent to the OpenAI Responses endpoint.
* Authorization headers are not logged.
*/
dumpRawRequest?: boolean;
}