0.10.0 • Published 4 months ago

hexo-ai-summaries v0.10.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

AI 生成文章摘要,支持自定义模板

CI status NPM version NPM downloads

📦 Install

pnpm add hexo-ai-summaries

🔨 Usage

hexo/_config.yml 中配置 hexo-ai-summaries

hexo-ai-summaries:
  enable: true
  # only work after this date
  generateAfterDate: 2024/05
  aiSummaryApi: https://<cloudflare workers url>.workers.dev/v1/chat/completions
  maxToken: 30000
  prompt:
    You are a highly skilled AI trained in language comprehension and summarization. I would like you to read the text delimited by triple quotes and summarize it into a concise abstract paragraph. Aim to retain the most important points, providing a coherent and readable summary that could help a person understand the main points of the discussion without needing to read the entire text. Please avoid unnecessary details or tangential points.
    Only give me the output and nothing else. Do not wrap responses in quotes. Respond in the Chinese language.
  geminiConfig:
    model: gpt-4o
    temperature: 0.7
    headers: false
  tagConfig:
    title: .post-title
    content: .post-content
    toc: .toc-content
  
  # you can customize the html, js, css file, and then plugin just only insert this file to your post
  # you can check the result in `hexo/public/posts` folder  
  # and generated file in `hexo/public/hexo-ai-summaries/`
  customHtml:
    htmlFile: /Gemini/gemini.html
    jsFile: /Gemini/gemini.js
    styleFile: /Gemini/gemini.css

in your post front-matter, add ai-summaries: false to disable ai-summaries;

title: xxx
date: xxx
categories: xxx
cover: xxx
# add this line to disable ai-summaries
ai-summaries: false

ai-summaries 使用文档

0.10.0

4 months ago

0.9.0

5 months ago

0.8.0

5 months ago

0.7.0

5 months ago

0.5.1

12 months ago

0.5.0

12 months ago

0.4.0

12 months ago

0.3.0

12 months ago

0.2.0

12 months ago

0.1.0

12 months ago