Skip to content

Commit 9f49ee0

Browse files
committed
Added close function in async..
1 parent 96e4b13 commit 9f49ee0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

imaginepy/async_imagine.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ def __init__(self, restricted: bool = True):
2626
self.api = "https://inferenceengine.vyro.ai"
2727
self.cdn = "https://1966211409.rsc.cdn77.org/appStuff/imagine-fncisndcubnsduigfuds"
2828
self.version = 1
29+
self.client = httpx.AsyncClient()
30+
31+
async def close(self):
32+
await self.client.aclose()
2933

3034
async def _request(self, **kwargs) -> Response:
3135
headers = {"accept": "*/*", "user-agent": "okhttp/4.10.0"}

0 commit comments

Comments
 (0)