MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / provider_profile_display_width

Function provider_profile_display_width

crates/openshell-cli/src/run.rs:5599–5612  ·  view source on GitHub ↗
(profiles: &[ProviderProfile])

Source from the content-addressed store, hash-verified

5597}
5598
5599fn provider_profile_display_width(profiles: &[ProviderProfile]) -> usize {
5600 profiles
5601 .iter()
5602 .map(|profile| {
5603 profile
5604 .display_name
5605 .chars()
5606 .count()
5607 .min(PROVIDER_PROFILE_DISPLAY_MAX_WIDTH)
5608 })
5609 .max()
5610 .unwrap_or(4)
5611 .max(4)
5612}
5613
5614fn print_provider_type_row(profile: &ProviderProfile, id_width: usize, display_width: usize) {
5615 let inference = if profile.inference_capable {

Callers 1

provider_list_profilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected