Add special rendering for missing tools

This commit is contained in:
Alex Gleason committed 2025-12-08 15:41:34 -06:00
1 parent 73ccd7cb73
commit c03e630d66
1 file changed
+15
+15
View File
@@ -23,6 +23,7 @@ import {
Image,
AlertCircle,
LucideIcon,
Settings,
} from 'lucide-react';
import { cn } from '@/lib/utils';
import { VFSImage } from '@/components/VFSImage';
@@ -229,6 +230,20 @@ function getToolInfo(toolName: string, args: Record<string, unknown>): ToolInfo
callingTitle: args.prompt ? String(args.prompt) : 'Generating Image',
};
case 'view_available_models':
return {
icon: Eye,
title: 'Viewed Available Models',
callingTitle: 'Viewing Available Models',
};
case 'configure_image_generation':
return {
icon: Settings,
title: args.model ? `Configured image model: ${args.model}` : 'Configured Image Generation',
callingTitle: args.model ? `Configuring image model: ${args.model}` : 'Configuring Image Generation',
};
default: {
const formattedName = toolName.replace(/_/g, ' ').replace(/\b\w/g, l => l.toUpperCase());
return {