Hexo Auto Tag Save Abandoned

Automatically tag your Hexo posts with GPT-3|使用GPT-3自动为Hexo文章添加标签

Project README

hexo-auto-tag

npm version

Automatically assigns relevant predefined tags to your posts based on their content with the power of GPT-3.

使用 GPT-3 的强大功能,根据文章内容自动为您的文章分配相关的预定义标签。 中文文档

Installation

npm install hexo-auto-tag

Usage

  1. Add the following to your Hexo site's _config.yml file:
auto_tag:
  enable: true
  apiKey: <YOUR OPENAI API KEY>
  threshold: 0.23 # range: 0-1, 0.23 has been tested to be a good value. Lower values tend to result in fewer tags being assigned to a post.
  tags:
    - tag1
    - tag2
    - tag3

You can get your API key from here. It may require a paid plan to use the API. However, the cost is extremely low with less than $0.1 to assign 50 tags to 200 posts.

  1. Run the following command when ready to generate your site:
hexo clean && hexo generate

Make sure to run BOTH hexo clean and hexo generate.

Note

This plugin is still in early development. Please report any issues here.

Open Source Agenda is not affiliated with "Hexo Auto Tag" Project. README Source: declan-haojin/hexo-auto-tag
Stars
30
Open Issues
0
Last Commit
1 year ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating