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

Function list_providers_interactive

crates/opencode-cli/src/main.rs:1638–1645  ·  view source on GitHub ↗
(registry: &ProviderRegistry)

Source from the content-addressed store, hash-verified

1636}
1637
1638fn list_providers_interactive(registry: &ProviderRegistry) {
1639 println!("\nConfigured Providers:\n");
1640 for provider in registry.list() {
1641 let models_count = provider.models().len();
1642 println!(" {} - {} model(s)", provider.id(), models_count);
1643 }
1644 println!();
1645}
1646
1647fn select_model(
1648 _executor: &mut AgentExecutor,

Callers 1

run_chat_sessionFunction · 0.85

Calls 2

listMethod · 0.45
modelsMethod · 0.45

Tested by

no test coverage detected