hexo-ai-summaries: enable: true aiSummaryApi: https://article-zhaiyao.youruilin.workers.dev/v1/chat/completions # 只在该日期后的文章上生成 摘要 按钮 generateAfterDate: 2024/05 # 文字数量限制 => String.length maxToken: 300 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 Japanese language. geminiConfig: model: gpt-4o temperature: 0.7 headers: true tagConfig: title: .post-title content: .post-content toc: .toc-content customHtml: htmlFile: source/Gemini/gemini.html styleFile: source/Gemini/gemini.css jsFile: source/Gemini/gemini.js
其中,原始文件生成在 public/hexo-ai-summaries 中,复制出来,其中 html 需要到插件文件夹中找到 html.tpl 文件,将其转换为 html 结构后复制出来,如上配置。