What the SDK wraps
| Capability | API |
|---|---|
| Chat / stream | client.chat.send |
| Files | client.files.* |
| Model list | client.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
GET /models(no key) for reachability;- 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.