print download status

This commit is contained in:
Nexus 2024-04-14 18:47:42 +01:00
parent 28bc97fb45
commit d05582dee4
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -946,7 +946,12 @@ class Ollama(commands.Cog):
if not await client.has_model_named("orca-mini", "3b"):
with client.download_model("orca-mini", "3b") as handler:
async for _ in handler:
self.log.info("Downloading orca-mini:3b on server %r - %.2f%%", server, handler.percent)
self.log.info(
"Downloading orca-mini:3b on server %r - %s (%.2f%%)",
server,
handler.status,
handler.percent
)
messages = self.history.get_history(thread)
embed = discord.Embed(description=">>> ")