Skip to main content

model_map_from_env

Function model_map_from_env 

Source
pub fn model_map_from_env() -> ModelMap
Expand description

Read TENSOR_WASM_API_OPENAI_MODEL_MAP from the ambient process env and return an Arc-wrapped HashMap for installation into crate::AppState. Empty / unset env var produces an empty map.