Skip to main content

register_model

Function register_model 

Source
pub fn register_model(model: Model)
Expand description

Runtime model registry for dynamically registered models.

Unlike the static model_db, this supports adding/removing models at runtime. Register a model at runtime.

Call this during startup for each custom provider’s model. If a model with the same provider/model_id key already exists, the new one replaces it.