tabbyAPI-ollama/endpoints/OAI/utils
kingbri aa657fa6e9 API: Ignore add_bos_token in chat completions
When fetching special tokens from the model, don't factor in the
add_bos_token and ban_eos_token parameters as switches.

In addition, change the internal handling of add_bos_token to an optional
boolean. This allows us to fallback to the model when selecting whether
or not to add the BOS token, especially for chat completions.

Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
2025-05-01 22:51:15 -04:00
..
chat_completion.py API: Ignore add_bos_token in chat completions 2025-05-01 22:51:15 -04:00
completion.py API: Format and fix message naming 2025-04-28 22:36:30 -04:00
embeddings.py API: Format and fix message naming 2025-04-28 22:36:30 -04:00
tools.py Support more common tool variables in templates (tools, message.tool_calls) (#308) 2025-03-23 13:23:00 -04:00