Skip to main content

execute_embedding_request

Function execute_embedding_request 

Source
pub fn execute_embedding_request<S, C>(
    store: &mut S,
    ids: &mut EmbeddingIdGenerators,
    clock: &mut C,
    request: &GatewayRequest,
) -> EmbeddingExecution
Expand description

Executes an embedding request end to end, recording request, run, and events in the store and returning the EmbeddingExecution outcome.

Any failure is captured as an error response inside the returned execution rather than propagated.