provider_short_name(
provider: str,
config: ModelConfig | None = None,
) -> str| Name | Type | Description |
|---|---|---|
provider* | str | Provider config key. |
config | ModelConfig | None | Default: NoneParsed model config, if already loaded by the caller. |
Return a compact brand label for a provider.
For space-constrained UI (e.g. the /model Recent tag). Resolution order:
a configured short_name, then the built-in PROVIDER_SHORT_NAMES map,
then the full provider_display_name (which is already short for providers
without a parenthetical qualifier).