TypeError: 'generator' object does not support the asynchronous context manager protocol what now?
This commit is contained in:
parent
677973396a
commit
0a2deba623
1 changed files with 1 additions and 2 deletions
|
@ -218,7 +218,7 @@ class OllamaClient:
|
||||||
timeout = httpx.Timeout(timeout)
|
timeout = httpx.Timeout(timeout)
|
||||||
else:
|
else:
|
||||||
timeout = timeout or httpx.Timeout(60)
|
timeout = timeout or httpx.Timeout(60)
|
||||||
return self._with_async_client(timeout)
|
yield from self._with_async_client(timeout)
|
||||||
|
|
||||||
async def get_tags(self) -> dict[typing.Literal["models"], dict[str, str, int, dict[str, str, None]]]:
|
async def get_tags(self) -> dict[typing.Literal["models"], dict[str, str, int, dict[str, str, None]]]:
|
||||||
"""
|
"""
|
||||||
|
@ -267,7 +267,6 @@ class OllamaClient:
|
||||||
return handler
|
return handler
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class OllamaView(View):
|
class OllamaView(View):
|
||||||
def __init__(self, ctx: discord.ApplicationContext):
|
def __init__(self, ctx: discord.ApplicationContext):
|
||||||
super().__init__(timeout=3600, disable_on_timeout=True)
|
super().__init__(timeout=3600, disable_on_timeout=True)
|
||||||
|
|
Loading…
Reference in a new issue