hexo/node_modules/hexo-ai-excerpt
浪子 48fea5d844 增加AI摘要 2024-05-09 16:35:20 +08:00
..
README.md 增加AI摘要 2024-05-09 16:35:20 +08:00
ai.js 增加AI摘要 2024-05-09 16:35:20 +08:00
index.js 增加AI摘要 2024-05-09 16:35:20 +08:00
package.json 增加AI摘要 2024-05-09 16:35:20 +08:00
strip.js 增加AI摘要 2024-05-09 16:35:20 +08:00

README.md

hexo-ai-excerpt

为您的hexo博客提供ai摘要

Typing SVG

npm i hexo-ai-excerpt

配置文件

aiexcerpt:
  default_enable: false
  custom: false
  api: 
  token: IZEDTwtrhWX23ayVl0Pl
  model: 
  prompt: '你是一个摘要生成工具你需要解释我发送给你的内容不要换行不要超过200字只需要介绍文章的内容不需要提出建议和缺少的东西。请用中文回答输出的内容开头为“ai: 这篇文章介绍了”'
  ignoreEl: [
    'table', 'pre', 'figure'
  ]
  max_token: 2000,

配置解析

配置 描述
default_enable 是否默认开启摘要
custom 是否自定义接口(默认使用tianliGPT)
api chatgpt接口地址
token api密钥
model gpt模型(默认为GPT3.5-turbo)
prompt 前置要求内容
ignoreEl 要排除的 content 内容
max_token 最大字符限制

API推荐

tianliGPT

晚安GPT

api2d