fix(web-ui): update thinking selector immediately closes #2306
This commit is contained in:
@@ -333,7 +333,9 @@ export class MessageEditor extends LitElement {
|
|||||||
{ value: "high", label: i18n("High"), icon: icon(Brain, "sm") },
|
{ value: "high", label: i18n("High"), icon: icon(Brain, "sm") },
|
||||||
] as SelectOption[],
|
] as SelectOption[],
|
||||||
onChange: (value: string) => {
|
onChange: (value: string) => {
|
||||||
this.onThinkingChange?.(value as "off" | "minimal" | "low" | "medium" | "high");
|
const level = value as "off" | "minimal" | "low" | "medium" | "high";
|
||||||
|
this.thinkingLevel = level;
|
||||||
|
this.onThinkingChange?.(level);
|
||||||
},
|
},
|
||||||
width: "80px",
|
width: "80px",
|
||||||
size: "sm",
|
size: "sm",
|
||||||
|
|||||||
Reference in New Issue
Block a user