Skip to content

Commit

Permalink
fix ChatCompletion and ChatCompletionChunk object string not compatib…
Browse files Browse the repository at this point in the history
…le with standard openai api (#2089)

Co-authored-by: sunxichen <[email protected]>
  • Loading branch information
sunxichen and sunxichen authored Jun 25, 2024
1 parent 83634dc commit b69f078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions router/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ impl ChatCompletion {
};
Self {
id: String::new(),
object: "text_completion".into(),
object: "chat.completion".into(),
created,
model,
system_fingerprint,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b69f078

Please sign in to comment.