From 71767853b0f65352b7418cc9a14f17acc5dbd9b8 Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Fri, 25 Apr 2025 01:07:44 -0700
Subject: add ai generated headline and content when source does not provides
 any

---
 site/src/components/NewsFeed.tsx | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'site/src/components/NewsFeed.tsx')

diff --git a/site/src/components/NewsFeed.tsx b/site/src/components/NewsFeed.tsx
index 0151975..3e6f6b9 100644
--- a/site/src/components/NewsFeed.tsx
+++ b/site/src/components/NewsFeed.tsx
@@ -16,6 +16,7 @@ export interface NewsData {
   }>;
   en_headline: string | null;
   en_content: string | null;
+  is_ai_summary: boolean | null;
 }
 
 interface NewsFeedProps {
@@ -102,6 +103,12 @@ export const NewsFeed: React.FC<NewsFeedProps> = ({ newsItems }) => {
                 </button>
               )}
             </div>
+            {/* AI Disclaimer */}
+            {news.is_ai_summary && (
+              <div className={`${isMoe ? "bg-pink-200 text-pink-800" : "bg-gray-800 text-white"} px-3 py-1 text-xs text-center`}>
+              The information above is summarized by AI / 上記の情報はAIによって生成されました。
+              </div>
+            )}
 
             {/* Images */}
             {news.images.length > 0 && (
-- 
cgit v1.2.3

