pub struct CommitConfig {Show 22 fields
pub api_base_url: String,
pub api_key: Option<String>,
pub request_timeout_secs: u64,
pub connect_timeout_secs: u64,
pub compose_max_rounds: usize,
pub summary_guideline: usize,
pub summary_soft_limit: usize,
pub summary_hard_limit: usize,
pub max_retries: u32,
pub initial_backoff_ms: u64,
pub max_diff_length: usize,
pub wide_change_threshold: f32,
pub temperature: f32,
pub analysis_model: String,
pub summary_model: String,
pub excluded_files: Vec<String>,
pub low_priority_extensions: Vec<String>,
pub analysis_prompt_variant: String,
pub summary_prompt_variant: String,
pub exclude_old_message: bool,
pub analysis_prompt: String,
pub summary_prompt: String,
}Fields§
§api_base_url: String§api_key: Option<String>Optional API key for authentication (overridden by LLM_GIT_API_KEY env
var)
request_timeout_secs: u64HTTP request timeout in seconds
connect_timeout_secs: u64HTTP connection timeout in seconds
compose_max_rounds: usizeMaximum rounds for compose mode multi-commit generation
summary_guideline: usize§summary_soft_limit: usize§summary_hard_limit: usize§max_retries: u32§initial_backoff_ms: u64§max_diff_length: usize§wide_change_threshold: f32§temperature: f32§analysis_model: String§summary_model: String§excluded_files: Vec<String>§low_priority_extensions: Vec<String>§analysis_prompt_variant: StringPrompt variant for analysis phase (e.g., “default”)
summary_prompt_variant: StringPrompt variant for summary phase (e.g., “default”)
exclude_old_message: boolExclude old commit message from context in commit mode (rewrite mode uses this)
analysis_prompt: StringLoaded analysis prompt (not in config file)
summary_prompt: StringLoaded summary prompt (not in config file)
Implementations§
Source§impl CommitConfig
impl CommitConfig
Sourcepub fn load() -> Result<Self>
pub fn load() -> Result<Self>
Load config from default location (~/.config/llm-git/config.toml) Falls back to Default if file doesn’t exist or can’t determine home directory Environment variables override config file values:
LLM_GIT_API_URLoverridesapi_base_urlLLM_GIT_API_KEYoverridesapi_key
Sourcepub fn default_config_path() -> Result<PathBuf>
pub fn default_config_path() -> Result<PathBuf>
Get default config path (platform-safe) Tries HOME (Unix/Linux/macOS) then USERPROFILE (Windows)
Trait Implementations§
Source§impl Clone for CommitConfig
impl Clone for CommitConfig
Source§fn clone(&self) -> CommitConfig
fn clone(&self) -> CommitConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CommitConfig
impl Debug for CommitConfig
Source§impl Default for CommitConfig
impl Default for CommitConfig
Source§impl<'de> Deserialize<'de> for CommitConfigwhere
CommitConfig: Default,
impl<'de> Deserialize<'de> for CommitConfigwhere
CommitConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for CommitConfig
impl RefUnwindSafe for CommitConfig
impl Send for CommitConfig
impl Sync for CommitConfig
impl Unpin for CommitConfig
impl UnwindSafe for CommitConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more