hexo-gpt-tag

1.1.1 • Public • Published

hexo-gpt-tag

Automatically generate article tags with GPT-3.5 or GPT-4 中文文档

Installation

npm install hexo-gpt-tag

Usage

  1. Add the following to your Hexo site's _config.yml file:
gpt_tag:
  enable: true
  apiKey: <YOUR OPENAI API KEY>
  override: true # whether to override existing tags
  max_tags: 5 # Generate at most how many tags
  model: gpt-4 # gpt-3.5-turbo, gpt-3.5-turbo-16k, gpt-4, gpt-4-32k

You can get your API key from here. It may require a paid plan to use the API.

  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.

Package Sidebar

Install

npm i hexo-gpt-tag

Weekly Downloads

2

Version

1.1.1

License

ISC

Unpacked Size

9.25 kB

Total Files

9

Last publish

Collaborators

  • logictan