textCompletion method
Text API
https://beta.openai.com/docs/guides/completion/text-completion Text Completion , Insert Text, Edit Text
Code Completion https://beta.openai.com/docs/guides/completion/text-completion Turn comments into code Complete your next line or function in context Complete your next line or function in context To see Codex in action, check out https://beta.openai.com/codex-javascript-sandbox To work with code use the "code-davinci-002" model
Implementation
Future<Completion?> textCompletion({
required CompletionRequest request,
}) async {
return await Api().textCompletion(request: request);
}