create()
Creates a completion for the provided prompt and parameters. Official OpenAI docs
example.ts
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
create()const completion = await io.openai.completions.create("completion", {
model: "text-davinci-003",
prompt: "Create a good programming joke about Tasks",
});
Was this page helpful?
