Fix ChatgptAi Provider

pull/1281/head
Heiner Lohaus 10 months ago
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…
Cancel
Save