Skip to content

hexo使用ai为您的文章生成摘要

Notifications You must be signed in to change notification settings

rootlexme/hexo-ai-excerpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-ai-excerpt

为您的hexo博客提供ai摘要

Typing SVG

npm i hexo-ai-excerpt

Node >= 18

配置文件

aiexcerpt:
  default_enable: false
  custom: false
  api: 
  token: 
  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推荐

api2d