Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

696 B
Raw Blame
import { ProviderIcon } from '@librechat/client';
import type { ProviderId } from 'librechat-data-provider';
import { cn } from '~/utils';

export function ResolvedProviderIcon({
  provider,
  imageURL,
  size = 20,
  className,
  model,
  alt = '',
}: {
  provider?: ProviderId | null;
  imageURL?: string | null;
  size?: number;
  className?: string;
  model?: string | null;
  alt?: string;
}) {
  if (imageURL) {
    return (
      <img
        src={imageURL}
        alt={alt}
        width={size}
        height={size}
        className={cn('object-contain', className)}
      />
    );
  }

  return <ProviderIcon provider={provider} model={model} size={size} className={className} />;
}