Skip to content

Commit

Permalink
📦 NEW: Optional langbase key
Browse files Browse the repository at this point in the history
  • Loading branch information
msaaddev committed Dec 20, 2024
1 parent c721b1f commit 6c396fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/langbase/src/langbase/langbase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,10 @@ export class Langbase {
};
};

constructor(options: LangbaseOptions) {
constructor(options?: LangbaseOptions) {
const baseUrl = 'https://api.langbase.com';
this.apiKey = options.apiKey;
this.request = new Request({apiKey: options.apiKey, baseUrl});
this.apiKey = options?.apiKey ?? '';
this.request = new Request({apiKey: this.apiKey, baseUrl});

// Initialize pipe property with method bindings
this.pipe = {
Expand Down

0 comments on commit 6c396fc

Please sign in to comment.