fix(app): defer model variant selector (#39445)
This commit is contained in:
@@ -55,6 +55,7 @@ export function PromptInputV2Composer(props: PromptInputV2ComposerProps) {
|
|||||||
controller={props.controller}
|
controller={props.controller}
|
||||||
borderUnderlay={props.borderUnderlay}
|
borderUnderlay={props.borderUnderlay}
|
||||||
class={props.class}
|
class={props.class}
|
||||||
|
variantControlVisible={!props.controller.model.loading}
|
||||||
attachKeybind={command.keybindParts("file.attach")}
|
attachKeybind={command.keybindParts("file.attach")}
|
||||||
attachShortcut={command.keybind("file.attach")}
|
attachShortcut={command.keybind("file.attach")}
|
||||||
modelControl={
|
modelControl={
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ export type PromptInputV2Props = {
|
|||||||
borderUnderlay?: boolean
|
borderUnderlay?: boolean
|
||||||
class?: string
|
class?: string
|
||||||
modelControl?: JSX.Element
|
modelControl?: JSX.Element
|
||||||
|
variantControlVisible?: boolean
|
||||||
attachKeybind?: string[]
|
attachKeybind?: string[]
|
||||||
attachShortcut?: string
|
attachShortcut?: string
|
||||||
}
|
}
|
||||||
@@ -232,7 +233,7 @@ export function PromptInputV2(props: PromptInputV2Props) {
|
|||||||
>
|
>
|
||||||
{props.modelControl}
|
{props.modelControl}
|
||||||
</Show>
|
</Show>
|
||||||
<Show when={view.variant}>
|
<Show when={(props.variantControlVisible ?? true) && view.variant}>
|
||||||
{(control) => (
|
{(control) => (
|
||||||
<Show when={control().options().length > 1}>
|
<Show when={control().options().length > 1}>
|
||||||
<PromptInputV2ConfiguredSelect
|
<PromptInputV2ConfiguredSelect
|
||||||
|
|||||||
Reference in New Issue
Block a user