Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【添加自定义Html代码】允许用户使用自建AI摘要(类似Tianli AI) #2563

Open
wuyuhanzijin opened this issue Jul 2, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@wuyuhanzijin
Copy link

为什么提出这个新的特性改动
张洪的AI摘要需要付费,而目前存在可以自己搭建相同功能的方案

描述一下你推荐的解决方案
允许用户在每个页面添加HTML代码
需要添加下面的代码

<!-- 可以在网页结构的任何位置插入,只要你能够 -->
<script src="你新建的js文件"></script>

<!-- 但要确保的是,下列代码一定要在上述 js 之后插入 -->
<script data-pjax defer>
  new ChucklePostAI({
    // 文章内容所在的元素属性的选择器,也是AI挂载的容器,AI将会挂载到该容器的最前面
    el: '#post>#article-container',
    summary_directly: true,
    rec_method: 'web',
    // 若网站开启了 PJAX, 则开启
    pjax: true,
  })
</script>

描述一下你考虑过的其它替代解决方案
暂时没有找到源代码中关于文章添加HTML的内容

补充说明
搭建AI摘要参照 https://bbs.chuanliu.org/d/33-gei-bo-ke-tian-jia-yi-ge-ai-zhai-yao

@wuyuhanzijin wuyuhanzijin added the enhancement New feature or request label Jul 2, 2024
@BKDragon
Copy link

BKDragon commented Jul 4, 2024

这个不是使用 notion AI 可以直接实现吗?

@wuyuhanzijin
Copy link
Author

但是我不想要用NoTion AI,因为我自己搭建了一个摘要机器人

@tangly1024 tangly1024 changed the title 允许用户使用自建AI摘要(类似Tianli AI) 【添加自定义Html代码】允许用户使用自建AI摘要(类似Tianli AI) Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants