worlds simplest logging to see where things are blocked (#3888)

Co-authored-by: Michael Neale <michael.neale@gmail.com>
This commit is contained in:
Alex Hancock
2025-09-04 13:51:02 -04:00
committed by GitHub
parent 36bc3afe0b
commit 9da33504d1
7 changed files with 205 additions and 50 deletions
+6
View File
@@ -341,6 +341,12 @@ impl<'a> ApiRequestBuilder<'a> {
}
pub async fn response_post(self, payload: &Value) -> Result<Response> {
// Log the JSON payload being sent to the LLM
tracing::debug!(
"LLM_REQUEST: {}",
serde_json::to_string(payload).unwrap_or_else(|_| "{}".to_string())
);
let request = self.send_request(|url, client| client.post(url)).await?;
Ok(request.json(payload).send().await?)
}