summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/V50.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g4f/Provider/V50.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/g4f/Provider/V50.py b/g4f/Provider/V50.py
index 4e02d4b7..81a95ba8 100644
--- a/g4f/Provider/V50.py
+++ b/g4f/Provider/V50.py
@@ -21,11 +21,9 @@ class V50(BaseProvider):
messages: list[dict[str, str]],
stream: bool, **kwargs: Any) -> CreateResult:
- conversation = ''
- for message in messages:
- conversation += '%s: %s\n' % (message['role'], message['content'])
-
- conversation += 'assistant: '
+ conversation = "\n".join(f"{message['role']}: {message['content']}" for message in messages)
+ conversation += "\nassistant: "
+
payload = {
"prompt" : conversation,
"options" : {},