Skip to content

Commit

Permalink
update prompt_source.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBernstorff committed Oct 27, 2024
1 parent 22a8be8 commit a7f4412
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion memium/source/prompt_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ def _deduplicate_group(self, group: tuple[str, Sequence[BasePrompt]]) -> BasePro
if prompts_in_group[0].edit_url
else prompts_in_group[0]
)
log.warning(f"Found duplicate prompts for {identifier}. Prompts: {prompts_in_group}")
log.warning(
f"""{identifier} has duplicate prompts:
Prompts:
{'\t\t'.join(prompts_in_group.__repr__())}
"""
)

return prompts_in_group[0]

Expand Down

0 comments on commit a7f4412

Please sign in to comment.