latestOpenAPI 3.1.02026-08-197104501.1 MB

8fbaab4fc7c5

completions

Completion

Follows the exact same API spec as OpenAI's Completions API https://platform.openai.com/docs/api-reference/completions

curl -X POST http://localhost:4000/v1/completions 
-H "Content-Type: application/json" 
-H "Authorization: Bearer sk-1234" 
-d '{
    "model": "gpt-3.5-turbo-instruct",
    "prompt": "Once upon a time",
    "max_tokens": 50,
    "temperature": 0.7
}'
post/openai/deployments/{model}/completions

Path parameters

modelstring nullable required

Response

Successful Response

{"stackTrail":"paths:/openai/deployments/{model}/completions:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}