mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +08:00
fix: fix cannot select stream-tool-call in agent modal (#17015)
This commit is contained in:
6
web/utils/tool-call.ts
Normal file
6
web/utils/tool-call.ts
Normal file
@ -0,0 +1,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))
|
||||
}
|
||||
Reference in New Issue
Block a user