per-campaign settings, default campaign folders, custom prompt fix
All checks were successful
Build and Push / build (push) Successful in 12m10s
All checks were successful
Build and Push / build (push) Successful in 12m10s
This commit is contained in:
@@ -144,7 +144,7 @@ def make_llm_caller(settings: dict):
|
||||
|
||||
def summarize_session(turns: list[dict], settings: dict, progress_cb=None,
|
||||
player_recap_style: str | None = None,
|
||||
player_recap_custom_prompt: str | None = None) -> tuple[str, str]:
|
||||
player_recap_custom_prompt: str | None = None) -> tuple[str, str, str]:
|
||||
call = make_llm_caller(settings)
|
||||
ctx_path = settings.get("world_context_path") or ""
|
||||
if ctx_path and Path(ctx_path).exists():
|
||||
@@ -175,5 +175,9 @@ def summarize_session(turns: list[dict], settings: dict, progress_cb=None,
|
||||
player_template = raw if raw else PLAYER_FINAL_PROMPTS["story"]
|
||||
else:
|
||||
player_template = PLAYER_FINAL_PROMPTS.get(style, PLAYER_FINAL_PROMPTS["story"])
|
||||
player_final = call(player_template.format(summaries="\n\n".join(player_summaries)))
|
||||
return dm_final, player_final
|
||||
summaries_text = "\n\n".join(player_summaries)
|
||||
if "{summaries}" in player_template:
|
||||
player_final = call(player_template.format(summaries=summaries_text))
|
||||
else:
|
||||
player_final = call(f"{player_template}\n\nSession excerpts:\n{summaries_text}")
|
||||
return dm_final, player_final, player_template
|
||||
|
||||
Reference in New Issue
Block a user