Skip to content

Commit

Permalink
Another type script fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Jan 30, 2024
1 parent e5a7e88 commit e2454d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/Tool/structured.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ function validateParameters(
continue;
}
const toolInput = parameterModelsByName[inputKey];
if ("optional" in toolInput && toolInput.optional === true) {
if (toolInput && "optional" in toolInput && toolInput.optional === true) {
continue;
}
results.push(`Non optional parameter ${inputKey} was not found in inputs.`);
Expand Down

0 comments on commit e2454d3

Please sign in to comment.