diff options
author | Heiner Lohaus <heiner.lohaus@netformic.com> | 2023-08-22 23:27:34 +0200 |
---|---|---|
committer | Heiner Lohaus <heiner.lohaus@netformic.com> | 2023-08-22 23:27:34 +0200 |
commit | 98d3304108de3e55c18f2af8a66a501541ec658b (patch) | |
tree | a2d80ab0c39ec93ebb97967a9f5a32f0c662c99e /g4f/Provider/Wewordle.py | |
parent | ~ | Merge pull request #829 (diff) | |
download | gpt4free-98d3304108de3e55c18f2af8a66a501541ec658b.tar gpt4free-98d3304108de3e55c18f2af8a66a501541ec658b.tar.gz gpt4free-98d3304108de3e55c18f2af8a66a501541ec658b.tar.bz2 gpt4free-98d3304108de3e55c18f2af8a66a501541ec658b.tar.lz gpt4free-98d3304108de3e55c18f2af8a66a501541ec658b.tar.xz gpt4free-98d3304108de3e55c18f2af8a66a501541ec658b.tar.zst gpt4free-98d3304108de3e55c18f2af8a66a501541ec658b.zip |
Diffstat (limited to 'g4f/Provider/Wewordle.py')
-rw-r--r-- | g4f/Provider/Wewordle.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/g4f/Provider/Wewordle.py b/g4f/Provider/Wewordle.py index f7f47ee0..cef209c9 100644 --- a/g4f/Provider/Wewordle.py +++ b/g4f/Provider/Wewordle.py @@ -21,11 +21,6 @@ class Wewordle(BaseProvider): stream: bool, **kwargs: Any, ) -> CreateResult: - base = "" - - for message in messages: - base += "%s: %s\n" % (message["role"], message["content"]) - base += "assistant:" # randomize user id and app id _user_id = "".join( random.choices(f"{string.ascii_lowercase}{string.digits}", k=16) @@ -45,7 +40,7 @@ class Wewordle(BaseProvider): } data: dict[str, Any] = { "user": _user_id, - "messages": [{"role": "user", "content": base}], + "messages": messages, "subscriber": { "originalPurchaseDate": None, "originalApplicationVersion": None, |