Function openai_flows::create_completion
source · pub async fn create_completion(
account: FlowsAccount,
params: CompletionRequest
) -> Result<Vec<String>, String>
Expand description
Create completion for the provided prompt and parameters.
account
is an FlowsAccount used for picking your tied OpenAI API key.
params
is a CompletionRequest 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.