fix ChatCompletion and ChatCompletionChunk object string not compatible with standard openai api (#2089)
Co-authored-by: sunxichen <sun.xc@digitalcnzz.com>
This commit is contained in:
parent
83634dc122
commit
b69f078041
|
@ -570,7 +570,7 @@ impl ChatCompletion {
|
|||
};
|
||||
Self {
|
||||
id: String::new(),
|
||||
object: "text_completion".into(),
|
||||
object: "chat.completion".into(),
|
||||
created,
|
||||
model,
|
||||
system_fingerprint,
|
||||
|
@ -682,7 +682,7 @@ impl ChatCompletionChunk {
|
|||
};
|
||||
Self {
|
||||
id: String::new(),
|
||||
object: "text_completion".to_string(),
|
||||
object: "chat.completion.chunk".to_string(),
|
||||
created,
|
||||
model,
|
||||
system_fingerprint,
|
||||
|
|
Loading…
Reference in New Issue