@hashbrownai/writer
v0.5.0
Published
Writer provider for Hashbrown AI
Readme
Getting Started
npm install @hashbrownai/writer --saveDeploy an express server with a single /chat endpoint to use Hashbrown with Writer.
import { HashbrownWriter } from '@hashbrownai/writer';
app.post('/chat', async (req, res) => {
const stream = HashbrownWriter.stream.text({
apiKey: process.env.WRITER_API_KEY!,
request: req.body, // must be Chat.Api.CompletionCreateParams
});
res.header('Content-Type', 'application/octet-stream');
for await (const chunk of stream) {
res.write(chunk);
}
res.end();
});Docs
Read the docs for the Hashbrown Writer adapter.
Contributing
hashbrown is a community-driven project. Read our contributing guidelines on how to get involved.
Workshops and Consulting
Want to learn how to build web apps with AI? Learn more about our workshops.
LiveLoveApp provides hands-on engagement with our AI engineers for architecture reviews, custom integrations, proof-of-concept builds, performance tuning, and expert guidance on best practices. Learn more about LiveLoveApp.
License
MIT © LiveLoveApp, LLC
