What the SDK wraps

CapabilityAPI
Chat / streamclient.chat.send
Filesclient.files.*
Model listclient.models.list

Use HTTP instead

Embeddings are not in the SDK — call POST /embeddings directly.

Node-only

client.chat.messages (fromFile, path helpers) needs Node fs / path. Use server-side or @routerbrain/sdk/node only.

Health checks

  1. GET /models (no key) for reachability;
  2. Optional light chat with a key for auth smoke tests (mind cost).

Mixing with OpenAI SDK

You may use the OpenAI SDK with gateway baseURL alongside this package; avoid duplicate stream parsers on the same request.

Related

SDK overview · Version compatibility