mirror of
https://github.com/katanemo/plano.git
synced 2026-06-20 15:28:07 +02:00
more fixes
This commit is contained in:
parent
e35560623c
commit
608ef35af7
5 changed files with 69 additions and 38 deletions
|
|
@ -279,9 +279,9 @@ pub mod open_ai {
|
|||
}
|
||||
|
||||
impl ChatCompletionStreamResponse {
|
||||
pub fn new(response: Option<String>, role: Option<String>) -> Self {
|
||||
pub fn new(response: Option<String>, role: Option<String>, model: Option<String>) -> Self {
|
||||
ChatCompletionStreamResponse {
|
||||
model: Some(ARCH_FC_MODEL_NAME.to_string()),
|
||||
model,
|
||||
choices: vec![ChunkChoice {
|
||||
delta: Delta {
|
||||
role,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue