fix: Update ephemeral flag in AI model change responses to improve visibility
This commit is contained in:
parent
c374a1a835
commit
19f7d658fc
@ -819,7 +819,7 @@ def setup_commands(cog: 'GurtCog'):
|
|||||||
# If persistence is desired, you'd add something like:
|
# If persistence is desired, you'd add something like:
|
||||||
# await cog.config_manager.set_default_model(new_model_id) # Assuming a config_manager exists
|
# await cog.config_manager.set_default_model(new_model_id) # Assuming a config_manager exists
|
||||||
|
|
||||||
await interaction.followup.send(f"✅ Gurt's AI model has been changed to: **{new_model_friendly_name}** (`{new_model_id}`).", ephemeral=True)
|
await interaction.followup.send(f"✅ Gurt's AI model has been changed to: **{new_model_friendly_name}** (`{new_model_id}`).", ephemeral=False)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Error in /gurtmodel command: {e}")
|
print(f"Error in /gurtmodel command: {e}")
|
||||||
import traceback
|
import traceback
|
||||||
@ -838,7 +838,7 @@ def setup_commands(cog: 'GurtCog'):
|
|||||||
# Try to get the friendly name from AVAILABLE_AI_MODELS
|
# Try to get the friendly name from AVAILABLE_AI_MODELS
|
||||||
friendly_name = AVAILABLE_AI_MODELS.get(current_model_id, current_model_id) # Fallback to ID if not found
|
friendly_name = AVAILABLE_AI_MODELS.get(current_model_id, current_model_id) # Fallback to ID if not found
|
||||||
|
|
||||||
await interaction.followup.send(f"Gurt is currently using AI model: **{friendly_name}** (`{current_model_id}`).", ephemeral=True)
|
await interaction.followup.send(f"Gurt is currently using AI model: **{friendly_name}** (`{current_model_id}`).", ephemeral=False)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Error in /gurtgetmodel command: {e}")
|
print(f"Error in /gurtgetmodel command: {e}")
|
||||||
import traceback
|
import traceback
|
||||||
|
Loading…
x
Reference in New Issue
Block a user