Embeddings (TypeScript)
An embeddings request requires an embedding-capable model. Consult the current model catalog before choosing a model; support and dimensions depend on the model. The chat example below is not an embeddings request.
This guide uses the official OpenAI client with TheRouter; it is not a TheRouter-owned SDK. The therouter and @therouter/sdk packages previously named here are not currently published in the public package registries.