Function openai_flows::create_embeddings
source · pub async fn create_embeddings(
account: FlowsAccount,
params: EmbeddingsRequest
) -> Result<Vec<Vec<f64>>, String>
Expand description
Create embeddings from the provided input.
account
is an FlowsAccount used for picking your tied OpenAI API key.
params
is a EmbeddingsRequest object.
If you have not connected your OpenAI account with Flows.network platform, you will receive an error in the flow’s building log or running log.