Merge branch 'feat/plugins' of https://github.com/langgenius/dify into feat/plugins

pull/12547/head
AkaraChen 1 year ago
commit 4bbcc78c84

@ -72,6 +72,7 @@ const AgentModelTrigger: FC<AgentModelTriggerProps> = ({
const [inModelList, setInModelList] = useState(false) const [inModelList, setInModelList] = useState(false)
const invalidateInstalledPluginList = useInvalidateInstalledPluginList() const invalidateInstalledPluginList = useInvalidateInstalledPluginList()
const handleOpenModal = useModelModalHandler() const handleOpenModal = useModelModalHandler()
useEffect(() => { useEffect(() => {
(async () => { (async () => {
if (modelId && currentProvider) { if (modelId && currentProvider) {
@ -96,11 +97,8 @@ const AgentModelTrigger: FC<AgentModelTriggerProps> = ({
catch (error) { catch (error) {
// pass // pass
} }
setIsPluginChecked(true)
}
else {
setIsPluginChecked(true)
} }
setIsPluginChecked(true)
})() })()
}, [providerName, modelId, currentProvider]) }, [providerName, modelId, currentProvider])

@ -119,7 +119,7 @@ const ToolSelector: FC<Props> = ({
}, },
} }
onSelect(toolValue) onSelect(toolValue)
setIsShowChooseTool(false) // setIsShowChooseTool(false)
} }
const handleDescriptionChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => { const handleDescriptionChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {

Loading…
Cancel
Save