File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ common_chat_tool_choice common_chat_tool_choice_parse_oaicompat(const std::strin
4141template <>
4242std::vector<common_chat_msg> common_chat_msgs_parse_oaicompat (const json & messages) {
4343 std::vector<common_chat_msg> msgs;
44-
44+
4545 try {
4646
4747 if (!messages.is_array ()) {
@@ -203,7 +203,7 @@ std::vector<common_chat_msg> common_chat_msgs_parse_oaicompat(const std::string
203203template <>
204204std::vector<common_chat_tool> common_chat_tools_parse_oaicompat (const json & tools) {
205205 std::vector<common_chat_tool> result;
206-
206+
207207 try {
208208 if (!tools.is_null ()) {
209209 if (!tools.is_array ()) {
@@ -1417,7 +1417,7 @@ static common_chat_params common_chat_templates_apply_jinja(
14171417 if (!inputs.json_schema .empty ()) {
14181418 params.json_schema = json::parse (inputs.json_schema );
14191419 }
1420-
1420+
14211421 if (inputs.parallel_tool_calls && !tmpl.original_caps ().supports_parallel_tool_calls ) {
14221422 LOG_DBG (" Disabling parallel_tool_calls because the template does not support it\n " );
14231423 params.parallel_tool_calls = false ;
@@ -1554,7 +1554,7 @@ common_chat_params common_chat_templates_apply(
15541554 const struct common_chat_templates_inputs & inputs)
15551555{
15561556 GGML_ASSERT (tmpls != nullptr );
1557- return inputs.use_jinja
1557+ return inputs.use_jinja
15581558 ? common_chat_templates_apply_jinja (tmpls, inputs)
15591559 : common_chat_templates_apply_legacy (tmpls, inputs);
15601560}
You can’t perform that action at this time.
0 commit comments