fix test_thoughts
This commit is contained in:
parent
d20c2ce4e7
commit
f3e9f8b62a
2 changed files with 6 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue