Typecho 使用 ChatGPT 为博客自动生成简介/摘要

安装插件

idealclover/AISummary-Typecho 安装插件就不多说了,就丢到插件目录里,重命名

设置插件

提升词

我所用的提升词如下: 你的任务是生成文章的摘要。请你根据以下文章内容生成 100 字内的摘要,內容尽量针对 seo 优化,请不要带有链接,除了你生成的摘要内容,请不要输出其他任何无关内容。

模型

一般来说gpt-3.5-turbo-16k够用了,或者 gpt4 也行

CSS

.aisummary {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.aisummary p {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.aisummary a {
  color: #007bff;
  text-decoration: none;
}

.aisummary a:hover {
  text-decoration: underline;
}

自动同步到简介

<script>window.addEventListener("load",(function(){var t=document.getElementById("ai"),e=document.querySelector('meta[name="description"]');t&&e&&e.setAttribute("content",t.textContent)}));</script>

`测试过 google 可用,bing 未知,至少我的没有成功


推荐:ColoCrossing 美国 VPS 1C1G 年付$10.99 USD 支持支付宝/PayPal 常规 VPS 套餐使用优惠码 CNY5824 循环 58%折扣 1C1G 折后月付$1.66 USD

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理