Add Generate Image Prompts Functionality: Implement new AI function for generating image prompts, update API endpoints, and integrate with frontend actions for content management.

This commit is contained in:
IGNY8 VPS (Salman)
2025-11-11 17:40:08 +00:00
parent f4d62448cf
commit fa696064e2
9 changed files with 333 additions and 16 deletions

View File

@@ -952,6 +952,13 @@ export async function autoGenerateImages(taskIds: number[]): Promise<{ success:
}
}
export async function generateImagePrompts(contentIds: number[]): Promise<any> {
return fetchAPI('/v1/writer/content/generate_image_prompts/', {
method: 'POST',
body: JSON.stringify({ ids: contentIds }),
});
}
// TaskImages API functions
export interface TaskImage {
id: number;