Commit a48ffc52 authored by Alec's avatar Alec Committed by GitHub
Browse files

[fix] OpenAI API object: completion to text_completion (#318)

parent 5f14e467
......@@ -141,7 +141,7 @@ impl DeltaAggregator {
created: aggregator.created,
usage: aggregator.usage,
model: aggregator.model,
object: "completion".to_string(),
object: "text_completion".to_string(),
system_fingerprint: aggregator.system_fingerprint,
choices,
})
......@@ -201,7 +201,7 @@ mod tests {
finish_reason,
logprobs: None,
}],
object: "completion".to_string(),
object: "text_completion".to_string(),
}),
id: Some("test_id".to_string()),
event: None,
......@@ -310,7 +310,7 @@ mod tests {
logprobs: None,
},
],
object: "completion".to_string(),
object: "text_completion".to_string(),
}),
id: Some("test_id".to_string()),
event: None,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment