add private convo thread opener

Kaveen Kumarasinghe 1 year ago
parent e85530639f
commit 87a89d40ca

@ -1254,6 +1254,18 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"):
from_g_command=True,
custom_api_key=user_api_key,
)
@discord.slash_command(
name="private-test",
description="Private thread for testing. Only visible to you and server admins.",
guild_ids=ALLOWED_GUILDS,
)
@discord.guild_only()
async def private_test(self, ctx: discord.ApplicationContext):
await ctx.defer(ephemeral=True)
await ctx.channel.create_thread(
name=ctx.user.name + "'s private test conversation",
auto_archive_duration=60,
)
@add_to_group("gpt")
@discord.slash_command(

@ -24,7 +24,7 @@ from models.openai_model import Model
from models.usage_service_model import UsageService
from models.env_service_model import EnvService
__version__ = "5.3.1"
__version__ = "5.3.2"
"""
The pinecone service is used to store and retrieve conversation embeddings.

Loading…
Cancel
Save