We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e34192 commit 4cd5248Copy full SHA for 4cd5248
1 file changed
packages/langbase/src/pipes/gen.ts
@@ -0,0 +1,21 @@
1
+import 'dotenv/config';
2
+import Langbase from '../index';
3
+
4
+async function main() {
5
+ const pipeLessWordy = Langbase.pipe({
6
+ apiKey: process.env.PIPE_LESS_WORDY!,
7
+ });
8
+ console.log('✨ ~ process.env:', process.env);
9
+ console.log(
10
+ '✨ ~ process.env.PIPE_LESS_WORDY:',
11
+ process.env.PIPE_LESS_WORDY,
12
+ );
13
14
+ const result = await pipeLessWordy.generateText({
15
+ messages: [{role: 'user', content: 'Who is Ahmad Awais?'}],
16
17
18
+ console.log(result.completion);
19
+}
20
21
+main();
0 commit comments