Indicate GPU servers in os
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 14s

This commit is contained in:
Nexus 2024-06-09 19:27:53 +01:00
parent 9fdddb8d45
commit 69d262d65b

View file

@ -921,7 +921,8 @@ class Ollama(commands.Cog):
if CONFIG["ollama"].get("order"):
ln = ["Server order:"]
for n, key in enumerate(CONFIG["ollama"].get("order"), start=1):
ln.append(f"{n}. {key!r}")
zap = '\N{high voltage sign}'
ln.append(f"{n}. {key!r} {f'({zap})' if CONFIG['ollama'][key].get('is_gpu') else ''}")
embed.description = "\n".join(ln)
for server, lock in self.servers.items():