mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-24 11:34:02 +03:00
Fix ChatgptAi Provider
This commit is contained in:
parent
ebb6427100
commit
4cec1ed9aa
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user