[BugFix] Add bagel text2text/img2text think mode support (#2503)

Signed-off-by: princepride <wangzhipeng628@gmail.com>
This commit is contained in:
汪志鹏 authored and GitHub committed 2026-04-07 13:29:26 +12:00
1 parent 54e964dc0a
commit 5b2c4f909d
2 files changed
+22 -12

No files matched your search

@@ -135,6 +135,13 @@ GEN_THINK_SYSTEM_PROMPT = (
"i.e. <think> planning process here </think> image here"
)
VLM_THINK_SYSTEM_PROMPT = (
"You should first think about the reasoning process in the mind "
"and then provide the user with the answer. \n"
"The reasoning process is enclosed within <think> </think> tags, "
"i.e. <think> reasoning process here </think> answer here"
)
def expand_cfg_prompts_think(
prompt: dict[str, Any] | str,