Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

472 B
Raw Blame
import { ModelFeatureEnum } from '@/app/components/header/account-setting/model-provider-page/declarations'

export const supportFunctionCall = (features: readonly string[] | null = []): boolean => {
  if (!features || !features.length) return false
  return features.some((feature) =>
    [
      ModelFeatureEnum.toolCall,
      ModelFeatureEnum.multiToolCall,
      ModelFeatureEnum.streamToolCall,
    ].some((supportedFeature) => supportedFeature === feature),
  )
}