{
  "$schema": "https://json-structure.org/meta/extended/v0/#",
  "name": "ChatCompletionRequest",
  "type": "object",
  "description": "Request body for creating a chat completion.",
  "properties": {
    "model": {
      "type": "string",
      "description": "Provider and model name in the format provider/model-name (e.g., openai/gpt-4o, anthropic/claude-3-5-sonnet-20241022)."
    },
    "messages": {
      "type": "array",
      "description": "Array of messages comprising the conversation."
    },
    "temperature": {
      "type": "float",
      "description": "Sampling temperature between 0 and 2."
    },
    "max_tokens": {
      "type": "int32",
      "description": "Maximum number of tokens to generate."
    },
    "stream": {
      "type": "boolean",
      "description": "Whether to stream the response as SSE."
    },
    "top_p": {
      "type": "float",
      "description": "Nucleus sampling probability."
    },
    "n": {
      "type": "int32",
      "description": "Number of completions to generate."
    }
  }
}