From 5be9971b26d2859123cbb5cefc7daa06f5250c69 Mon Sep 17 00:00:00 2001 From: Rene Teigen Date: Wed, 1 Feb 2023 15:29:45 +0000 Subject: [PATCH] Set ephemeral option to be named private --- cogs/commands.py | 12 ++++++------ cogs/text_service_cog.py | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cogs/commands.py b/cogs/commands.py index 093d5a5..2e43229 100644 --- a/cogs/commands.py +++ b/cogs/commands.py @@ -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") diff --git a/cogs/text_service_cog.py b/cogs/text_service_cog.py index 2e01125..8f01b84 100644 --- a/cogs/text_service_cog.py +++ b/cogs/text_service_cog.py @@ -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)