From 8a5f1eabc1432bdc863bd1138afbef58ce9c50e3 Mon Sep 17 00:00:00 2001 From: Peter Zaback Date: Mon, 20 Nov 2023 13:36:28 -0600 Subject: [PATCH] Fix template configuration docs (#638) --- docs/docs/customization/models.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/customization/models.md b/docs/docs/customization/models.md index f579afa6d..795e8510d 100644 --- a/docs/docs/customization/models.md +++ b/docs/docs/customization/models.md @@ -120,7 +120,7 @@ It can then be used like this: ```python title="~/.continue/config.py" def modify_config(config: ContinueConfig) -> ContinueConfig: - config.models[0].template_messages = template_alpaca_messages + config.models.default.template_messages = template_alpaca_messages return config ``` @@ -150,7 +150,7 @@ It can then be used like this in `config.py`: ```python title="~/.continue/config.py" def modify_config(config: ContinueConfig) -> ContinueConfig: - config.models[0].prompt_templates["edit"] = "" + config.models.edit.prompt_templates["edit"] = "" return config ```