fix test_thoughts

This commit is contained in:
ochafik 2025-02-05 12:34:27 +00:00
parent d20c2ce4e7
commit f3e9f8b62a
2 changed files with 6 additions and 7 deletions

View file

@ -1041,7 +1041,7 @@ common_chat_params common_chat_params_init(const common_chat_template & tmpl, co
// Use generic handler when forcing thoughts or JSON schema for final output
// TODO: support thinking mode and/or JSON schema in handlers below this.
if (inputs.think || inputs.json_schema.is_object()) {
if (inputs.think || !inputs.tools.is_null() && inputs.json_schema.is_object()) {
return common_chat_params_init_generic(tmpl, inputs);
}