mirror of
https://github.com/ollama/ollama.git
synced 2026-08-04 14:56:15 +00:00
docs: add renderer/parser fields to the API docs (#17275)
This commit is contained in:
parent
de1ce45913
commit
e2c2edcc27
3 changed files with 11 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue