1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use serde::Deserialize;
use std::path::PathBuf;
#[derive(Clone, Debug, Deserialize)]
pub struct JSONConfig {
pub api_key_cohere: Option<String>,
pub api_key_openai: Option<String>,
pub api_key_eleven_labs: Option<String>
}
#[derive(Clone, Debug, Default)]
pub struct Config {
pub api_key_cohere: Option<String>,
pub api_key_openai: Option<String>,
pub api_key_eleven_labs: Option<String>,
pub dir: PathBuf
}
pub const DEFAULT_CONFIG_FILE: &str = r#"{
"api_key": "",
"api_key_cohere": "",
"api_key_openai": ""
}"#;