Fix janky llava switch
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s

This commit is contained in:
Nexus 2024-05-27 18:27:40 +01:00
parent b40ee8cce8
commit 22789057f8

View file

@ -534,8 +534,9 @@ class Ollama(commands.Cog):
if image: if image:
if fnmatch(model, "llava:*") is False: if fnmatch(model, "llava:*") is False:
await ctx.respond( await ctx.send(
"You can only use images with llava. Switching model to `llava:latest`.", delete_after=5 f"{ctx.user.mention}: You can only use images with llava. Switching model to `llava:latest`.",
delete_after=5
) )
model = "llava:latest" model = "llava:latest"