Skip to content

Commit b4b6fcb

Browse files
committed
docs: clarify and update configuration key descriptions
- Remove comments describing available configuration keys - Update descriptions for configuration keys to be more precise and clear Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent a854bd7 commit b4b6fcb

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

cmd/config_list.go

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,30 @@ func init() {
1313
configCmd.AddCommand(configListCmd)
1414
}
1515

16-
// availableKeys is a list of available config keys
1716
// availableKeys is a map of configuration keys and their descriptions
1817
var availableKeys = map[string]string{
19-
"git.diff_unified": "Generate diffs with <n> lines of context, default is 3",
20-
"git.exclude_list": "Exclude file from git diff command",
21-
"git.template_file": "Template file for commit message",
22-
"git.template_string": "Template string for commit message",
23-
"openai.socks": "SOCKS proxy",
24-
"openai.api_key": "OpenAI API key",
25-
"openai.model": "OpenAI model",
26-
"openai.org_id": "OpenAI requesting organization",
27-
"openai.proxy": "HTTP proxy",
28-
"output.lang": "Summarizing language, defaults to English",
29-
"openai.base_url": "API base URL to use",
30-
"openai.timeout": "Request timeout",
31-
"openai.max_tokens": "Maximum number of tokens to generate in the chat completion",
32-
"openai.temperature": "Sampling temperature to use, between 0 and 2. Higher values like 0.8 make the output more random, while lower values like 0.2 make it more focused and deterministic",
33-
"openai.provider": "Service provider, supports 'openai' or 'azure'",
34-
"openai.skip_verify": "Skip verifying TLS certificate",
35-
"openai.headers": "Custom headers for OpenAI request",
36-
"openai.api_version": "OpenAI API version",
37-
"openai.top_p": "Nucleus sampling probability mass. For example, 0.1 means only the tokens comprising the top 10% probability mass are considered",
38-
"openai.frequency_penalty": "Penalty for new tokens based on their existing frequency in the text so far. Decreases the model's likelihood to repeat the same line verbatim",
39-
"openai.presence_penalty": "Penalty for new tokens based on whether they appear in the text so far. Increases the model's likelihood to talk about new topics",
40-
"prompt.folder": "Prompt template folder",
18+
"git.diff_unified": "Number of context lines in git diff output (default: 3)",
19+
"git.exclude_list": "Files to exclude from git diff command",
20+
"git.template_file": "Path to template file for commit messages",
21+
"git.template_string": "Template string for formatting commit messages",
22+
"openai.socks": "SOCKS proxy URL for API connections",
23+
"openai.api_key": "Authentication key for OpenAI API access",
24+
"openai.model": "AI model identifier to use for requests",
25+
"openai.org_id": "Organization ID for multi-org OpenAI accounts",
26+
"openai.proxy": "HTTP proxy URL for API connections",
27+
"output.lang": "Language for summarization output (default: English)",
28+
"openai.base_url": "Custom base URL for API requests",
29+
"openai.timeout": "Maximum duration to wait for API response",
30+
"openai.max_tokens": "Maximum token limit for generated completions",
31+
"openai.temperature": "Randomness control parameter (0-1): lower values for focused results, higher for creative variety",
32+
"openai.provider": "Service provider selection ('openai' or 'azure')",
33+
"openai.skip_verify": "Option to bypass TLS certificate verification",
34+
"openai.headers": "Additional custom HTTP headers for API requests",
35+
"openai.api_version": "Specific API version to target",
36+
"openai.top_p": "Nucleus sampling parameter: controls diversity by limiting to top percentage of probability mass",
37+
"openai.frequency_penalty": "Parameter to reduce repetition by penalizing tokens based on their frequency",
38+
"openai.presence_penalty": "Parameter to encourage topic diversity by penalizing previously used tokens",
39+
"prompt.folder": "Directory path for custom prompt templates",
4140
}
4241

4342
// configListCmd represents the command to list the configuration values.

0 commit comments

Comments
 (0)