You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -365,7 +365,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
365
365
366
366
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
367
367
368
-
We are keen for your feedback; please open an [issue](https://www.github.com/uselemma/sdk-typescript/issues) with questions, bugs, or suggestions.
368
+
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/lemma-typescript/issues) with questions, bugs, or suggestions.
* @param {string} [opts.baseURL=process.env['LEMMA_BASE_URL'] ?? https://api.example.com] - Override the default base URL for the API.
165
167
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
166
168
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
@@ -171,17 +173,17 @@ export class Lemma {
171
173
*/
172
174
constructor({
173
175
baseURL =readEnv('LEMMA_BASE_URL'),
174
-
apiKey=readEnv('LEMMA_API_KEY'),
176
+
bearerToken=readEnv('LEMMA_BEARER_TOKEN'),
175
177
...opts
176
178
}: ClientOptions={}){
177
-
if(apiKey===undefined){
179
+
if(bearerToken===undefined){
178
180
thrownewErrors.LemmaError(
179
-
"The LEMMA_API_KEY environment variable is missing or empty; either provide it, or instantiate the Lemma client with an apiKey option, like new Lemma({ apiKey: 'My API Key' }).",
181
+
"The LEMMA_BEARER_TOKEN environment variable is missing or empty; either provide it, or instantiate the Lemma client with an bearerToken option, like new Lemma({ bearerToken: 'My Bearer Token' }).",
0 commit comments