We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.toLowerCase()
1 parent 5da7766 commit bdc2fd3Copy full SHA for bdc2fd3
‎client/src/components/Chat/Messages/Content/ToolCall.tsx
@@ -33,7 +33,8 @@ export default function ToolCall({
33
34
const [function_name, _domain] = name.split(actionDelimiter) as [string, string | undefined];
35
const domain = _domain?.replaceAll(actionDomainSeparator, '.') ?? null;
36
- const error = output?.toLowerCase()?.includes('error processing tool');
+ const error =
37
+ typeof output === 'string' && output.toLowerCase().includes('error processing tool');
38
39
const args = useMemo(() => {
40
if (typeof _args === 'string') {
0 commit comments