provider Completions POST
/completions @utdk/openai
/completions Creates a completion for the provided prompt and parameters.
Try it
Authentication
Configure credentials for OpenAI API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import openai from '@utdk/openai';
await openai.createcompletion({
"prompt": "<|endoftext|>",
"best_of": 1,
"echo": false,
"frequency_penalty": 0,
"logit_bias": "null",
"logprobs": "null",
"max_tokens": 16,
"n": 1,
"presence_penalty": 0,
"stop": "null",
"stream": false,
"stream_options": "null",
"suffix": "null",
"temperature": 1,
"top_p": 1
})