mirror of
https://github.com/perstarkse/minne.git
synced 2026-11-21 22:21:31 +01:00
fix: leaner error handling by boxing large variants
This commit is contained in:
1 parent
4e20da538d
commit
ac0d34bfbd
12 files changed
+238
-83
No files matched your search
@@ -233,8 +233,7 @@ fn plan_embedding_settings_update(
|
||||
.as_deref()
|
||||
.map(str::trim)
|
||||
.filter(|value| !value.is_empty())
|
||||
.map(ToOwned::to_owned)
|
||||
.unwrap_or_else(|| current.embedding_model.clone());
|
||||
.map_or_else(|| current.embedding_model.clone(), ToOwned::to_owned);
|
||||
|
||||
if !is_valid_fastembed_model_code(&embedding_model) {
|
||||
return Err(AppError::Validation(format!(
|
||||
|
||||
Reference in new issue
Block a user