mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-09-12 08:29:30 -04:00
~ | Merge pull request #1140 from Shubhgajj2004/patch-1
Update FreeGpt.py
This commit is contained in:
commit
8ff0513104
@ -7,7 +7,7 @@ from ..requests import StreamSession
|
|||||||
from .base_provider import AsyncGeneratorProvider
|
from .base_provider import AsyncGeneratorProvider
|
||||||
|
|
||||||
domains = [
|
domains = [
|
||||||
'https://r.aifree.site'
|
'https://s.aifree.site'
|
||||||
]
|
]
|
||||||
|
|
||||||
class FreeGpt(AsyncGeneratorProvider):
|
class FreeGpt(AsyncGeneratorProvider):
|
||||||
@ -59,4 +59,4 @@ class FreeGpt(AsyncGeneratorProvider):
|
|||||||
|
|
||||||
def generate_signature(timestamp: int, message: str, secret: str = ""):
|
def generate_signature(timestamp: int, message: str, secret: str = ""):
|
||||||
data = f"{timestamp}:{message}:{secret}"
|
data = f"{timestamp}:{message}:{secret}"
|
||||||
return hashlib.sha256(data.encode()).hexdigest()
|
return hashlib.sha256(data.encode()).hexdigest()
|
||||||
|
Loading…
Reference in New Issue
Block a user