|
|
|
|
@ -50,7 +50,11 @@ const AgentTools: FC = () => {
|
|
|
|
|
const [isShowSettingTool, setIsShowSettingTool] = useState(false)
|
|
|
|
|
const [isShowSettingAuth, setShowSettingAuth] = useState(false)
|
|
|
|
|
const tools = (modelConfig?.agentConfig?.tools as AgentTool[] || []).map((item) => {
|
|
|
|
|
const collection = collectionList.find(collection => collection.id === item.provider_id.split('/').pop() && collection.type === item.provider_type)
|
|
|
|
|
const collection = collectionList.find(
|
|
|
|
|
collection =>
|
|
|
|
|
collection.id.split('/').pop() === item.provider_id.split('/').pop()
|
|
|
|
|
&& collection.type === item.provider_type,
|
|
|
|
|
)
|
|
|
|
|
const icon = collection?.icon
|
|
|
|
|
return {
|
|
|
|
|
...item,
|
|
|
|
|
|