mirror of https://github.com/langgenius/dify.git
parent
61526c027d
commit
945d1569ee
|
|
@ -118,6 +118,7 @@ export const AgentStrategy = memo((props: AgentStrategyProps) => {
|
|||
title={<>
|
||||
{renderI18nObject(def.label)} {def.required && <span className='text-red-500'>*</span>}
|
||||
</>}
|
||||
key={def.variable}
|
||||
tooltip={def.tooltip && renderI18nObject(def.tooltip)}
|
||||
inline
|
||||
>
|
||||
|
|
|
|||
|
|
@ -54,9 +54,9 @@ const AgentNode: FC<NodeProps<AgentNodeType>> = (props) => {
|
|||
const field = param.name
|
||||
const value = inputs.agent_parameters?.[field]?.value
|
||||
if (value) {
|
||||
(value as unknown as any[]).forEach((item) => {
|
||||
(value as unknown as any[]).forEach((item, idx) => {
|
||||
tools.push({
|
||||
id: `${param.name}-${i}`,
|
||||
id: `${param.name}-${idx}`,
|
||||
providerName: item.provider_name,
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue