1 file changed
+2
-8
src-tauri/src/chat/mod.rs
+2
-8
@@ -182,10 +182,7 @@ pub(crate) fn config_for_model_id(id: &str) -> Option<GgufModelConfig> {
182
/// platform default if the selection is somehow unknown).
183
#[cfg(any(target_os = "macos", target_os = "ios", target_os = "android"))]
184
pub(crate) fn model_config() -> GgufModelConfig {
185
- let id = SELECTED_MODEL
186
- .lock()
187
- .map(|g| g.clone())
188
- .unwrap_or_default();
185
+ let id = SELECTED_MODEL.lock().map(|g| g.clone()).unwrap_or_default();
186
config_for_model_id(&id).unwrap_or_else(siti_default_config)
187
}
188
@@ -198,10 +195,7 @@ pub(crate) fn model_config() -> GgufModelConfig {
195
/// a budget yields empty replies.
196
#[cfg(any(target_os = "macos", target_os = "ios", target_os = "android"))]
197
pub(crate) fn sampling_config() -> SamplingConfig {
201
- let id = SELECTED_MODEL
202
- .lock()
203
- .map(|g| g.clone())
204
- .unwrap_or_default();
198
+ let id = SELECTED_MODEL.lock().map(|g| g.clone()).unwrap_or_default();
199
let is_qwen3 = id.contains("Qwen3") || id.contains("Qwen_Qwen3");
200
let mobile = cfg!(any(target_os = "ios", target_os = "android"));
201