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

XFEstudio/gpt4free

add hpgptai

a74d4ae3
hp256 <971748116@qq.com>
提交于

代码差异

1 个文件 +2 -1
Modified gpt4free/hpgptai/__init__.py +2 -1
@@ -15,12 +15,13 @@ class ChatCompletion:
15 15 def create(
16 16 messages: list,
17 17 context: str="Converse as if you were an AI assistant. Be friendly, creative.",
18 restNonce:str="9d6d743bd3",
18 19 proxy:str=None
19 20 ):
20 21 url = "https://chatgptlogin.ac/wp-json/ai-chatbot/v1/chat"
21 22 headers = {
22 23 "Content-Type": "application/json",
23 "X-Wp-Nonce": "02244d73c2"
24 "X-Wp-Nonce": restNonce
24 25 }
25 26 proxies = {'http': 'http://' + proxy, 'https': 'http://' + proxy} if proxy else None
26 27 data = {