1.3.3 • Published 7 months ago

hexo-gpt-tag v1.3.3

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

hexo-gpt-tag

Automatically generate article tags with GPT 中文文档

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
    max_tokens: 2048 # (Optional) The maximum number of blog tokens used to send to gpt
    model: gpt-4o-mini, # The gpt model to use
    base_url: "https://api.openai.com/v1" # (Optional) OpenAI API base URL
    prompt: "<YOUR_OWN_PROMPT>" # (Optional) Prompt to generate tags for post.

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.

  1. Tags will not be regenerated if blog post is not changed. Remove ./.cache folder and generate your site if you want to regenerate tags even if blog post is not changed.
1.3.3

7 months ago

1.3.2

7 months ago

1.3.1

7 months ago

1.3.0

7 months ago

1.2.0

9 months ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.8

2 years ago

1.2.1

9 months ago

1.1.2

9 months ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago