Skip to main content

build_embeddings_body

Function build_embeddings_body 

Source
pub fn build_embeddings_body(req: &CloudAiRequest) -> Value
Expand description

Build an OpenAI-compatible /v1/embeddings body. The text to embed is the request prompt.