MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / pretty_vendor

Function pretty_vendor

atomic-cli/src/commands/agent/attest.rs:730–745  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
730fn 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected