feat(原生支持AI摘要功能): 使用一层API作为缓存而非直接请求AI,可以实现缓存/后端保密和预渲染

(cherry picked from commit 611a7d1d5dc7bc200d4390e29217ab8c8f76b0f0)
This commit is contained in:
anime
2024-12-23 03:01:35 +08:00
parent b70c0f4ee7
commit 5eb390bc38
6 changed files with 212 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ import SearchNav from './components/SearchNav'
import SideRight from './components/SideRight'
import CONFIG from './config'
import { Style } from './style'
import AISummary from '@/components/AISummary'
/**
* 基础布局 采用上中下布局,移动端使用顶部侧边导航栏
@@ -306,6 +307,7 @@ const LayoutSlug = props => {
<section
className='wow fadeInUp p-5 justify-center mx-auto'
data-wow-delay='.2s'>
<AISummary aiSummary={post.aiSummary}/>
<WWAds orientation='horizontal' className='w-full' />
{post && <NotionPage post={post} />}
<WWAds orientation='horizontal' className='w-full' />