mirror of
https://github.com/katanemo/plano.git
synced 2026-06-29 15:49:40 +02:00
remove metadata and remove content-length after request mutation
This commit is contained in:
parent
6ba7140f62
commit
4c1e352bc9
2 changed files with 58 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue