Skip to content

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

License

Notifications You must be signed in to change notification settings

declan-haojin/hexo-auto-tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published