Skip to content

Commit

Permalink
fix: chat model loading is wrongly distributed to --model (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored Nov 16, 2023
1 parent d419429 commit d0c9b56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/tabby/src/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ async fn api_router(args: &ServeArgs, config: &Config) -> Router {
.await,
);

let chat_state = if let Some(_chat_model) = &args.chat_model {
let chat_state = if let Some(chat_model) = &args.chat_model {
Some(Arc::new(
create_chat_service(&args.model, &args.device, args.parallelism).await,
create_chat_service(chat_model, &args.device, args.parallelism).await,
))
} else {
None
Expand Down

0 comments on commit d0c9b56

Please sign in to comment.