From 6c81915ea0c6d590e64b3d9acea8d2aaab4f31cc Mon Sep 17 00:00:00 2001 From: Paul Arterburn Date: Wed, 25 Sep 2024 19:32:28 -0600 Subject: [PATCH] don't re-process AI entries --- app/views/entries/_entry.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/entries/_entry.html.haml b/app/views/entries/_entry.html.haml index 7fa8d583..dadaf659 100644 --- a/app/views/entries/_entry.html.haml +++ b/app/views/entries/_entry.html.haml @@ -14,7 +14,7 @@ - if current_user.can_ai? && !(entry.ai_waiting_for_ai_response || params[:ai] == "generating") %div{style: "width: 43px;"} .float-right.s-edit-entry - - if current_user.can_ai? && !(entry.ai_waiting_for_ai_response || params[:ai] == "generating") + - if current_user.can_ai? && !entry.body.include?("🤖 DabbleMeGPT:") && !(entry.ai_waiting_for_ai_response || params[:ai] == "generating") = link_to process_as_ai_path(entry), method: :post, style: "margin-right: 15px;", data: { confirm: "DabbleMeGPT employs AI preview technology that may produce unusual or incorrect responses. Your entry is not retained permanently or utilized for training any AI models." } do %span{rel: "tooltip", title: "Process with DabbleMeGPT", class: "s-process-ai"}> %i.fa.fa-magic>