diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2023-11-22 21:21:57 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2023-11-22 21:21:57 +0100 |
commit | 4cec1ed9aaaa5ae6a09f1d2193cfe6e6c3791106 (patch) | |
tree | 8206e0db5c0cb5e497d444d0deeec86ffb824bd6 /g4f/Provider/ChatgptAi.py | |
parent | Add GptTalkRu Provider (diff) | |
download | gpt4free-4cec1ed9aaaa5ae6a09f1d2193cfe6e6c3791106.tar gpt4free-4cec1ed9aaaa5ae6a09f1d2193cfe6e6c3791106.tar.gz gpt4free-4cec1ed9aaaa5ae6a09f1d2193cfe6e6c3791106.tar.bz2 gpt4free-4cec1ed9aaaa5ae6a09f1d2193cfe6e6c3791106.tar.lz gpt4free-4cec1ed9aaaa5ae6a09f1d2193cfe6e6c3791106.tar.xz gpt4free-4cec1ed9aaaa5ae6a09f1d2193cfe6e6c3791106.tar.zst gpt4free-4cec1ed9aaaa5ae6a09f1d2193cfe6e6c3791106.zip |
Diffstat (limited to 'g4f/Provider/ChatgptAi.py')
-rw-r--r-- | g4f/Provider/ChatgptAi.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/Provider/ChatgptAi.py b/g4f/Provider/ChatgptAi.py index 9425dfb0..f2785364 100644 --- a/g4f/Provider/ChatgptAi.py +++ b/g4f/Provider/ChatgptAi.py @@ -65,7 +65,8 @@ class ChatgptAi(AsyncGeneratorProvider): async with session.post( f"{cls.url}/wp-json/mwai-ui/v1/chats/submit", proxy=proxy, - json=data + json=data, + headers={"X-Wp-Nonce": cls._system["restNonce"]} ) as response: response.raise_for_status() async for line in response.content: |