返回提交历史
Modified
gpt4free/hpgptai/__init__.py
+2
-1
XFEstudio/gpt4free
add hpgptai
a74d4ae3
代码差异
1 个文件
+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 = {