Skip to content

Commit a48ffc5

Browse files
authored
[fix] OpenAI API object: completion to text_completion (NVIDIA#318)
1 parent 5f14e46 commit a48ffc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/llm/src/protocols/openai/completions/aggregator.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)