API: Add chat_template_kwargs alias for template_vars
This key is used in VLLM and SGLang. Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
This commit is contained in:
parent
c9dc0b2aa4
commit
7900b72848
2 changed files with 9 additions and 2 deletions
|
|
@ -23,6 +23,9 @@ A chat completions request to TabbyAPI also supports custom template variables i
|
|||
}
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> To preserve compatibility with other standards, `chat_template_kwargs` can be used instead of `template_vars`
|
||||
|
||||
Now let's pass the custom var in the following template:
|
||||
```jinja2
|
||||
I'm going to say {{ test_var }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue