公告板
版本库
filestore
活动
搜索
登录
ai_exam
/
app-qxueyou-dify
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
初始化
wwf
8 天以前
938c3e5a587ce950a94964ea509b9e7f8834dfae
[ai_exam/app-qxueyou-dify.git]
/
utils
/
tool-call.ts
1
2
3
4
5
6
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))
}