mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 12:24:53 +00:00
fix: adjust typo and incorrect function
This commit is contained in:
parent
7513c057db
commit
384b4eaec4
@ -1065,9 +1065,9 @@ pub async fn run(
|
||||
|
||||
if cfg!(feature = "google") {
|
||||
tracing::info!("Built with `google` feature");
|
||||
tracing::info!("Enviorment variables `AIP_PREDICT_ROUTE` and `AIP_HEALTH_ROUTE` will be respected.");
|
||||
tracing::info!("Environment variables `AIP_PREDICT_ROUTE` and `AIP_HEALTH_ROUTE` will be respected.");
|
||||
if let Ok(env_predict_route) = std::env::var("AIP_PREDICT_ROUTE") {
|
||||
app = app.route(&env_predict_route, post(compat_generate));
|
||||
app = app.route(&env_predict_route, post(vertex_compatibility));
|
||||
}
|
||||
if let Ok(env_health_route) = std::env::var("AIP_HEALTH_ROUTE") {
|
||||
app = app.route(&env_health_route, get(health));
|
||||
|
Loading…
Reference in New Issue
Block a user