Inline worklet source (#7128)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga
2026-02-10 23:32:20 +01:00
committed by GitHub
parent cc6af199c7
commit 426f8e0a07
4 changed files with 15 additions and 2 deletions
+2
View File
@@ -222,6 +222,8 @@ pub async fn transcribe_with_provider(
anyhow::bail!("Invalid API key");
} else if status == 429 || error_text.contains("quota") {
anyhow::bail!("Rate limit exceeded");
} else if error_text.contains("too short") {
return Ok(String::new());
} else {
anyhow::bail!("API error: {}", error_text);
}