diff options
| author | sigoden <sigoden@gmail.com> | 2023-10-31 17:34:16 +0800 |
|---|---|---|
| committer | sigoden <sigoden@gmail.com> | 2023-10-31 17:34:16 +0800 |
| commit | bd3fc8e657777e58976aa06756ccc0a151bd0ea3 (patch) | |
| tree | 3fc99e8c90341072ce99c5589203f782ccc3ace3 /src | |
| parent | a137483b03191d169e62f2049fcbdaace0821d6c (diff) | |
| download | aichat-bd3fc8e657777e58976aa06756ccc0a151bd0ea3.tar.gz | |
chore: refactor config description
Diffstat (limited to 'src')
| -rw-r--r-- | src/config/mod.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index a6ac9dc..c05d2e9 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -54,24 +54,24 @@ const SET_COMPLETIONS: [&str; 7] = [ pub struct Config { /// LLM model pub model: Option<String>, - /// What sampling temperature to use, between 0 and 2 + /// GPT temperature, between 0 and 2 #[serde(rename(serialize = "temperature", deserialize = "temperature"))] pub default_temperature: Option<f64>, - /// Whether to persistently save non-session chat messages + /// Whether to save the message pub save: bool, /// Whether to disable highlight pub highlight: bool, /// Used only for debugging pub dry_run: bool, - /// If set true, use light theme + /// Whether to use a light theme pub light_theme: bool, - /// Specify the text-wrapping mode (no*, auto, <max-width>) + /// Specify the text-wrapping mode (*no*, auto, <max-width>) pub wrap: Option<String>, /// Whether wrap code block pub wrap_code: bool, /// Automatically copy the last output to the clipboard pub auto_copy: bool, - /// REPL keybindings, possible values: emacs (default), vi + /// REPL keybindings. values: emacs, vi pub keybindings: Keybindings, /// Setup AIs pub clients: Vec<ClientConfig>, @@ -741,6 +741,9 @@ fn create_config_file(config_path: &Path) -> Result<()> { let perms = std::fs::Permissions::from_mode(0o600); std::fs::set_permissions(config_path, perms)?; } + + println!("✨ Saved config file to {}\n", config_path.display()); + Ok(()) } |
