SDK and gateway

ComponentRecommendation
@router-brain/sdkPin to a specific major version. Test chat streaming and image generation in staging before upgrading
GatewayManaged 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 your package.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 openai and @anthropic-ai/sdk versions are compatible

See also

API versioning · SDK limitations