Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions plugins/platforms/discord/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4084,8 +4084,27 @@ async def slash_reset(interaction: discord.Interaction):
async def slash_model(interaction: discord.Interaction, name: str = ""):
await self._run_simple_slash(interaction, f"/model {name}".strip())

@tree.command(name="reasoning", description="Show or change reasoning effort")
@discord.app_commands.describe(effort="Effort: none, minimal, low, medium, high, xhigh, max, or ultra.")
@tree.command(name="reasoning", description="Show/change reasoning effort, or toggle showing it")
@discord.app_commands.describe(effort="Pick a level, reset the override, or show/hide reasoning. Leave empty to see current.")
@discord.app_commands.choices(effort=[
# Effort levels and the reset/show/hide subcommands all arrive on the
# gateway's single `/reasoning <arg>` handler. Discord's native UI has
# no subcommand affordance for a free-text field (it just funnels the
# user into the `effort` box), so expose every accepted value as an
# explicit choice. --global persistence stays reachable by typing the
# command as plain text.
discord.app_commands.Choice(name="none — disable reasoning", value="none"),
discord.app_commands.Choice(name="minimal", value="minimal"),
discord.app_commands.Choice(name="low", value="low"),
discord.app_commands.Choice(name="medium", value="medium"),
discord.app_commands.Choice(name="high", value="high"),
discord.app_commands.Choice(name="xhigh", value="xhigh"),
discord.app_commands.Choice(name="max", value="max"),
discord.app_commands.Choice(name="ultra — maximum reasoning", value="ultra"),
discord.app_commands.Choice(name="reset — clear this session's override", value="reset"),
discord.app_commands.Choice(name="show — reveal reasoning in replies", value="show"),
discord.app_commands.Choice(name="hide — hide reasoning from replies", value="hide"),
])
async def slash_reasoning(interaction: discord.Interaction, effort: str = ""):
await self._run_simple_slash(interaction, f"/reasoning {effort}".strip())

Expand Down
1 change: 1 addition & 0 deletions scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

# Auto-extracted from noreply emails + manual overrides
AUTHOR_MAP = {
"sam7894604@gmail.com": "sam7894604", # PR #55803 salvage (discord: /reasoning slash choices)
"bryan@users.noreply.github.com": "hydraxman", # PR #62028 salvage (copilot xhigh) — regression-test commit authored under a bare-noreply local git identity; PR author is @hydraxman
"antydizajn@gmail.com": "antydizajn", # PR #36043 salvage (auxiliary: route custom:<name> through named-provider arm + Palantir Bearer auth)
"252620095+briandevans@users.noreply.github.com": "briandevans", # PR #64951 salvage (lmstudio: clamp max/ultra reasoning effort)
Expand Down
Loading