mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 17:24:55 +00:00
Update code.py
This commit is contained in:
@@ -104,6 +104,7 @@ async def advanced(ctx, max_tokens=None, temperature=None, frequency_penalty=Non
|
|||||||
await ctx.respond("This server is not setup, please run /setup", ephemeral=True)
|
await ctx.respond("This server is not setup, please run /setup", ephemeral=True)
|
||||||
return
|
return
|
||||||
#save the current settings into a list: is_active, max_tokens, temperature, frequency_penalty, presence_penalty, prompt_size, prompt_prefix
|
#save the current settings into a list: is_active, max_tokens, temperature, frequency_penalty, presence_penalty, prompt_size, prompt_prefix
|
||||||
|
debug(f"Current settings: {c.fetchone()}")
|
||||||
current_settings = [c.fetchone()[4], c.fetchone()[5], c.fetchone()[6], c.fetchone()[7], c.fetchone()[9]]
|
current_settings = [c.fetchone()[4], c.fetchone()[5], c.fetchone()[6], c.fetchone()[7], c.fetchone()[9]]
|
||||||
#get the new settings
|
#get the new settings
|
||||||
if max_tokens is None:
|
if max_tokens is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user