Create Embeddings
Changed onCreate embeddings using OpenAI-compatible API.
This endpoint is compatible with OpenAI's /v1/embeddings API, allowing drop-in replacement for any OpenAI SDK or client. Route-generated errors are emitted as top-level OpenAI {"error": {...}} envelopes, matching /v1/completions. The one exception is 422 request-body validation, which still returns FastAPI's HTTPValidationError {"detail": [...]} shape (out of scope for this route's error handling; known residual).
Args: request: OpenAI-format embedding request. http_request: FastAPI request (for app state). x_machine_profile: Machine profile header for routing validation.
Returns: OpenAI-format embedding response with embeddings and usage info.
Request
- The document declares no server URL.
- Authnone declared
Headers
The only accepted value is forbid. It keeps the request off remote upstreams: local capacity serves or refuses it, and a model served only by an upstream answers 400. Any other value answers 400.
Request body
Response
Embeddings generated successfully
Changes
- info
added the required property
/to the response with the status
- info
- info
added the new optional
headerrequest parameterX-SIE-Remote
- info