{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/river-ai/main/json-schema/river-ai-post-v1-chat-completions-request-schema.json",
  "title": "PostV1ChatCompletionsRequest",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/river-ai-openapi-generated.yml#/components/schemas/PostV1ChatCompletionsRequest",
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "description": "The model ID to use."
    },
    "messages": {
      "type": "array",
      "description": "Conversation history."
    },
    "max_tokens": {
      "type": "integer",
      "description": "Maximum number of tokens to generate."
    },
    "stream": {
      "type": "boolean",
      "description": "If true, stream the response."
    }
  },
  "required": [
    "model",
    "messages"
  ]
}