File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
examples/nodejs/examples/pipes Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const langbase = new Langbase({
77
88async function main ( ) {
99 const response = await langbase . pipes . create ( {
10- name : 'summary-pipe2 ' ,
10+ name : 'summary' ,
1111 status : 'private' ,
1212 } ) ;
1313
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const langbase = new Langbase({
88async 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 } ) ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const langbase = new Langbase({
77
88async 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 } ) ;
You can’t perform that action at this time.
0 commit comments