mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-19 03:25:32 +00:00
Fix ChatgptAi Provider
This commit is contained in:
parent
ebb6427100
commit
4cec1ed9aa
@ -65,7 +65,8 @@ class ChatgptAi(AsyncGeneratorProvider):
|
|||||||
async with session.post(
|
async with session.post(
|
||||||
f"{cls.url}/wp-json/mwai-ui/v1/chats/submit",
|
f"{cls.url}/wp-json/mwai-ui/v1/chats/submit",
|
||||||
proxy=proxy,
|
proxy=proxy,
|
||||||
json=data
|
json=data,
|
||||||
|
headers={"X-Wp-Nonce": cls._system["restNonce"]}
|
||||||
) as response:
|
) as response:
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
async for line in response.content:
|
async for line in response.content:
|
||||||
|
Loading…
Reference in New Issue
Block a user