mirror of
https://github.com/langgenius/dify.git
synced 2026-07-16 01:48:40 +08:00
13 lines
427 B
TypeScript
13 lines
427 B
TypeScript
import { ModelFeatureEnum } from '@/app/components/header/account-setting/model-provider-page/declarations'
|
|
|
|
export const supportFunctionCall = (features: ModelFeatureEnum[] = []): boolean => {
|
|
if (!features || !features.length) return false
|
|
return features.some((feature) =>
|
|
[
|
|
ModelFeatureEnum.toolCall,
|
|
ModelFeatureEnum.multiToolCall,
|
|
ModelFeatureEnum.streamToolCall,
|
|
].includes(feature),
|
|
)
|
|
}
|