From e2c2edcc27637fbabe9ce6bb2d2d6db8e676f99e Mon Sep 17 00:00:00 2001 From: Patrick Devine Date: Mon, 20 Jul 2026 16:22:46 -0700 Subject: [PATCH] docs: add renderer/parser fields to the API docs (#17275) --- api/types.go | 3 +++ docs/api.md | 2 ++ docs/openapi.yaml | 6 ++++++ 3 files changed, 11 insertions(+) diff --git a/api/types.go b/api/types.go index ad50fa6f..ce11b661 100644 --- a/api/types.go +++ b/api/types.go @@ -706,7 +706,10 @@ type CreateRequest struct { // Messages is a list of messages added to the model before chat and generation requests. Messages []Message `json:"messages,omitempty"` + // Renderer is the name of the renderer used when constructing a request to the model. Renderer string `json:"renderer,omitempty"` + + // Parser is the name of the parser used to parse the output of the request. Parser string `json:"parser,omitempty"` // Requires is the minimum version of Ollama required by the model. diff --git a/docs/api.md b/docs/api.md index fbc24522..af549090 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1198,6 +1198,8 @@ If you are creating a model from a safetensors directory or from a GGUF file, yo - `files`: (optional) a dictionary of file names to SHA256 digests of blobs to create the model from - `adapters`: (optional) a dictionary of file names to SHA256 digests of blobs for LORA adapters - `template`: (optional) the prompt template for the model +- `renderer`: (optional) the name of the renderer for the model +- `parser`: (optional) the name of the parser for the model - `license`: (optional) a string or list of strings containing the license or licenses for the model - `system`: (optional) a string containing the system prompt for the model - `parameters`: (optional) a dictionary of parameters for the model (see [Modelfile](./modelfile.mdx#valid-parameters-and-values) for a list of parameters) diff --git a/docs/openapi.yaml b/docs/openapi.yaml index e4ee55f5..34aa9f40 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -483,6 +483,12 @@ components: template: type: string description: Prompt template to use for the model + renderer: + type: string + description: Name of the renderer for the model + parser: + type: string + description: Name of the parser for the model license: oneOf: - type: string