docs: update docs w/ new chatOptions
This commit is contained in:
parent
2032a8c31c
commit
30ecadbdb8
2 changed files with 3 additions and 24 deletions
|
|
@ -363,26 +363,3 @@ If your local machine can run a 16B parameter model, then we recommend running D
|
|||
## Other experiences
|
||||
|
||||
There are many more models and providers you can use with Chat beyond those mentioned above. Read more [here](../model-roles/chat.mdx)
|
||||
|
||||
## Prompt templating
|
||||
|
||||
You can customize the system prompt used for chat interactions by setting the `promptTemplates.baseSystemPrompt` property in your model configuration. Continue uses [Handlebars syntax](https://handlebarsjs.com/guide/) for templating.
|
||||
|
||||
Available variables for the chat template:
|
||||
|
||||
- `{{{history}}}` - The conversation history
|
||||
- `{{{system_message}}}` - The default system message (if provided)
|
||||
|
||||
Example:
|
||||
|
||||
```yaml
|
||||
models:
|
||||
- name: My Custom Chat Model
|
||||
provider: openai
|
||||
model: gpt-4o
|
||||
promptTemplates:
|
||||
baseSystemPrompt: |
|
||||
You are an expert coding assistant specialized in JavaScript development.
|
||||
Always provide code examples when explaining concepts.
|
||||
{{{system_message}}}
|
||||
```
|
||||
|
|
|
|||
|
|
@ -145,7 +145,9 @@ The `models` section defines the language models used in your configuration. Mod
|
|||
- `apiBase`: Can be used to override the default API base that is specified per model
|
||||
- `roles`: An array specifying the roles this model can fulfill, such as `chat`, `autocomplete`, `embed`, `rerank`, `edit`, `apply`, `summarize`. The default value is `[chat, edit, apply, summarize]`. Note that the `summarize` role is not currently used.
|
||||
- `capabilities`: Array of strings denoting model capabilities, which will overwrite Continue's autodetection based on provider and model. Supported capabilities include `tool_use` and `image_input`.
|
||||
- `promptTemplates`: Can be used to override the default prompt templates for different model roles. Valid values are [`edit`](./customize/model-roles/edit.mdx#prompt-templating), [`apply`](./customize/model-roles/apply.mdx#prompt-templating), and [`baseSystemPrompt`](./customize/model-roles/chat.mdx#prompt-templating) (used to override the system prompt in Chat and Agent). Handlebars syntax can be used to insert variables in your prompt.
|
||||
- `promptTemplates`: Can be used to override the default prompt templates for different model roles. Valid values are [`edit`](./customize/model-roles/edit.mdx#prompt-templating) and [`apply`](./customize/model-roles/apply.mdx#prompt-templating).
|
||||
- `chatOptions`: If the model includes role `chat`, these settings apply for Chat and Agent mode:
|
||||
- `baseSystemPrompt`: Can be used to override the default system prompt.
|
||||
- `embedOptions`: If the model includes role `embed`, these settings apply for embeddings:
|
||||
- `maxChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens.
|
||||
- `maxBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue