Fix /ollama pull
This commit is contained in:
parent
af11baeeaa
commit
3c61504cb3
1 changed files with 39 additions and 38 deletions
|
@ -434,6 +434,7 @@ class Chat(commands.Cog):
|
||||||
last_completed = 0
|
last_completed = 0
|
||||||
last_completed_ts = time.time()
|
last_completed_ts = time.time()
|
||||||
|
|
||||||
|
async with ollama_client(str(server.base_url)) as client:
|
||||||
async for line in await client.pull(model, stream=True):
|
async for line in await client.pull(model, stream=True):
|
||||||
if view.event.is_set():
|
if view.event.is_set():
|
||||||
embed.add_field(name="Error!", value="Download cancelled.")
|
embed.add_field(name="Error!", value="Download cancelled.")
|
||||||
|
|
Loading…
Reference in a new issue