Find a model by ID
(&self, model_id: &str)
| 157 | impl ProviderConfig { |
| 158 | /// Find a model by ID |
| 159 | pub fn find_model(&self, model_id: &str) -> Option<&ModelConfig> { |
| 160 | self.models.iter().find(|m| m.id == model_id) |
| 161 | } |
| 162 | |
| 163 | /// Get the effective API key for a model (model override or provider default) |
| 164 | pub fn get_api_key<'a>(&'a self, model: &'a ModelConfig) -> Option<&'a str> { |
no outgoing calls