mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-08 18:36:53 +08:00
chore: fix unnecessary string concatation in single line (#8311)
This commit is contained in:
@@ -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
|
||||
]
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user