Skip to content

Commit 43d97b4

Browse files
ngxsonVaibhavs10
andauthored
Apply suggestions from code review
Co-authored-by: vb <[email protected]>
1 parent 31ad142 commit 43d97b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/ollama-utils/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ Most templates will be converted automatically. You can debug the output templat
4646
- And this space to apply the Go template into a list of messages: https://huggingface.co/spaces/ngxson/ollama_template_test
4747

4848
Please only add a new template only when the conversion above is not successful. Cases that are acceptable to add a custom handler:
49-
- The covnerted template is wrong
49+
- The converted template is wrong
5050
- The Jinja template is not compatible with `@huggingface/jinja`
51-
- The Jinja template is not "linear"
51+
- The Jinja template is not "linear," meaning it can modify the content of other messages or append dynamic postfixes. For instance, the DeepSeek template removes `<think>...</think>` from previous messages in a conversation, making it non-linear. Another example is a template that adds the EOS token `</s>` when `add_generation_prompt=False`.
5252

5353
To add a new custom handler:
5454
1. Edit the list of `CUSTOM_TEMPLATE_MAPPING` inside `chat-template.ts`
5555
2. Add a new test case in `chat-template.spec.ts`
56-
3. hen push your change into new PR.
56+
3. Push your change into new PR.

0 commit comments

Comments
 (0)