This commit is contained in:
Joel
2025-10-21 14:42:27 +08:00
316 changed files with 55722 additions and 40692 deletions

View File

@ -48,8 +48,8 @@ type FormProps<
fieldMoreInfo?: (payload: CredentialFormSchema | CustomFormSchema) => ReactNode
customRenderField?: (
formSchema: CustomFormSchema,
props: Omit<FormProps<CustomFormSchema>, 'override' | 'customRenderField'>
) => ReactNode
props: Omit<FormProps<CustomFormSchema>, 'override' | 'customRenderField'>,
) => ReactNode,
// If return falsy value, this field will fallback to default render
override?: [Array<FormTypeEnum>, (formSchema: CredentialFormSchema, props: Omit<FormProps<CustomFormSchema>, 'override' | 'customRenderField'>) => ReactNode]
nodeId?: string

View File

@ -72,7 +72,7 @@ const Popup: FC<PopupProps> = ({
return scopeFeatures.every((feature) => {
if (feature === ModelFeatureEnum.toolCall)
return supportFunctionCall(modelItem.features)
return modelItem.features?.some(featureItem => featureItem === feature)
return modelItem.features?.includes(feature) ?? false
})
})
return { ...model, models: filteredModels }