fix(webui): sync model badge after preset switch
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b61c6304c3
commit
c92345bbb1
9 files changed
+61
-4
No files matched your search
@@ -225,7 +225,7 @@ async def cmd_model(ctx: CommandContext) -> OutboundMessage:
|
||||
channel=ctx.msg.channel,
|
||||
chat_id=ctx.msg.chat_id,
|
||||
content=_model_command_status(loop),
|
||||
metadata=metadata,
|
||||
metadata={**metadata, "_webui_model_name": loop.model},
|
||||
)
|
||||
|
||||
parts = args.split()
|
||||
@@ -264,7 +264,7 @@ async def cmd_model(ctx: CommandContext) -> OutboundMessage:
|
||||
channel=ctx.msg.channel,
|
||||
chat_id=ctx.msg.chat_id,
|
||||
content="\n".join(lines),
|
||||
metadata=metadata,
|
||||
metadata={**metadata, "_webui_model_name": loop.model},
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user