Implement V2 AI functions and enhance progress handling

- Added support for new V2 functions: `auto_cluster_v2` and `generate_ideas_v2`, including backend logic and API endpoints.
- Updated model configuration to ensure V2 functions validate the presence of models before execution.
- Enhanced progress modal to provide better feedback during asynchronous tasks, including task IDs for debugging.
- Updated frontend components to integrate new V2 functionalities and improve user experience with clustering and idea generation.
This commit is contained in:
Desktop
2025-11-10 22:16:02 +05:00
parent 46f5bb4d62
commit e2f2d79d4c
12 changed files with 920 additions and 58 deletions

View File

@@ -144,6 +144,12 @@ const tableActionsConfigs: Record<string, TableActionsConfig> = {
icon: <BoltIcon className="w-4 h-4 text-warning-500" />,
variant: 'secondary',
},
{
key: 'keywords_clustering',
label: 'Keywords Clustering',
icon: <BoltIcon className="w-4 h-4 text-brand-500" />,
variant: 'secondary',
},
],
},
'/planner/clusters': {
@@ -160,6 +166,12 @@ const tableActionsConfigs: Record<string, TableActionsConfig> = {
icon: <BoltIcon className="w-5 h-5" />,
variant: 'primary',
},
{
key: 'generate_ideas_v2',
label: 'Generate Ideas V2',
icon: <BoltIcon className="w-5 h-5" />,
variant: 'primary',
},
],
bulkActions: [
{