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

Method list_models

crates/opencode-provider/src/provider.rs:339–341  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

337 }
338
339 pub fn list_models(&self) -> Vec<ModelInfo> {
340 self.providers.values().flat_map(|p| p.models()).collect()
341 }
342
343 pub fn find_model(&self, model_id: &str) -> Option<(String, ModelInfo)> {
344 for (provider_id, provider) in &self.providers {

Callers 4

list_providersFunction · 0.80
get_config_providersFunction · 0.80

Calls 1

modelsMethod · 0.45

Tested by 1