provider_display_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 human-readable provider label.
Shared by the auth UI and the model selector so a provider is labeled
identically in both. (The install prompt reuses the underlying
PROVIDER_DISPLAY_NAMES map directly rather than this function, to avoid an
event-loop config read, so a user-configured display_name won't surface
there.)
Resolution order: a configured display_name, then the built-in
PROVIDER_DISPLAY_NAMES map, then a title-cased form of the provider key.