chore: removed anyhow from apperror for improved error handling

This commit is contained in:
Per Stark
2026-05-27 13:33:02 +02:00
parent 890a4b381d
commit 31d585b59f
7 changed files with 36 additions and 25 deletions
+1 -1
View File
@@ -311,7 +311,7 @@ pub async fn generate_embedding_with_provider(
provider: &EmbeddingProvider,
input: &str,
) -> Result<Vec<f32>, AppError> {
provider.embed(input).await.map_err(AppError::from)
provider.embed(input).await.map_err(|e| AppError::InternalError(e.to_string()))
}
/// Generates an embedding vector for the given input text using `OpenAI`'s embedding model.