Given a hint, the model will return one or more predicted completions and can also return the probability of the surrogate marker for each position. Complete creation for the provided prompts and parameters
Request
Header Params
Body Params application/json
Example
{"stream":false,"messages":[{"role":"user","content":"who are u?"}],"n":3,"max_tokens":100,"temperature":0.8,"model":"gpt-4o"}
{"id":"chatcmpl-123","object":"chat.completion","created":1677652288,"choices":[{"index":0,"message":{"role":"assistant","content":"\n\nHello there, how may I assist you today?"},"finish_reason":"stop"}],"usage":{"prompt_tokens":9,"completion_tokens":12,"total_tokens":21}}