Skip to content

Commit

Permalink
disable ': keep-alive' messages in streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Nov 6, 2024
1 parent 2e5cec1 commit 948c235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llgtrt/src/routes/completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ async fn completions_stream(
yield Event::default().data("[DONE]");
};

Ok(Sse::new(response_stream).keep_alive(KeepAlive::default()))
Ok(Sse::new(response_stream))
}

async fn completions(mut client: ReqInfo) -> Result<Json<Value>, AppError> {
Expand Down

0 comments on commit 948c235

Please sign in to comment.