Skip to main content

list_model_providers

Function list_model_providers 

Source
pub fn list_model_providers() -> Vec<ModelProviderInfo>
Expand description

Return the list of all known model_providers for display in zeroclaw model_providers list.

This is intentionally separate from the factory match in create_model_provider (display concern vs. construction concern).

This handwritten list and the for_each_model_provider_slot! macro in zeroclaw-config are a dual-maintenance surface: the macro carries the canonical slot set, this list adds display-only fields (display_name, local). The listed_model_providers_match_canonical_slots test enforces that the two cover exactly the same slots, so a provider added to the macro without a display entry here (or vice versa) fails cargo test.