~ | Merge pull request #1140 from Shubhgajj2004/patch-1

Update FreeGpt.py
This commit is contained in:
Tekky 2023-10-24 10:35:51 +01:00 committed by GitHub
commit 8ff0513104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ from ..requests import StreamSession
from .base_provider import AsyncGeneratorProvider
domains = [
'https://r.aifree.site'
'https://s.aifree.site'
]
class FreeGpt(AsyncGeneratorProvider):
@ -59,4 +59,4 @@ class FreeGpt(AsyncGeneratorProvider):
def generate_signature(timestamp: int, message: str, secret: str = ""):
data = f"{timestamp}:{message}:{secret}"
return hashlib.sha256(data.encode()).hexdigest()
return hashlib.sha256(data.encode()).hexdigest()