Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -98,8 +98,8 @@ async def set_prefix(ctx, prefix: str):
|
|
98 |
bot.command_prefix = commands.when_mentioned_or(prefix)
|
99 |
await ctx.send(f"Command prefix changed to: {prefix}")
|
100 |
|
101 |
-
@bot.command(name='
|
102 |
-
async def
|
103 |
help_text = (
|
104 |
"Here are the commands you can use:\n"
|
105 |
"!ask <question> [temperature] [max_tokens] [top_k] [top_p] - Ask a question to the AI model.\n"
|
@@ -109,7 +109,7 @@ async def help_command(ctx):
|
|
109 |
" top_k (default=50) - Limits the number of highest probability vocabulary tokens to consider.\n"
|
110 |
" top_p (default=0.9) - Limits the cumulative probability of the highest probability vocabulary tokens.\n"
|
111 |
"!setprefix <prefix> - Change the command prefix (admin only).\n"
|
112 |
-
"!
|
113 |
)
|
114 |
await ctx.send(help_text)
|
115 |
|
|
|
98 |
bot.command_prefix = commands.when_mentioned_or(prefix)
|
99 |
await ctx.send(f"Command prefix changed to: {prefix}")
|
100 |
|
101 |
+
@bot.command(name='help_custom')
|
102 |
+
async def help_custom(ctx):
|
103 |
help_text = (
|
104 |
"Here are the commands you can use:\n"
|
105 |
"!ask <question> [temperature] [max_tokens] [top_k] [top_p] - Ask a question to the AI model.\n"
|
|
|
109 |
" top_k (default=50) - Limits the number of highest probability vocabulary tokens to consider.\n"
|
110 |
" top_p (default=0.9) - Limits the cumulative probability of the highest probability vocabulary tokens.\n"
|
111 |
"!setprefix <prefix> - Change the command prefix (admin only).\n"
|
112 |
+
"!help_custom - Display this help message."
|
113 |
)
|
114 |
await ctx.send(help_text)
|
115 |
|