chore: Format Rust code after merge
All checks were successful
Test / frontend-typecheck (pull_request) Successful in 59s
Test / frontend-tests (pull_request) Successful in 57s
Test / rust-fmt-check (pull_request) Successful in 2m13s
Test / rust-clippy (pull_request) Successful in 16m57s
Test / rust-tests (pull_request) Successful in 18m36s
All checks were successful
Test / frontend-typecheck (pull_request) Successful in 59s
Test / frontend-tests (pull_request) Successful in 57s
Test / rust-fmt-check (pull_request) Successful in 2m13s
Test / rust-clippy (pull_request) Successful in 16m57s
Test / rust-tests (pull_request) Successful in 18m36s
This commit is contained in:
parent
d83e8598e0
commit
e83dc19dcc
@ -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}");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user