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
* @param {Environment} [opts.environment=cloud] - Specifies the environment URL to use for the API.
@@ -323,17 +323,11 @@ export class Letta {
323
323
*/
324
324
constructor({
325
325
baseURL =readEnv('LETTA_BASE_URL'),
326
-
apiKey =readEnv('LETTA_API_KEY'),
326
+
apiKey =readEnv('LETTA_API_KEY')??null,
327
327
projectID =null,
328
328
project =null,
329
329
...opts
330
330
}: ClientOptions={}){
331
-
if(apiKey===undefined){
332
-
thrownewErrors.LettaError(
333
-
"The LETTA_API_KEY environment variable is missing or empty; either provide it, or instantiate the Letta client with an apiKey option, like new Letta({ apiKey: 'My API Key' }).",
0 commit comments