mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-05 00:01:00 +00:00
add hpgptai
This commit is contained in:
parent
25dcf166a7
commit
a74d4ae363
@ -15,12 +15,13 @@ class ChatCompletion:
|
||||
def create(
|
||||
messages: list,
|
||||
context: str="Converse as if you were an AI assistant. Be friendly, creative.",
|
||||
restNonce:str="9d6d743bd3",
|
||||
proxy:str=None
|
||||
):
|
||||
url = "https://chatgptlogin.ac/wp-json/ai-chatbot/v1/chat"
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"X-Wp-Nonce": "02244d73c2"
|
||||
"X-Wp-Nonce": restNonce
|
||||
}
|
||||
proxies = {'http': 'http://' + proxy, 'https': 'http://' + proxy} if proxy else None
|
||||
data = {
|
||||
|
Loading…
Reference in New Issue
Block a user