|
|
@@ -145,9 +145,9 @@ export function Prompt(props: PromptProps) {
|
|
|
const isPrimaryAgent = local.agent.list().some((x) => x.name === msg.agent)
|
|
|
if (msg.agent && isPrimaryAgent) {
|
|
|
local.agent.set(msg.agent)
|
|
|
+ if (msg.model) local.model.set(msg.model)
|
|
|
+ if (msg.variant) local.model.variant.set(msg.variant)
|
|
|
}
|
|
|
- if (msg.model) local.model.set(msg.model)
|
|
|
- if (msg.variant) local.model.variant.set(msg.variant)
|
|
|
}
|
|
|
})
|
|
|
|