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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user