The class name (e.g., "ChatOpenAI", "ChatAnthropic")
OptionalmodelProvider: stringOptional model provider key for direct lookup (e.g., "google-vertexai-web"). When provided, uses direct lookup to avoid className collision issues.
The imported model class or undefined if not found
Helper function to get a chat model class by its class name or model provider.