summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-01-21 19:58:39 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-01-21 19:58:39 +0100
commit7e63b412b6550b45cf110daeac290077e9c953af (patch)
treeee1a90b26d22b0514ad777e695f5035febdac5e8 /g4f
parentMerge pull request #1495 from RasyiidWho/main (diff)
downloadgpt4free-7e63b412b6550b45cf110daeac290077e9c953af.tar
gpt4free-7e63b412b6550b45cf110daeac290077e9c953af.tar.gz
gpt4free-7e63b412b6550b45cf110daeac290077e9c953af.tar.bz2
gpt4free-7e63b412b6550b45cf110daeac290077e9c953af.tar.lz
gpt4free-7e63b412b6550b45cf110daeac290077e9c953af.tar.xz
gpt4free-7e63b412b6550b45cf110daeac290077e9c953af.tar.zst
gpt4free-7e63b412b6550b45cf110daeac290077e9c953af.zip
Diffstat (limited to 'g4f')
-rw-r--r--g4f/Provider/Phind.py2
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
}