We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c2c661 commit cf8fc6dCopy full SHA for cf8fc6d
typescript/src/client/index.ts
@@ -40,8 +40,8 @@ export class AgenticLearning {
40
// Check for API key in environment if not provided
41
const apiKey = options.apiKey || process.env.LETTA_API_KEY;
42
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;
+ // Use provided base URL or environment, falling back to cloud default
+ this.baseUrl = options.baseUrl ?? process.env.LETTA_BASE_URL ?? '';
45
46
// Create underlying Letta client
47
this.letta = new Letta({
0 commit comments