⌘ Langbase SDK AI Examples
Langbase SDK is built to be used by web developers using JavaScript or TypeScript code. The SDK is designed to be simple to use and easy to integrate with your existing codebase.
Here are some examples to get you started with the Langbase SDK.
Next.js & React Example
- Next.js Example with generateText() and streamText() demo
- React components to display the response
- API Route handlers to send requests to ⌘ Langbase
generateText()
streamText()
Node.js
generateText()
streamText()
- Simple Stream Text
- Stream Text with a generate pipe
- Chat with ChatGPT like text streaming using a chat pipe