Do not double encode request bodies in logging (#6558)

This commit is contained in:
pakrym-oai
2025-11-12 13:28:42 -08:00
committed by GitHub
parent ec69a4a810
commit 2f58e69997
2 changed files with 3 additions and 4 deletions

View File

@@ -338,7 +338,7 @@ pub(crate) async fn stream_chat_completions(
debug!(
"POST to {}: {}",
provider.get_full_url(&None),
serde_json::to_string_pretty(&payload).unwrap_or_default()
payload.to_string()
);
let mut attempt = 0;