fix: enable custom model. (#825)

This commit is contained in:
Leo 2024-04-06 22:23:48 +08:00 committed by GitHub
parent c34517be2b
commit 0b5eea967f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,6 +127,8 @@ function SettingModal({ isOpen, onClose }: Props): JSX.Element {
}}
onKeyDown={(e: KeyboardEvent) => e.continuePropagation()}
defaultFilter={customFilter}
defaultInputValue={model}
allowsCustomValue
>
{(item: { label: string; value: string }) => (
<AutocompleteItem key={item.value} value={item.value}>