@@ -57,6 +57,7 @@ from .creation_agent import (
|
||||
is_restart_intent,
|
||||
multi_character_relation_needs_clarification,
|
||||
restore_gated_step_after_cancel,
|
||||
record_product_brief_review,
|
||||
get_video_gate_stage,
|
||||
set_video_gate_stage,
|
||||
sync_prompt_after_cast,
|
||||
@@ -2087,12 +2088,7 @@ class CreationConversationViewSet(TeamScopedViewSetMixin, ModelViewSet):
|
||||
force_creative_turn = True
|
||||
continuation_instruction = _plot_twist_depth_continuation(depth)
|
||||
elif payload.get("interaction") == "product_brief_review":
|
||||
memory = dict(conversation.memory or {})
|
||||
memory["product_brief_reviewed"] = True
|
||||
if text:
|
||||
memory["product_brief_note"] = text
|
||||
conversation.memory = memory
|
||||
conversation.save(update_fields=["memory", "updated_at"])
|
||||
record_product_brief_review(conversation, text)
|
||||
payload["answers"] = {
|
||||
"review_action": "supplement" if text else "continue",
|
||||
"product_brief_note": text,
|
||||
@@ -2715,12 +2711,7 @@ class CreationConversationViewSet(TeamScopedViewSetMixin, ModelViewSet):
|
||||
note = str(answers.get("product_brief_note") or "").strip()
|
||||
if action == "supplement" and not note:
|
||||
return JsonResponse({"detail": "请填写要补充的真实商品信息"}, status=400)
|
||||
memory = dict(conversation.memory or {})
|
||||
memory["product_brief_reviewed"] = True
|
||||
if note:
|
||||
memory["product_brief_note"] = note
|
||||
conversation.memory = memory
|
||||
conversation.save(update_fields=["memory", "updated_at"])
|
||||
record_product_brief_review(conversation, note)
|
||||
text = ""
|
||||
record_user_message = False
|
||||
force_creative_turn = True
|
||||
|
||||
Reference in New Issue
Block a user