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 { ...@@ -141,7 +141,7 @@ impl DeltaAggregator {
created: aggregator.created, created: aggregator.created,
usage: aggregator.usage, usage: aggregator.usage,
model: aggregator.model, model: aggregator.model,
object: "completion".to_string(), object: "text_completion".to_string(),
system_fingerprint: aggregator.system_fingerprint, system_fingerprint: aggregator.system_fingerprint,
choices, choices,
}) })
...@@ -201,7 +201,7 @@ mod tests { ...@@ -201,7 +201,7 @@ mod tests {
finish_reason, finish_reason,
logprobs: None, logprobs: None,
}], }],
object: "completion".to_string(), object: "text_completion".to_string(),
}), }),
id: Some("test_id".to_string()), id: Some("test_id".to_string()),
event: None, event: None,
...@@ -310,7 +310,7 @@ mod tests { ...@@ -310,7 +310,7 @@ mod tests {
logprobs: None, logprobs: None,
}, },
], ],
object: "completion".to_string(), object: "text_completion".to_string(),
}), }),
id: Some("test_id".to_string()), id: Some("test_id".to_string()),
event: None, 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