feat: add image attachment support with PII detection #27

Merged
sarman merged 5 commits from feat/image-attachments into master 2026-04-09 02:22:54 +00:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit e83dc19dcc - Show all commits

View File

@ -149,7 +149,10 @@ impl OpenAiProvider {
if !resp.status().is_success() {
let status = resp.status();
let text = resp.text().await.unwrap_or_else(|_| "unable to read response body".to_string());
let text = resp
.text()
.await
.unwrap_or_else(|_| "unable to read response body".to_string());
tracing::error!(url = %url, status = %status, response = %text, "OpenAI API error response");
anyhow::bail!("OpenAI API error {status}: {text}");
}