File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/llm/src/protocols/openai/completions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ impl DeltaAggregator {
141141 created : aggregator. created ,
142142 usage : aggregator. usage ,
143143 model : aggregator. model ,
144- object : "completion " . to_string ( ) ,
144+ object : "text_completion " . to_string ( ) ,
145145 system_fingerprint : aggregator. system_fingerprint ,
146146 choices,
147147 } )
@@ -201,7 +201,7 @@ mod tests {
201201 finish_reason,
202202 logprobs: None ,
203203 } ] ,
204- object : "completion " . to_string ( ) ,
204+ object : "text_completion " . to_string ( ) ,
205205 } ) ,
206206 id : Some ( "test_id" . to_string ( ) ) ,
207207 event : None ,
@@ -310,7 +310,7 @@ mod tests {
310310 logprobs: None ,
311311 } ,
312312 ] ,
313- object : "completion " . to_string ( ) ,
313+ object : "text_completion " . to_string ( ) ,
314314 } ) ,
315315 id : Some ( "test_id" . to_string ( ) ) ,
316316 event : None ,
You can’t perform that action at this time.
0 commit comments