ping
doesn't require a GPU server
This commit is contained in:
parent
8ae75afb64
commit
3e110097bf
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ class AIModule(niobot.Module):
|
|||
async def ping_command(self, ctx: niobot.Context):
|
||||
"""Checks the bot is running."""
|
||||
reply = await ctx.respond("Pong!")
|
||||
server = await self.find_server()
|
||||
server = await self.find_server(gpu_only=False)
|
||||
if not server:
|
||||
await reply.edit("Pong :(\nNo servers available.")
|
||||
return
|
||||
|
@ -117,7 +117,7 @@ class AIModule(niobot.Module):
|
|||
await ctx.respond("You need to set a model first. See: `h!help ollama.set-model`")
|
||||
return
|
||||
model = users[ctx.message.sender]
|
||||
server = await self.find_server()
|
||||
server = await self.find_server(gpu_only=False)
|
||||
if not server:
|
||||
await ctx.respond("No servers available.")
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue