mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
refactor: Invert AI agent verbose mode condition and strengthen silence instructions for tool calls.
This commit is contained in:
@@ -74,10 +74,14 @@ class PromptManager:
|
|||||||
|
|
||||||
# 啰嗦模式
|
# 啰嗦模式
|
||||||
verbose_spec = ""
|
verbose_spec = ""
|
||||||
if settings.AI_AGENT_VERBOSE:
|
if not settings.AI_AGENT_VERBOSE:
|
||||||
verbose_spec = "\n\n[Important Instruction] If you need to call a tool, DO NOT output any conversational "
|
verbose_spec = (
|
||||||
"text or explanations before calling the tool. Call the tool directly without transitional "
|
"\n\n[Important Instruction] STRICTLY ENFORCED: DO NOT output any conversational "
|
||||||
"phrases like 'Let me check', 'I will look this up', etc."
|
"text, thinking processes, or explanations before or during tool calls. Call tools "
|
||||||
|
"directly without any transitional phrases. "
|
||||||
|
"You MUST remain completely silent until the task is completely finished. "
|
||||||
|
"DO NOT output any content whatsoever until your final summary reply."
|
||||||
|
)
|
||||||
|
|
||||||
# 始终替换占位符,避免后续 .format() 时因残留花括号报 KeyError
|
# 始终替换占位符,避免后续 .format() 时因残留花括号报 KeyError
|
||||||
base_prompt = base_prompt.format(
|
base_prompt = base_prompt.format(
|
||||||
|
|||||||
Reference in New Issue
Block a user