Prettify a canonical vendor name (from `AIVendor::name()`, lowercase) into a product-facing label. Falls back to the raw string for unknown vendors.
(canonical: &str)
| 728 | /// Prettify a canonical vendor name (from `AIVendor::name()`, lowercase) into |
| 729 | /// a product-facing label. Falls back to the raw string for unknown vendors. |
| 730 | fn pretty_vendor(canonical: &str) -> String { |
| 731 | match canonical { |
| 732 | "anthropic" => "Anthropic", |
| 733 | "openai" => "OpenAI", |
| 734 | "google" => "Google", |
| 735 | "meta" => "Meta", |
| 736 | "mistral" => "Mistral", |
| 737 | "cohere" => "Cohere", |
| 738 | "amazon-bedrock" => "Amazon Bedrock", |
| 739 | "azure-openai" => "Azure OpenAI", |
| 740 | "xai" => "xAI", |
| 741 | "local" => "Local", |
| 742 | other => other, |
| 743 | } |
| 744 | .to_string() |
| 745 | } |
| 746 | |
| 747 | /// Prettify a tool label from `AITool::description()` (e.g. "CLI: claude-code") |
| 748 | /// into a product-facing name. Drops the access-method prefix, then maps the |
nothing calls this directly
no outgoing calls
no test coverage detected