a
This commit is contained in:
parent
a5e6c5adb2
commit
b32e836556
@ -129,7 +129,7 @@ class RoleplayTetoCog(commands.Cog):
|
||||
self.conversations[user_id].pop()
|
||||
save_conversation_history(self.conversations) # Save history after removing failed message
|
||||
|
||||
@app_commands.command(name="set_ai_model", description="Sets the AI model for your roleplay conversations.")
|
||||
@app_commands.command(name="set_rp_ai_model", description="Sets the AI model for your roleplay conversations.")
|
||||
@app_commands.describe(model_name="The name of the AI model to use (e.g., google/gemini-2.5-flash-preview:thinking).")
|
||||
async def set_ai_model(self, interaction: discord.Interaction, model_name: str):
|
||||
user_id = str(interaction.user.id)
|
||||
@ -141,7 +141,7 @@ class RoleplayTetoCog(commands.Cog):
|
||||
save_conversation_history(self.conversations)
|
||||
await interaction.response.send_message(f"Your AI model has been set to `{model_name}` desu~", ephemeral=True)
|
||||
|
||||
@app_commands.command(name="get_ai_model", description="Shows the current AI model used for your roleplay conversations.")
|
||||
@app_commands.command(name="get_rp_ai_model", description="Shows the current AI model used for your roleplay conversations.")
|
||||
async def get_ai_model(self, interaction: discord.Interaction):
|
||||
user_id = str(interaction.user.id)
|
||||
user_model = self.conversations.get(user_id, {}).get('model', DEFAULT_AI_MODEL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user