Bifrost · JSON Structure

Bifrost Chat Completion Request Structure

Request body for creating a chat completion.

Type: object Properties: 7
AI GatewayLLMLoad BalancingOpen SourceOpenAI CompatibleMCP

ChatCompletionRequest is a JSON Structure definition published by Bifrost, describing 7 properties. It conforms to the https://json-structure.org/meta/extended/v0/# meta-schema.

Properties

model messages temperature max_tokens stream top_p n

Meta-schema: https://json-structure.org/meta/extended/v0/#

JSON Structure

Raw ↑
{
  "$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."
    }
  }
}