refactor: refactor the prompt management mechanism (#17)

This commit is contained in:
DanielWalnut
2025-05-09 15:50:46 +08:00
committed by GitHub
parent 091f437bc5
commit 97a15dce36
16 changed files with 32 additions and 42 deletions

View File

@@ -22,7 +22,7 @@ def script_writer_node(state: PodcastState):
).with_structured_output(Script, method="json_mode")
script = model.invoke(
[
SystemMessage(content=get_prompt_template("podcast_script_writer")),
SystemMessage(content=get_prompt_template("podcast/podcast_script_writer")),
HumanMessage(content=state["input"]),
],
)