SDK and gateway
| Component | Recommendation |
|---|---|
@router-brain/sdk | Pin to a specific major version. Test chat streaming and image generation in staging before upgrading |
| Gateway | Managed by the RouterBrain team. Breaking changes are communicated through release notes |
Node.js
- Node 18 or later required; Node 20 LTS recommended
- ESM preferred (
import/export, with"type": "module"in yourpackage.json)
TypeScript
Type declarations (.d.ts) are bundled with the SDK. Types align with the official OpenAI and Anthropic SDK types.
Before upgrading
- Check the release notes for breaking changes
- Verify chat (streaming + non-streaming) and image generation in a test environment
- Confirm
openaiand@anthropic-ai/sdkversions are compatible