Update FreeGpt.py

Changed older domain url with the working new url
This commit is contained in:
Shubh Gajjar 2023-10-24 13:47:55 +05:30 committed by GitHub
parent 61579cdbff
commit f0f5cb05f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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()