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):
|
async def ping_command(self, ctx: niobot.Context):
|
||||||
"""Checks the bot is running."""
|
"""Checks the bot is running."""
|
||||||
reply = await ctx.respond("Pong!")
|
reply = await ctx.respond("Pong!")
|
||||||
server = await self.find_server()
|
server = await self.find_server(gpu_only=False)
|
||||||
if not server:
|
if not server:
|
||||||
await reply.edit("Pong :(\nNo servers available.")
|
await reply.edit("Pong :(\nNo servers available.")
|
||||||
return
|
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`")
|
await ctx.respond("You need to set a model first. See: `h!help ollama.set-model`")
|
||||||
return
|
return
|
||||||
model = users[ctx.message.sender]
|
model = users[ctx.message.sender]
|
||||||
server = await self.find_server()
|
server = await self.find_server(gpu_only=False)
|
||||||
if not server:
|
if not server:
|
||||||
await ctx.respond("No servers available.")
|
await ctx.respond("No servers available.")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue