XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update FreeGpt.py

Changed older domain url with the working new url

f0f5cb05
Shubh Gajjar <96479341+Shubhgajj2004@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -2
Modified g4f/Provider/FreeGpt.py +2 -2
@@ -7,7 +7,7 @@ from ..requests import StreamSession
7 7 from .base_provider import AsyncGeneratorProvider
8 8
9 9 domains = [
10 'https://r.aifree.site'
10 'https://s.aifree.site'
11 11 ]
12 12
13 13 class FreeGpt(AsyncGeneratorProvider):
@@ -59,4 +59,4 @@ class FreeGpt(AsyncGeneratorProvider):
59 59
60 60 def generate_signature(timestamp: int, message: str, secret: str = ""):
61 61 data = f"{timestamp}:{message}:{secret}"
62 return hashlib.sha256(data.encode()).hexdigest()
62 return hashlib.sha256(data.encode()).hexdigest()