Skip to content

Commit cf8fc6d

Browse files
committed
fix: base url typecheck
1 parent 6c2c661 commit cf8fc6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

typescript/src/client/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ export class AgenticLearning {
4040
// Check for API key in environment if not provided
4141
const apiKey = options.apiKey || process.env.LETTA_API_KEY;
4242

43-
// Use provided base URL or environment; underlying client will handle its own default if unset
44-
this.baseUrl = options.baseUrl || process.env.LETTA_BASE_URL;
43+
// Use provided base URL or environment, falling back to cloud default
44+
this.baseUrl = options.baseUrl ?? process.env.LETTA_BASE_URL ?? '';
4545

4646
// Create underlying Letta client
4747
this.letta = new Letta({

0 commit comments

Comments
 (0)