Skip to main content

parse_model_map_env

Function parse_model_map_env 

Source
pub fn parse_model_map_env(raw: &str) -> HashMap<String, Uuid>
Expand description

Parse the TENSOR_WASM_API_OPENAI_MODEL_MAP env-var value into a HashMap<String, Uuid>.

Empty / unset value yields an empty map. Malformed entries (missing colon, unparseable UUID) are skipped with a tracing::warn! so a single bad row does not block startup — the remaining valid entries stay live.