MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / get_model

Method get_model

crates/opencode-provider/src/models.rs:172–176  ·  view source on GitHub ↗
(&self, provider_id: &str, model_id: &str)

Source from the content-addressed store, hash-verified

170 }
171
172 pub async fn get_model(&self, provider_id: &str, model_id: &str) -> Option<ModelInfo> {
173 let data = self.get().await;
174 data.get(provider_id)
175 .and_then(|p| p.models.get(model_id).cloned())
176 }
177
178 pub async fn list_models_for_provider(&self, provider_id: &str) -> Vec<ModelInfo> {
179 let data = self.get().await;

Callers 3

find_modelMethod · 0.45
get_language_modelMethod · 0.45
test_provider_metadataFunction · 0.45

Calls 1

getMethod · 0.45

Tested by 1

test_provider_metadataFunction · 0.36