diff --git a/gpt/gpt.py b/gpt/gpt.py index e56063e..d573116 100644 --- a/gpt/gpt.py +++ b/gpt/gpt.py @@ -4,7 +4,6 @@ import io import base64 import asyncio import re -import aiohttp from PIL import Image from typing import Type, Deque, Dict, Generator @@ -118,7 +117,7 @@ class Gpt(Plugin): "prompt": prompt } - async with aiohttp.request("POST", "https://nexra.aryahcr.cc/api/chat/gpt", headers=headers, data=json.dumps(data)) as response: + async with self.http.request("POST", "https://nexra.aryahcr.cc/api/chat/gpt", headers=headers, data=json.dumps(data)) as response: if response.status != 200: self.log.warning(f"Unexpected status sending request to nexra.aryahcr.cc: {response.status_code}") return diff --git a/maubot.yaml b/maubot.yaml index 45ffff5..846fded 100644 --- a/maubot.yaml +++ b/maubot.yaml @@ -1,6 +1,6 @@ maubot: 0.1.0 id: sh.boehm.gpt -version: 0.0.04 +version: 0.0.041 license: MIT modules: - gpt