Skip to content

Commit

Permalink
👌 IMPROVE: Bump packages versions
Browse files Browse the repository at this point in the history
  • Loading branch information
msaaddev committed Nov 21, 2024
1 parent 875b7ba commit 5dd8226
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/nextjs/app/langbase/pipe/run-stream/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ export async function POST(req: NextRequest) {
// 1. Initiate the Pipe.
const myPipe = new Pipe({
apiKey: process.env.LANGBASE_API_KEY!,
name: 'summary',
});

// 2. Generate a stream by asking a question
const {stream, threadId} = await myPipe.run({
messages: [{role: 'user', content: prompt}],
stream: true,
name: 'summary',
});

// 3. Done, return the stream in a readable stream format.
Expand Down
3 changes: 1 addition & 2 deletions examples/nextjs/app/langbase/pipe/run/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ export async function POST(req: NextRequest) {
// 1. Initiate the Pipe.
const myPipe = new Pipe({
apiKey: process.env.LANGBASE_API_KEY!,
name: 'summary',
});

// 2. Generate a stream by asking a question
const result = await myPipe.run({
messages: [{role: 'user', content: prompt}],
stream: false,
name: 'summary',
});

// 3. Done, return the stream in a readable stream format.
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@radix-ui/react-slot": "^1.1.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"langbase": "^1.1.5",
"langbase": "^1.1.6",
"lucide-react": "^0.416.0",
"mxcn": "^2.0.0",
"next": "14.2.5",
Expand Down
2 changes: 1 addition & 1 deletion examples/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
"license": "UNLICENSED",
"dependencies": {
"dotenv": "^16.4.5",
"langbase": "^1.1.5"
"langbase": "^1.1.6"
}
}
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5dd8226

Please sign in to comment.