{
  "id": "vllm-chat-template-table",
  "kind": "table",
  "slug": "vllm-chat-template",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/vllm-chat-template/",
  "title": "Apply a chat template in vLLM with llm.chat or the tokenizer",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "generate",
      "source": "vLLM documentation",
      "detail": "Does not automatically apply the chat template"
    },
    {
      "name": "chat template",
      "source": "vLLM documentation",
      "detail": "Manually apply the corresponding chat template"
    },
    {
      "name": "chat method",
      "source": "vLLM documentation",
      "detail": "Pass a list of messages"
    },
    {
      "name": "OpenAI",
      "source": "vLLM documentation",
      "detail": "Same format as client.chat.completions"
    },
    {
      "name": "OpenAI-compatible API server",
      "source": "vLLM documentation",
      "detail": "plus Anthropic Messages API and gRPC support"
    }
  ],
  "related_slugs": [
    "hf-chat-templates",
    "vllm-offline-inference",
    "hf-text-generation-strategies"
  ],
  "license": "CC-BY-4.0",
  "source_license": "Apache-2.0 (vLLM documentation); Apache-2.0 (vllm-project/vllm (GitHub)); prose restates cited source lines in own words",
  "as_of": "2026-11-19",
  "status": "deep-draft-20261119",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}