diff options
author | hp256 <971748116@qq.com> | 2023-05-23 10:52:00 +0200 |
---|---|---|
committer | hp256 <971748116@qq.com> | 2023-05-23 10:52:00 +0200 |
commit | a74d4ae363f0190c9696d1270862585ff54c445f (patch) | |
tree | 6a634156de231f31a778322ee16e1136846b584f | |
parent | delete ora (diff) | |
download | gpt4free-a74d4ae363f0190c9696d1270862585ff54c445f.tar gpt4free-a74d4ae363f0190c9696d1270862585ff54c445f.tar.gz gpt4free-a74d4ae363f0190c9696d1270862585ff54c445f.tar.bz2 gpt4free-a74d4ae363f0190c9696d1270862585ff54c445f.tar.lz gpt4free-a74d4ae363f0190c9696d1270862585ff54c445f.tar.xz gpt4free-a74d4ae363f0190c9696d1270862585ff54c445f.tar.zst gpt4free-a74d4ae363f0190c9696d1270862585ff54c445f.zip |
-rw-r--r-- | gpt4free/hpgptai/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gpt4free/hpgptai/__init__.py b/gpt4free/hpgptai/__init__.py index 66841a87..c8772a19 100644 --- a/gpt4free/hpgptai/__init__.py +++ b/gpt4free/hpgptai/__init__.py @@ -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 = { |