ChatCompletionsRequestMessage

ChatCompletionsRequestMessage
ChatCompletionsRequestMessage

A chat request.

JSON Example
{
    "role": "string",
    "content": "string",
    "tool_calls": [
        {
            "id": "string",
            "type": "string",
            "function": {
                "name": "string",
                "arguments": "string"
            }
        }
    ],
    "refusal": "string",
    "tool_call_id": "string"
}
string
role
Required  

role

content
Optional

content

tool_calls
Optional

tool_calls

string
refusal
Optional

refusal

string
tool_call_id
Optional

tool_call_id