chore: fix unnecessary string concatation in single line (#8311)

This commit is contained in:
Bowen Liang
2024-09-13 14:24:49 +08:00
committed by GitHub
parent 08c486452f
commit 6613b8f2e0
30 changed files with 46 additions and 49 deletions

View File

@@ -53,7 +53,7 @@ def test__get_completion_model_prompt_messages():
"#context#": context,
"#histories#": "\n".join(
[
f"{'Human' if prompt.role.value == 'user' else 'Assistant'}: " f"{prompt.content}"
f"{'Human' if prompt.role.value == 'user' else 'Assistant'}: {prompt.content}"
for prompt in history_prompt_messages
]
),