feat: add banner to sgl-model-gateway (#20471)
Signed-off-by: Simo Lin <linsimo.mark@gmail.com>
This commit is contained in:
@@ -41,6 +41,18 @@ def launch_router(args: argparse.Namespace) -> Optional[Router]:
|
|||||||
mini_lb = MiniLoadBalancer(router_args)
|
mini_lb = MiniLoadBalancer(router_args)
|
||||||
mini_lb.start()
|
mini_lb.start()
|
||||||
else:
|
else:
|
||||||
|
print(
|
||||||
|
"\n"
|
||||||
|
"==============================================================================\n"
|
||||||
|
"WARNING: This copy of sgl-model-gateway is DEPRECATED and no longer maintained.\n"
|
||||||
|
"The actively maintained version has moved to:\n"
|
||||||
|
" https://github.com/lightseekorg/smg\n"
|
||||||
|
"\n"
|
||||||
|
"Please migrate to the standalone repository for the latest features,\n"
|
||||||
|
"bug fixes, and security updates.\n"
|
||||||
|
"==============================================================================\n",
|
||||||
|
file=sys.stderr,
|
||||||
|
)
|
||||||
if Router is None:
|
if Router is None:
|
||||||
raise RuntimeError("Rust Router is not installed")
|
raise RuntimeError("Rust Router is not installed")
|
||||||
router_args._validate_router_args()
|
router_args._validate_router_args()
|
||||||
|
|||||||
@@ -1153,6 +1153,17 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
eprintln!("\n{}", "=".repeat(78));
|
||||||
|
eprintln!(
|
||||||
|
"WARNING: This copy of sgl-model-gateway is DEPRECATED and no longer maintained."
|
||||||
|
);
|
||||||
|
eprintln!("The actively maintained version has moved to:");
|
||||||
|
eprintln!(" https://github.com/lightseekorg/smg");
|
||||||
|
eprintln!();
|
||||||
|
eprintln!("Please migrate to the standalone repository for the latest features,");
|
||||||
|
eprintln!("bug fixes, and security updates.");
|
||||||
|
eprintln!("{}\n", "=".repeat(78));
|
||||||
|
|
||||||
let prefill_urls = parse_prefill_args();
|
let prefill_urls = parse_prefill_args();
|
||||||
|
|
||||||
let mut filtered_args: Vec<String> = Vec::new();
|
let mut filtered_args: Vec<String> = Vec::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user