Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion model_gateway/src/routers/http/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use axum::{
response::{IntoResponse, Response},
Json,
};
use bytes::Bytes;
use futures_util::{stream, StreamExt};
use openai_protocol::{
chat::ChatCompletionRequest,
Expand Down Expand Up @@ -851,7 +852,7 @@ impl Router {
// is slow, the upstream relay awaits on `send` rather than piling
// chunks in memory.
const STREAM_RELAY_BUFFER: usize = 32;
let (tx, rx) = mpsc::channel::<Result<bytes::Bytes, String>>(STREAM_RELAY_BUFFER);
let (tx, rx) = mpsc::channel::<Result<Bytes, String>>(STREAM_RELAY_BUFFER);
// Attribute worker-level and router-level outcomes to the actual
// stream completion from inside the relay task: a mid-stream error
// after a 2xx header, or a non-streaming 5xx header returned under
Expand Down
Loading