MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / list_models_interactive

Function list_models_interactive

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

Source from the content-addressed store, hash-verified

1623}
1624
1625fn list_models_interactive(registry: &ProviderRegistry) {
1626 println!("\nAvailable Models:\n");
1627 for provider in registry.list() {
1628 println!(" [{}]", provider.id());
1629 for model in provider.models() {
1630 println!(" {}", model.id);
1631 }
1632 println!();
1633 }
1634 println!("Use /model <model_id> to select a model");
1635 println!();
1636}
1637
1638fn list_providers_interactive(registry: &ProviderRegistry) {
1639 println!("\nConfigured Providers:\n");

Callers 1

run_chat_sessionFunction · 0.85

Calls 2

listMethod · 0.45
modelsMethod · 0.45

Tested by

no test coverage detected