Installation and Setup
To install the integration, run:- Create an app in Heroku:
- Create and attach a chat model to your app:
- Export configuration variables:
Using the Integration
Available Models
For a complete list of available models, see Managed Inference and Agents API Model Cards.Chat Completion Example
Using Environment Variables
The integration automatically reads environment variables:Parameters
You can pass parameters directly:Text Completion Example
Error Handling
The integration includes error handling for common issues, including:- Missing API key
- Invalid inference URL
- Missing model configuration