docs: add renderer/parser fields to the API docs (#17275)
This commit is contained in:
@@ -706,7 +706,10 @@ type CreateRequest struct {
|
|||||||
// Messages is a list of messages added to the model before chat and generation requests.
|
// Messages is a list of messages added to the model before chat and generation requests.
|
||||||
Messages []Message `json:"messages,omitempty"`
|
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"`
|
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"`
|
Parser string `json:"parser,omitempty"`
|
||||||
|
|
||||||
// Requires is the minimum version of Ollama required by the model.
|
// Requires is the minimum version of Ollama required by the model.
|
||||||
|
|||||||
@@ -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
|
- `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
|
- `adapters`: (optional) a dictionary of file names to SHA256 digests of blobs for LORA adapters
|
||||||
- `template`: (optional) the prompt template for the model
|
- `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
|
- `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
|
- `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)
|
- `parameters`: (optional) a dictionary of parameters for the model (see [Modelfile](./modelfile.mdx#valid-parameters-and-values) for a list of parameters)
|
||||||
|
|||||||
@@ -483,6 +483,12 @@ components:
|
|||||||
template:
|
template:
|
||||||
type: string
|
type: string
|
||||||
description: Prompt template to use for the model
|
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:
|
license:
|
||||||
oneOf:
|
oneOf:
|
||||||
- type: string
|
- type: string
|
||||||
|
|||||||
Reference in New Issue
Block a user