fix: front end error when same tool is called twice at once (#5068)

This commit is contained in:
Charles Zhou 2024-06-13 04:16:59 -05:00 committed by GitHub
parent 015c26d303
commit eaca892c4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,7 @@ const Thought: FC<IThoughtProps> = ({
const toolThoughtList = toolNames.map((toolName, index) => {
return {
name: toolName,
label: thought.tool_labels?.[toolName][language] ?? toolName,
label: thought.tool_labels?.toolName?.language ?? toolName,
input: getValue(thought.tool_input, isValueArray, index),
output: getValue(thought.observation, isValueArray, index),
isFinished,