@hashbrownai/azure
v0.5.0
Published
Azure provider for Hashbrown AI
Readme
Getting Started
npm install @hashbrownai/azure --saveDeploy an express server with a single /chat endpoint to use Hashbrown with Azure OpenAI.
import { Chat } from '@hashbrownai/core';
import { HashbrownAzure } from '@hashbrownai/azure';
app.post('/chat', async (req, res) => {
const request = req.body as Chat.CompletionCreateParams;
const stream = HashbrownAzure.stream.text({
apiKey: AZURE_API_KEY,
endpoint: AZURE_ENDPOINT,
request,
});
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 Azure OpenAI 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
