mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-06-28 20:25:20 +00:00
No designated initializers yet
This commit is contained in:
@ -1747,8 +1747,8 @@ llama_chat_templates llama_chat_templates_from_model(const struct llama_model *
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
.default_template = { default_template_src, bos_token, eos_token },
|
/* .default_template = */ { default_template_src, bos_token, eos_token },
|
||||||
.tool_use_template = tool_use_template_src.empty() ? std::nullopt
|
/* .tool_use_template = */ tool_use_template_src.empty() ? std::nullopt
|
||||||
: std::optional<minja::chat_template>({ tool_use_template_src, bos_token, eos_token }),
|
: std::optional<minja::chat_template>({ tool_use_template_src, bos_token, eos_token }),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user