From 7e63b412b6550b45cf110daeac290077e9c953af Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sun, 21 Jan 2024 19:58:39 +0100 Subject: [PATCH] Join Phind context --- g4f/Provider/Phind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }