You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1b158f3
Browse filesBrowse the repository at this point in the historyBrowse files
-`input` accepts a single string or an array of strings (a single string is normalized to an array at the edge); the response is `object=list` + `data[{index, embedding}]` + `usage.prompt_tokens`, same shape as OpenAI Embeddings.
147
-
-`encoding_format` (float only), `dimensions` and `user` are forwarded; `stream=true` and `encoding_format=base64`→ 400 `invalid_request`.
147
+
-`encoding_format` (`float` | `base64` — base64 is encoded gateway-side: always fetched as float from upstream, then converted to little-endian float32 base64, so it does not depend on upstream support), `dimensions` and `user` are forwarded; `stream=true`→ 400 `invalid_request`, and any other `encoding_format` value → 400 with the accepted values named in the error message.
148
148
- An unknown model (bad channel suffix, absent from the catalog, or rejected by the upstream) → 404 `model_not_found`, same contract as `GET /v1/models/{id}`; upstream 429 / 5xx map exactly like the chat endpoints (429 rate limit, 503 with `Retry-After`), and no path ever leaks a bare 500 stack.
149
149
- Auth, key / user quota layers, rate limiting, the credential pool and health scheduling, `model@channel` forcing and key→channel binding are all shared with the chat endpoints. One call counts as exactly one request per user / channel / model with tokens and list-price cost recorded; **inputs and vectors are never persisted**, and it takes no part in conversation affinity or response caching.
150
150
- Only channels that implement the upstream vector endpoint (currently Zen) are candidates; embedding models of other channels are not listed, so there are no "listed but always 400" entries. Zen's **anonymous free tier** does not list embeddings either (the upstream vector endpoint answers 401 without a key) — put an `api_key` in the credential to use the paid tier.
0 commit comments