diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-04-25 01:07:44 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-04-25 01:07:44 -0700 |
| commit | 71767853b0f65352b7418cc9a14f17acc5dbd9b8 (patch) | |
| tree | 4cc0e35d6a33790eafc9b12d06eae31aa6f2022a /site/src | |
| parent | 4b0998b4afa48f9e2968b1bb76ef42bc6a94e1b6 (diff) | |
add ai generated headline and content when source does not provides any
Diffstat (limited to 'site/src')
| -rw-r--r-- | site/src/components/NewsFeed.tsx | 7 |
1 files changed, 7 insertions, 0 deletions
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 && ( |
