summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index c42b11b..c99a6ef 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -1,4 +1,7 @@
-use std::{fs::read_to_string, path::Path};
+use std::{
+ fs::read_to_string,
+ path::{Path, PathBuf},
+};
use anyhow::{anyhow, Result};
use serde::Deserialize;
@@ -9,6 +12,8 @@ pub struct Config {
pub api_key: String,
/// What sampling temperature to use, between 0 and 2
pub temperature: Option<f64>,
+ /// Specify a file path to save chat messages to
+ pub save_path: Option<PathBuf>,
/// Set proxy
pub proxy: Option<String>,
/// Used only for debugging