Using chat_template naming convention
This commit is contained in:
parent
bc3ed77ddf
commit
ada3cbf8c5
2 changed files with 3 additions and 3 deletions
|
@ -367,7 +367,7 @@ Notice that each `probs` is an array of length `n_probs`.
|
|||
"user_name": "",
|
||||
"default_generation_settings": { ... },
|
||||
"total_slots": 1,
|
||||
"model_template": ""
|
||||
"chat_template": ""
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -375,7 +375,7 @@ Notice that each `probs` is an array of length `n_probs`.
|
|||
- `user_name` - the required anti-prompt to generate the prompt in case you have specified a system prompt for all slots.
|
||||
- `default_generation_settings` - the default generation settings for the `/completion` endpoint, which has the same fields as the `generation_settings` response object from the `/completion` endpoint.
|
||||
- `total_slots` - the total number of slots for process requests (defined by `--parallel` option)
|
||||
- `model_template` - the model's original Jinja2 prompt template
|
||||
- `chat_template` - the model's original Jinja2 prompt template
|
||||
|
||||
- **POST** `/v1/chat/completions`: OpenAI-compatible Chat Completions API. Given a ChatML-formatted json description in `messages`, it returns the predicted completion. Both synchronous and streaming mode are supported, so scripted and interactive applications work fine. While no strong claims of compatibility with OpenAI API spec is being made, in our experience it suffices to support many apps. Only models with a [supported chat template](https://github.com/ggerganov/llama.cpp/wiki/Templates-supported-by-llama_chat_apply_template) can be used optimally with this endpoint. By default, the ChatML template will be used.
|
||||
|
||||
|
|
|
@ -2978,7 +2978,7 @@ int main(int argc, char ** argv) {
|
|||
{ "system_prompt", ctx_server.system_prompt.c_str() },
|
||||
{ "default_generation_settings", ctx_server.default_generation_settings_for_props },
|
||||
{ "total_slots", ctx_server.params.n_parallel },
|
||||
{ "model_template", curr_tmpl.c_str() }
|
||||
{ "chat_template", curr_tmpl.c_str() }
|
||||
};
|
||||
|
||||
res.set_content(data.dump(), "application/json; charset=utf-8");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue