Use fine-tuned model (completion)
POST {{baseUrl}}/completions
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
`` | null |
Request Body
{"model"=>"davinci:ft-personal-2023-03-23-00-00-32", "prompt"=>"Why did the chicken use AI?", "max_tokens"=>10, "temperature"=>0.7}
RESPONSES
status: OK
{"id":"cmpl-6x2nlvwnB5tYyMOTHJ7VP60bEZYeW","object":"text_completion","created":1679530141,"model":"davinci:ft-personal-2023-03-23-00-00-32","choices":[{"text":" To get to the other side.”\n","index":0,"logprobs":null,"finish_reason":"length"}],"usage":{"prompt_tokens":7,"completion_tokens":10,"total_tokens":17}}