Skip to content

Commit

Permalink
don't re-process AI entries
Browse files Browse the repository at this point in the history
  • Loading branch information
parterburn committed Sep 26, 2024
1 parent 39d61c2 commit 6c81915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/entries/_entry.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 6c81915

Please sign in to comment.