Skip to content

Commit 4cd5248

Browse files
committed
🐛 FIX: Tests
1 parent 9e34192 commit 4cd5248

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

  • packages/langbase/src/pipes

packages/langbase/src/pipes/gen.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)