feat: implement database retrieval for builtin provider credentials in ToolManager and update PluginParameterService to use new method

pull/21425/head
Yeuoly 11 months ago
parent 449283f3c5
commit 3bfbaba4d7

@ -328,7 +328,7 @@ const VarReferencePicker: FC<Props> = ({
const [dynamicOptions, setDynamicOptions] = useState<FormOption[] | null>(null) const [dynamicOptions, setDynamicOptions] = useState<FormOption[] | null>(null)
const [isLoading, setIsLoading] = useState(false) const [isLoading, setIsLoading] = useState(false)
const { mutateAsync: fetchDynamicOptions } = useFetchDynamicOptions( const { mutateAsync: fetchDynamicOptions } = useFetchDynamicOptions(
currentProvider?.plugin_id || '', currentProvider?.name || '', currentTool?.name || '', (schema as CredentialFormSchemaSelect).variable, currentProvider?.plugin_id || '', currentProvider?.name || '', currentTool?.name || '', (schema as CredentialFormSchemaSelect)?.variable || '',
'tool', 'tool',
) )
const handleFetchDynamicOptions = async () => { const handleFetchDynamicOptions = async () => {

Loading…
Cancel
Save