Skip to content

Commit

Permalink
fix error in passing flags to router
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikKaum committed Jul 15, 2024
1 parent 81c9ad7 commit 53ad84d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions launcher/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1207,18 +1207,14 @@ fn spawn_webserver(
format!("{}-0", args.shard_uds_path),
"--tokenizer-name".to_string(),
args.model_id,
"--disable-usage-stats".to_string(),
args.disable_usage_stats.to_string(),
"--disable-crash-reports".to_string(),
args.disable_crash_reports.to_string(),
];

// Pass usage stats flags to router
if args.disable_usage_stats {
router_args.push("--usage-stats".to_string());
router_args.push("--disable-usage-stats".to_string());
}
if args.disable_crash_reports {
router_args.push("--crash-reports".to_string());
router_args.push("--disable-crash-reports".to_string());
}

// Grammar support
Expand Down

0 comments on commit 53ad84d

Please sign in to comment.