@@ -32,7 +32,7 @@ yarn add langbase
3232
3333### Usage
3434
35- You can [ ` langbase.pipe .run() ` ] ( https://langbase.com/docs/sdk/pipe/run ) to generate or stream from a Pipe.
35+ You can [ ` langbase.pipes .run() ` ] ( https://langbase.com/docs/sdk/pipe/run ) to generate or stream from a Pipe.
3636
3737Check our [ SDK documentation] ( https://langbase.com/docs/sdk ) for more details.
3838
@@ -60,9 +60,9 @@ LANGBASE_API_KEY="your-api-key"
6060
6161---
6262
63- ### Generate text [ ` langbase.pipe .run() ` ] ( https://langbase.com/docs/sdk/pipe/run )
63+ ### Generate text [ ` langbase.pipes .run() ` ] ( https://langbase.com/docs/sdk/pipe/run )
6464
65- Set the ` stream ` to ` false ` . For more, check the API reference of [ ` langbase.pipe .run() ` ] ( https://langbase.com/docs/langbase-sdk/generate-text )
65+ Set the ` stream ` to ` false ` . For more, check the API reference of [ ` langbase.pipes .run() ` ] ( https://langbase.com/docs/langbase-sdk/generate-text )
6666
6767``` ts
6868import ' dotenv/config' ;
@@ -76,7 +76,7 @@ const langbase = new Langbase({
7676
7777async function main() {
7878 // 2. Run the pipe with a question.
79- const response = await langbase .pipe .run ({
79+ const response = await langbase .pipes .run ({
8080 stream: false ,
8181 name: ' summary' // pipe name to run
8282 messages : [
@@ -96,9 +96,9 @@ main();
9696
9797---
9898
99- ### Stream text [ ` langbase.pipe .run() ` ] ( https://langbase.com/docs/sdk/pipe/run )
99+ ### Stream text [ ` langbase.pipes .run() ` ] ( https://langbase.com/docs/sdk/pipe/run )
100100
101- Set the ` stream ` to ` true ` . For more, check the API reference of [ ` langbase.pipe .run() ` ] ( https://langbase.com/docs/langbase-sdk/generate-text )
101+ Set the ` stream ` to ` true ` . For more, check the API reference of [ ` langbase.pipes .run() ` ] ( https://langbase.com/docs/langbase-sdk/generate-text )
102102
103103``` ts
104104import ' dotenv/config' ;
@@ -114,7 +114,7 @@ async function main() {
114114 const userMsg = ' Who is an AI Engineer?' ;
115115
116116 // 2. Run the pipe with a question.
117- const {****stre**am** } = await langbase .pipe .run ({
117+ const {stream } = await langbase .pipes .run ({
118118 stream: true ,
119119 name: ' summary' , // pipe name to run
120120 messages: [{role: ' user' , content: userMsg }],
0 commit comments