use std::path::PathBuf;
#[derive(Debug, Clone)]
pub struct SmartRenameConfig {
pub model_path: PathBuf,
pub max_tokens: u16,
pub threads: usize,
pub force_cpu: bool,
pub temperature: f64,
pub stop_sequences: Vec<String>,
pub small_method_threshold: usize,
pub max_phases_in_prompt: usize,
pub max_name_length: usize,
}
impl Default for SmartRenameConfig {
fn default() -> Self {
Self {
model_path: PathBuf::new(),
max_tokens: 20,
threads: 0,
force_cpu: false,
temperature: 0.0,
stop_sequences: vec![
"(".to_string(),
"{".to_string(),
";".to_string(),
" ".to_string(),
"\n".to_string(),
")".to_string(),
":".to_string(),
],
small_method_threshold: 20,
max_phases_in_prompt: 6,
max_name_length: 64,
}
}
}