You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: refactor prompt folder handling and update its configuration key (#228)
- Add detailed comments to the `initConfig` function to describe its steps and purpose
- Replace existing logic for handling the prompt folder with a switch-case structure
- Add `prompt.folder` configuration key to the list of available keys
- Add `prompt.folder` flag to `configSetCmd`
- Update the configuration key `prompt_folder` to `prompt.folder` in `helper.go`
- Enhance `prompt.go` to display the prompt folder path and improve confirmation prompt message
Signed-off-by: appleboy <[email protected]>
Copy file name to clipboardExpand all lines: cmd/config_list.go
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ var availableKeys = map[string]string{
36
36
"openai.top_p": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.",
37
37
"openai.frequency_penalty": "Number between 0.0 and 1.0 that penalizes new tokens based on their existing frequency in the text so far. Decreases the model's likelihood to repeat the same line verbatim.",
38
38
"openai.presence_penalty": "Number between 0.0 and 1.0 that penalizes new tokens based on whether they appear in the text so far. Increases the model's likelihood to talk about new topics.",
39
+
"prompt.folder": "prompt template folder",
39
40
}
40
41
41
42
// configListCmd represents the command to list the configuration values.
0 commit comments