summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2023-12-19 21:39:41 +0100
committerGitHub <noreply@github.com>2023-12-19 21:39:41 +0100
commit8200e2e2f3e124245d3f2ba9de718ee7bc555eca (patch)
tree572b18aa8b686e2f106d2d1640f939b5994fedd7 /g4f/Provider
parentMerge pull request #1356 from eminemkun/main (diff)
parentRemoved the condition for filtering token_ids (diff)
downloadgpt4free-8200e2e2f3e124245d3f2ba9de718ee7bc555eca.tar
gpt4free-8200e2e2f3e124245d3f2ba9de718ee7bc555eca.tar.gz
gpt4free-8200e2e2f3e124245d3f2ba9de718ee7bc555eca.tar.bz2
gpt4free-8200e2e2f3e124245d3f2ba9de718ee7bc555eca.tar.lz
gpt4free-8200e2e2f3e124245d3f2ba9de718ee7bc555eca.tar.xz
gpt4free-8200e2e2f3e124245d3f2ba9de718ee7bc555eca.tar.zst
gpt4free-8200e2e2f3e124245d3f2ba9de718ee7bc555eca.zip
Diffstat (limited to 'g4f/Provider')
-rw-r--r--g4f/Provider/FakeGpt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/FakeGpt.py b/g4f/Provider/FakeGpt.py
index 2720845f..a88f3682 100644
--- a/g4f/Provider/FakeGpt.py
+++ b/g4f/Provider/FakeGpt.py
@@ -36,7 +36,7 @@ class FakeGpt(AsyncGeneratorProvider):
async with session.get(f"{cls.url}/api/loads", params={"t": int(time.time())}, proxy=proxy) as response:
response.raise_for_status()
list = (await response.json())["loads"]
- token_ids = [t["token_id"] for t in list if t["count"] == 0]
+ token_ids = [t["token_id"] for t in list]
data = {
"token_key": random.choice(token_ids),
"session_password": get_random_string()