From 0eb64c1e726d5bf85624087852391cbadc6f6e59 Mon Sep 17 00:00:00 2001 From: Kangyan-Zhou Date: Wed, 4 Mar 2026 17:12:20 -0800 Subject: [PATCH] [smg] Extract tokenizer_path from /model_info into discovered labels (#19905) Co-authored-by: Claude Opus 4.6 --- .../src/core/steps/worker/local/discover_metadata.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sgl-model-gateway/src/core/steps/worker/local/discover_metadata.rs b/sgl-model-gateway/src/core/steps/worker/local/discover_metadata.rs index 3ad55e186..13f91a3ef 100644 --- a/sgl-model-gateway/src/core/steps/worker/local/discover_metadata.rs +++ b/sgl-model-gateway/src/core/steps/worker/local/discover_metadata.rs @@ -267,6 +267,11 @@ impl StepExecutor for DiscoverMetadataStep { // Fetch from /model_info for model-related metadata if let Ok(model_info) = get_model_info(&config.url, config.api_key.as_deref()).await { + if let Some(tokenizer_path) = + model_info.tokenizer_path.filter(|s| !s.is_empty()) + { + labels.insert("tokenizer_path".to_string(), tokenizer_path); + } if let Some(model_type) = model_info.model_type.filter(|s| !s.is_empty()) { labels.insert("model_type".to_string(), model_type); }