Improve search
This commit is contained in:
@@ -3406,6 +3406,7 @@ class ComposeDrafts(LoginRequiredMixin, View):
|
||||
transcript=transcript,
|
||||
),
|
||||
ai_obj,
|
||||
operation="compose_drafts",
|
||||
)
|
||||
parsed = _parse_draft_options(result)
|
||||
if parsed:
|
||||
@@ -3478,6 +3479,7 @@ class ComposeSummary(LoginRequiredMixin, View):
|
||||
transcript=transcript,
|
||||
),
|
||||
ai_obj,
|
||||
operation="compose_summary",
|
||||
)
|
||||
except Exception as exc:
|
||||
return JsonResponse({"ok": False, "error": str(exc)})
|
||||
@@ -3692,6 +3694,7 @@ class ComposeEngagePreview(LoginRequiredMixin, View):
|
||||
generated = async_to_sync(ai_runner.run_prompt)(
|
||||
_build_engage_prompt(owner_name, recipient_name, transcript),
|
||||
ai_obj,
|
||||
operation="compose_engage",
|
||||
)
|
||||
outbound = _plain_text(generated)
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user