Skip to main content

into_legacy_embedding

Function into_legacy_embedding 

Source
pub fn into_legacy_embedding(err: &LlmBackendError) -> AppError
Expand description

Converts an LlmBackendError to a legacy AppError::Embedding(String) so call sites that still return the old shape keep compiling during the migration window. Once all call sites are migrated to return LlmBackendError directly, this helper can be deleted.