Select thinking mode from the chat
This commit is contained in:
@@ -345,7 +345,7 @@ fn optional_string<T: ToString>(value: Option<T>) -> String {
|
||||
value.map_or_else(String::new, |value| value.to_string())
|
||||
}
|
||||
|
||||
fn update_runtime_config(runtime_config: &RwLock<Config>, config: &Config) {
|
||||
pub(super) fn update_runtime_config(runtime_config: &RwLock<Config>, config: &Config) {
|
||||
*runtime_config
|
||||
.write()
|
||||
.unwrap_or_else(|poisoned| poisoned.into_inner()) = config.clone();
|
||||
|
||||
Reference in New Issue
Block a user