diff options
author | Tekky <98614666+xtekky@users.noreply.github.com> | 2023-08-25 18:17:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-25 18:17:38 +0200 |
commit | 80f85e851e384e27d07252199f7d0b424b2d1193 (patch) | |
tree | 2c6323a6acba8bf830d5ba49895c831523e23b08 /g4f/Provider/Yqcloud.py | |
parent | Merge pull request #833 from hlohaus/bing (diff) | |
parent | Ails Supplementary Identification of Unusual Response Content (diff) | |
download | gpt4free-80f85e851e384e27d07252199f7d0b424b2d1193.tar gpt4free-80f85e851e384e27d07252199f7d0b424b2d1193.tar.gz gpt4free-80f85e851e384e27d07252199f7d0b424b2d1193.tar.bz2 gpt4free-80f85e851e384e27d07252199f7d0b424b2d1193.tar.lz gpt4free-80f85e851e384e27d07252199f7d0b424b2d1193.tar.xz gpt4free-80f85e851e384e27d07252199f7d0b424b2d1193.tar.zst gpt4free-80f85e851e384e27d07252199f7d0b424b2d1193.zip |
Diffstat (limited to 'g4f/Provider/Yqcloud.py')
-rw-r--r-- | g4f/Provider/Yqcloud.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/g4f/Provider/Yqcloud.py b/g4f/Provider/Yqcloud.py index a3147c2d..82ece2d5 100644 --- a/g4f/Provider/Yqcloud.py +++ b/g4f/Provider/Yqcloud.py @@ -35,7 +35,10 @@ def _create_header(): def _create_payload(messages: list[dict[str, str]]): - prompt = messages[-1]["content"] + prompt = "" + for message in messages: + prompt += "%s: %s\n" % (message["role"], message["content"]) + prompt += "assistant:" return { "prompt": prompt, "network": True, |