File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ export interface ClientOptions {
11
11
/**
12
12
* Defaults to process.env['OPENAI_API_KEY'].
13
13
*/
14
- apiKey ?: string ;
14
+ apiKey ?: string | undefined ;
15
15
16
16
/**
17
17
* Defaults to process.env['OPENAI_ORG_ID'].
18
18
*/
19
- organization ?: string | null ;
19
+ organization ?: string | null | undefined ;
20
20
21
21
/**
22
22
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
@@ -91,8 +91,8 @@ export class OpenAI extends Core.APIClient {
91
91
/**
92
92
* API Client for interfacing with the OpenAI API.
93
93
*
94
- * @param {string } [opts.apiKey=process.env['OPENAI_API_KEY'] ?? undefined]
95
- * @param {string | null } [opts.organization=process.env['OPENAI_ORG_ID'] ?? null]
94
+ * @param {string | undefined } [opts.apiKey=process.env['OPENAI_API_KEY'] ?? undefined]
95
+ * @param {string | null | undefined } [opts.organization=process.env['OPENAI_ORG_ID'] ?? null]
96
96
* @param {string } [opts.baseURL=process.env['OPENAI_BASE_URL'] ?? https://api.openai.com/v1] - Override the default base URL for the API.
97
97
* @param {number } [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
98
98
* @param {number } [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
You can’t perform that action at this time.
0 commit comments