mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
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:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user