mirror of
https://github.com/YFGaia/dify-plus.git
synced 2026-06-04 10:14:00 +08:00
f2842da397
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
8 lines
396 B
TypeScript
8 lines
396 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))
|
|
}
|