fix: fix cannot select stream-tool-call in agent modal (#17015)
This commit is contained in:
parent
87034e26ae
commit
42968cb945
5 changed files with 14 additions and 12 deletions
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))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue