docstring

This commit is contained in:
OlivierDehaene 2023-01-30 12:36:04 +01:00
parent 42cdb734a5
commit 5ef1336997
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ impl Infer {
// MPSC channel to communicate with the background batching task
let (response_tx, response_rx) = mpsc::unbounded_channel();
// Try to append the request to the database
// Append the request to the database
self.db.append(Entry {
request: validated_request,
response_tx,

View File

@ -174,7 +174,7 @@ async fn generate_stream(
yield Ok(Event::default().json_data(stream_token).unwrap())
}
// End is used for timings metadata and logging
// Yield event for last token and compute timings
InferStreamResponse::End {
token,
generated_text,