Create completion
documentedGenerate a text completion for the provided prompt using a selected model.
POST /completionsCompletionsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl 'https://api.openai.com/v1/completions' \
-X POST \
-H 'Authorization: Bearer {{OPENAI_API_KEY}}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{\"model\": \"{{$model}}\",\"prompt\": \"{{$prompt}}\",\"max_tokens\": {{$max_tokens}},\"temperature\": {{$temperature}},\"top_p\": {{$top_p}},\"n\": {{$n}},\"stop\": [\"{{$stop}}\"]}'