Set ephemeral option to be named private

Rene Teigen 2 years ago
parent f48deab320
commit 5be9971b26

@ -302,7 +302,7 @@ class Commands(discord.Cog, name="Commands"):
name="prompt", description="The prompt to send to GPT3", required=True
)
@discord.option(
name="ephemeral",
name="private",
description="Will only be visible to you",
required=False
)
@ -339,14 +339,14 @@ class Commands(discord.Cog, name="Commands"):
self,
ctx: discord.ApplicationContext,
prompt: str,
ephemeral: bool,
private: bool,
temperature: float,
top_p: float,
frequency_penalty: float,
presence_penalty: float,
):
await self.converser_cog.ask_command(
ctx, prompt, ephemeral, temperature, top_p, frequency_penalty, presence_penalty
ctx, prompt, private, temperature, top_p, frequency_penalty, presence_penalty
)
@add_to_group("gpt")
@ -367,7 +367,7 @@ class Commands(discord.Cog, name="Commands"):
default="",
)
@discord.option(
name="ephemeral",
name="private",
description="Will only be visible to you",
required=False
)
@ -396,13 +396,13 @@ class Commands(discord.Cog, name="Commands"):
ctx: discord.ApplicationContext,
instruction: str,
text: str,
ephemeral: bool,
private: bool,
temperature: float,
top_p: float,
codex: bool,
):
await self.converser_cog.edit_command(
ctx, instruction, text, ephemeral, temperature, top_p, codex
ctx, instruction, text, private, temperature, top_p, codex
)
@add_to_group("gpt")

@ -693,7 +693,7 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"):
self,
ctx: discord.ApplicationContext,
prompt: str,
ephemeral: bool,
private: bool,
temperature: float,
top_p: float,
frequency_penalty: float,
@ -721,7 +721,7 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"):
if not user_api_key:
return
await ctx.defer(ephemeral=ephemeral)
await ctx.defer(ephemeral=private)
overrides = Override(temperature, top_p, frequency_penalty, presence_penalty)
@ -742,7 +742,7 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"):
ctx: discord.ApplicationContext,
instruction: str,
text: str,
ephemeral: bool,
private: bool,
temperature: float,
top_p: float,
codex: bool,
@ -768,7 +768,7 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"):
if not user_api_key:
return
await ctx.defer(ephemeral=ephemeral)
await ctx.defer(ephemeral=private)
overrides = Override(temperature, top_p, 0, 0)

Loading…
Cancel
Save