From 352aa432ffccf91dd4babb5d12f975478f7c6635 Mon Sep 17 00:00:00 2001 From: Leo Kacenjar Date: Wed, 3 Sep 2025 07:31:43 -0600 Subject: [PATCH] Hide llm author for inferences without one. --- app/views/documents/_recommendation_list.html.erb | 2 +- app/views/documents/_summary.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/documents/_recommendation_list.html.erb b/app/views/documents/_recommendation_list.html.erb index 1fd187d1..87c668ad 100644 --- a/app/views/documents/_recommendation_list.html.erb +++ b/app/views/documents/_recommendation_list.html.erb @@ -25,7 +25,7 @@
"><%= exception.inference_reason %>
<% end %> - <% if exceptions.present? %> + <% if exceptions.present? && exceptions.first.inference_model_name.present? %>
Generated by <%= exceptions.first.inference_model_name %>
<% end %> diff --git a/app/views/documents/_summary.html.erb b/app/views/documents/_summary.html.erb index a717ef82..f2cb0a64 100644 --- a/app/views/documents/_summary.html.erb +++ b/app/views/documents/_summary.html.erb @@ -12,7 +12,7 @@ Summarizing... <% end %> - <% if summary_inference.present? %> + <% if summary_inference.present? && summary_inference.inference_model_name.present? %>
Generated by <%= summary_inference.inference_model_name %>
<% end %>