Unverified Commit b69f0780 authored by sunxichen's avatar sunxichen Committed by GitHub
Browse files

fix ChatCompletion and ChatCompletionChunk object string not compatible with...


fix ChatCompletion and ChatCompletionChunk object string not compatible with standard openai api (#2089)
Co-authored-by: default avatarsunxichen <sun.xc@digitalcnzz.com>
parent 83634dc1
...@@ -570,7 +570,7 @@ impl ChatCompletion { ...@@ -570,7 +570,7 @@ impl ChatCompletion {
}; };
Self { Self {
id: String::new(), id: String::new(),
object: "text_completion".into(), object: "chat.completion".into(),
created, created,
model, model,
system_fingerprint, system_fingerprint,
...@@ -682,7 +682,7 @@ impl ChatCompletionChunk { ...@@ -682,7 +682,7 @@ impl ChatCompletionChunk {
}; };
Self { Self {
id: String::new(), id: String::new(),
object: "text_completion".to_string(), object: "chat.completion.chunk".to_string(),
created, created,
model, model,
system_fingerprint, system_fingerprint,
......
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