bug fix - allow image content to pass through (#539)

fixes https://github.com/katanemo/archgw/issues/535
This commit is contained in:
Adil Hafeez 2025-07-25 01:22:06 -07:00 committed by GitHub
parent 92a425facd
commit 04c7e5a175
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 69 additions and 0 deletions

View file

@ -32,6 +32,8 @@ pub async fn chat_completions(
let chat_request_bytes = request.collect().await?.to_bytes();
debug!("Received request body (raw utf8): {}", String::from_utf8_lossy(&chat_request_bytes));
let chat_request_parsed = serde_json::from_slice::<serde_json::Value>(&chat_request_bytes)
.inspect_err(|err| {
warn!(