Skip to content

Commit 8d6306a

Browse files
committed
🐛 FIX: Pipe name
1 parent fec2892 commit 8d6306a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

examples/nodejs/examples/pipes/pipe.create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const langbase = new Langbase({
77

88
async function main() {
99
const response = await langbase.pipes.create({
10-
name: 'summary-pipe2',
10+
name: 'summary',
1111
status: 'private',
1212
});
1313

examples/nodejs/examples/pipes/pipe.run.chat.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const langbase = new Langbase({
88
async function main() {
99
// Message 1: Tell something to the LLM.
1010
const response1 = await langbase.pipes.run({
11+
stream: false,
1112
name: 'summary',
1213
messages: [{role: 'user', content: 'My company is called Langbase'}],
1314
});
@@ -19,6 +20,7 @@ async function main() {
1920
// `threadId` from the second message onwards.
2021
const response2 = await langbase.pipes.run({
2122
name: 'summary',
23+
stream: false,
2224
threadId: response1.threadId!,
2325
messages: [{role: 'user', content: 'Tell me the name of my company?'}],
2426
});

examples/nodejs/examples/pipes/pipe.update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const langbase = new Langbase({
77

88
async function main() {
99
const response = await langbase.pipes.update({
10-
name: 'summary-pipe',
10+
name: 'summary',
1111
description: 'This is a pipe updated with the SDK',
1212
model: 'google:gemini-1.5-flash-8b-latest',
1313
});

0 commit comments

Comments
 (0)