Skip to content

Commit

Permalink
refactor(web-api): inputs 改 messages
Browse files Browse the repository at this point in the history
Signed-off-by: YdrMaster <[email protected]>
  • Loading branch information
YdrMaster committed Aug 19, 2024
1 parent ad33eec commit c555ba4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web-api/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ where
pub fn infer(
self: &Arc<Self>,
Infer {
inputs: mut messages,
mut messages,
encoding,
session_id,
dialog_pos,
Expand Down
2 changes: 1 addition & 1 deletion web-api/src/schemas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::sync::atomic::{AtomicUsize, Ordering};

#[derive(serde::Deserialize)]
pub(crate) struct Infer {
pub inputs: Vec<Sentence>,
pub messages: Vec<Sentence>,
pub encoding: Option<String>,
pub session_id: Option<String>,
pub dialog_pos: Option<usize>,
Expand Down

0 comments on commit c555ba4

Please sign in to comment.