mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Add special rendering for missing tools
This commit is contained in:
1 file changed
+15
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user