Updated iamge prompt flow adn frotnend backend
This commit is contained in:
@@ -151,9 +151,9 @@ class GenerateImagePromptsFunction(BaseAIFunction):
|
||||
prompts_created = 0
|
||||
|
||||
with transaction.atomic():
|
||||
# Save featured image prompt
|
||||
# Save featured image prompt - use content instead of task
|
||||
Images.objects.update_or_create(
|
||||
task=content.task,
|
||||
content=content,
|
||||
image_type='featured',
|
||||
defaults={
|
||||
'prompt': parsed['featured_prompt'],
|
||||
@@ -171,7 +171,7 @@ class GenerateImagePromptsFunction(BaseAIFunction):
|
||||
heading = h2_headings[idx] if idx < len(h2_headings) else f"Section {idx + 1}"
|
||||
|
||||
Images.objects.update_or_create(
|
||||
task=content.task,
|
||||
content=content,
|
||||
image_type='in_article',
|
||||
position=idx + 1,
|
||||
defaults={
|
||||
|
||||
Reference in New Issue
Block a user