-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtab-commit-gpt-env.sample
More file actions
39 lines (28 loc) · 1.48 KB
/
tab-commit-gpt-env.sample
File metadata and controls
39 lines (28 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
# [REQUIRED]
# If OPENAI_API_KEY is already set in your environment, you can comment this line out.
OPENAI_API_KEY=sk-...
# [OPTIONAL ENVIRONMENT VARIABLES]
# These variables are optional and can be set to customize the behavior of the script.
# OPENAI_API_URL is the URL of the OpenAI API endpoint.
# export OPENAI_API_URL=https://api.openai.com/v1/chat/completions
# OPENAI_TEMPERATURE is a parameter that controls the randomness of text generated by large language models (LLMs).
# export OPENAI_TEMPERATURE=0.7
# OPENAI_MAX_TOKENS is the maximum number of tokens.
# export OPENAI_MAX_TOKENS=1024
# OPENAI_MODEL is the model to use for the OpenAI API.
# export OPENAI_MODEL=gpt-5.4
# TAB_COMMIT_LANGUAGE is the language to use for the commit message.
# export TAB_COMMIT_LANGUAGE=en
# TAB_COMMIT_SOFT_MAX_LENGTH is the soft maximum length of the commit message. (preferred)
# export TAB_COMMIT_SOFT_MAX_LENGTH=60
# TAB_COMMIT_HARD_MAX_LENGTH is the hard maximum length of the commit message. (required)
# export TAB_COMMIT_HARD_MAX_LENGTH=80
# TAB_COMMIT_TEMPLATE is the template for the commit message.
# export TAB_COMMIT_TEMPLATE="feat|fix|chore|refactor|test|style|docs|...: some message"
# TAB_COMMIT_INSTRUCTIONS is the instructions for generating the commit message.
# export TAB_COMMIT_INSTRUCTIONS="
# * Be clear, simple, and concise
# * remove articles if necessary
# * Do not include a period at the end of the sentence
# * MUST write *only* one-line commit message"