summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/Phind.py
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2023-10-22 18:08:03 +0200
committerGitHub <noreply@github.com>2023-10-22 18:08:03 +0200
commitd1eaa46360b7fe30d6f9c60f5a4af6246c24dc56 (patch)
tree9cc4e7401fdf42efdf6b42670acd3c2a72214ebf /g4f/Provider/Phind.py
parent~ | Merge pull request #1112 from lategege/main (diff)
parentFix ChatgptAi Provider (diff)
downloadgpt4free-d1eaa46360b7fe30d6f9c60f5a4af6246c24dc56.tar
gpt4free-d1eaa46360b7fe30d6f9c60f5a4af6246c24dc56.tar.gz
gpt4free-d1eaa46360b7fe30d6f9c60f5a4af6246c24dc56.tar.bz2
gpt4free-d1eaa46360b7fe30d6f9c60f5a4af6246c24dc56.tar.lz
gpt4free-d1eaa46360b7fe30d6f9c60f5a4af6246c24dc56.tar.xz
gpt4free-d1eaa46360b7fe30d6f9c60f5a4af6246c24dc56.tar.zst
gpt4free-d1eaa46360b7fe30d6f9c60f5a4af6246c24dc56.zip
Diffstat (limited to 'g4f/Provider/Phind.py')
-rw-r--r--g4f/Provider/Phind.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/Provider/Phind.py b/g4f/Provider/Phind.py
index d7c6f7c7..0e698cba 100644
--- a/g4f/Provider/Phind.py
+++ b/g4f/Provider/Phind.py
@@ -1,6 +1,6 @@
from __future__ import annotations
-import random
+import random, string
from datetime import datetime
from ..typing import AsyncResult, Messages
@@ -22,7 +22,7 @@ class Phind(AsyncGeneratorProvider):
timeout: int = 120,
**kwargs
) -> AsyncResult:
- chars = 'abcdefghijklmnopqrstuvwxyz0123456789'
+ chars = string.ascii_lowercase + string.digits
user_id = ''.join(random.choice(chars) for _ in range(24))
data = {
"question": format_prompt(messages),