diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-01-21 19:58:39 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-01-21 19:58:39 +0100 |
commit | 7e63b412b6550b45cf110daeac290077e9c953af (patch) | |
tree | ee1a90b26d22b0514ad777e695f5035febdac5e8 /g4f/Provider/Phind.py | |
parent | Merge pull request #1495 from RasyiidWho/main (diff) | |
download | gpt4free-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 '')
-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 } |