mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-04-22 05:39:42 +08:00
7 lines
392 B
TypeScript
7 lines
392 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))
|
|
}
|