mirror of
https://github.com/katanemo/plano.git
synced 2026-05-21 13:55:15 +02:00
Send back developer error correctly (#195)
This commit is contained in:
parent
28421353fd
commit
1719b7d5f8
3 changed files with 28 additions and 13 deletions
|
|
@ -316,10 +316,9 @@ impl HttpContext for StreamContext {
|
|||
let chat_completions_response: ChatCompletionsResponse =
|
||||
match serde_json::from_slice(&body) {
|
||||
Ok(de) => de,
|
||||
Err(e) => {
|
||||
Err(_e) => {
|
||||
debug!("invalid response: {}", String::from_utf8_lossy(&body));
|
||||
self.send_server_error(ServerError::Deserialization(e), None);
|
||||
return Action::Pause;
|
||||
return Action::Continue;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue