Skip to content

【TianliGPT】前端不显示,也并未提交数据 #2003

Answered by ChenyqThu
zhiqing0205 asked this question in Q&A
Discussion options

You must be logged in to vote

tianliGPT目前用不了,需要手动修改TianliGPT.js的代码,有2个问题:

  1. 执行:因为Next是静态博客,没有pjax,js中的触发逻辑不对,要修改一下
  2. 就算能跑,js中获取博文内容是通过 p 标签筛选的,Next博文页面组织方式不同,无法获取文章,最后只会发送标题和H标签给API总结,总结的内容完全不对。
    后来我换了一种方式,依赖第三方不如依赖自己,在博客Database增加 一列 AI Summary,用Notion AI总结或者kimi总结都行,总结完了将内容填入,然后渲染博文的时候同步获取 post.AISummary内容,展示到博客前端,这样可以自己选择总结平台,调整总结文本,速度也比请求API快很多,而且免费。
    参考:https://chenge.ink

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tangly1024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
3 participants
Converted from issue

This discussion was converted from issue #1874 on March 05, 2024 07:41.