remove metadata and remove content-length after request mutation

This commit is contained in:
Adil Hafeez 2025-06-26 22:16:05 -07:00
parent 6ba7140f62
commit 4c1e352bc9
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
2 changed files with 58 additions and 3 deletions

View file

@ -569,7 +569,11 @@ impl HttpContext for StreamContext {
match SseChatCompletionIter::try_from((body.as_slice(), &hermes_llm_provider)) {
Ok(events) => events,
Err(e) => {
warn!("could not parse response: {}", e);
warn!(
"could not parse response: {}, body str: {}",
e,
String::from_utf8_lossy(&body)
);
return Action::Continue;
}
};
@ -614,7 +618,11 @@ impl HttpContext for StreamContext {
match ChatCompletionsResponse::try_from((body.as_slice(), &hermes_llm_provider)) {
Ok(de) => de,
Err(e) => {
warn!("could not parse response: {}", e);
warn!(
"could not parse response: {}, body str: {}",
e,
String::from_utf8_lossy(&body)
);
debug!(
"on_http_response_body: S[{}], response body: {}",
self.context_id,