diff options
-rw-r--r-- | g4f/Provider/Phind.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/Phind.py b/g4f/Provider/Phind.py index b0df3edc..dfc8f992 100644 --- a/g4f/Provider/Phind.py +++ b/g4f/Provider/Phind.py @@ -55,7 +55,7 @@ class Phind(AsyncGeneratorProvider): "creativeMode": creative_mode, "customLinks": [] }, - "context": ([message["content"] for message in messages if message["role"] == "system"])[0] if ([message["content"] for message in messages if message["role"] == "system"]) else "", + "context": "\n".join([message["content"] for message in messages if message["role"] == "system"]), "rewrittenQuestion": prompt, "challenge": 0.21132115912208504 } |