@@ -202,15 +202,15 @@ impl
202202 let response = NvCreateChatCompletionStreamResponse {
203203 inner,
204204 } ;
205- yield Annotated { id: Some ( id. to_string( ) ) , data: Some ( response) , event: None , chunk_tokens : None , input_tokens : None , output_tokens : None , comment: None } ;
205+ yield Annotated { id: Some ( id. to_string( ) ) , data: Some ( response) , event: None , comment: None } ;
206206 id += 1 ;
207207 }
208208
209209 let inner = deltas. create_choice( 0 , None , Some ( async_openai:: types:: FinishReason :: Stop ) , None ) ;
210210 let response = NvCreateChatCompletionStreamResponse {
211211 inner,
212212 } ;
213- yield Annotated { id: Some ( id. to_string( ) ) , data: Some ( response) , event: None , chunk_tokens : None , input_tokens : None , output_tokens : None , comment: None } ;
213+ yield Annotated { id: Some ( id. to_string( ) ) , data: Some ( response) , event: None , comment: None } ;
214214 } ;
215215
216216 Ok ( ResponseStream :: new ( Box :: pin ( output) , ctx) )
@@ -234,11 +234,11 @@ impl AsyncEngine<SingleIn<CompletionRequest>, ManyOut<Annotated<CompletionRespon
234234 for c in chars_string. chars( ) {
235235 tokio:: time:: sleep( * TOKEN_ECHO_DELAY ) . await ;
236236 let response = deltas. create_choice( 0 , Some ( c. to_string( ) ) , None ) ;
237- yield Annotated { id: Some ( id. to_string( ) ) , data: Some ( response) , event: None , chunk_tokens : None , input_tokens : None , output_tokens : None , comment: None } ;
237+ yield Annotated { id: Some ( id. to_string( ) ) , data: Some ( response) , event: None , comment: None } ;
238238 id += 1 ;
239239 }
240240 let response = deltas. create_choice( 0 , None , Some ( "stop" . to_string( ) ) ) ;
241- yield Annotated { id: Some ( id. to_string( ) ) , data: Some ( response) , event: None , chunk_tokens : None , input_tokens : None , output_tokens : None , comment: None } ;
241+ yield Annotated { id: Some ( id. to_string( ) ) , data: Some ( response) , event: None , comment: None } ;
242242
243243 } ;
244244
0 commit comments