Stijnus commited on
Commit
e716ca5
·
1 Parent(s): 8c7a9f7

Add Logo icons LLM's

Browse files

Added the Next.js Image component import for optimized image loading
Modified the provider item layout to include an icon next to the provider name
Used template literals to dynamically load the correct icon based on the provider name
Added proper sizing (24x24) for consistent icon display
Added dark:invert class to ensure icons are visible in dark mode (assuming they're dark by default)

app/components/settings/providers/ProvidersTab.tsx CHANGED
@@ -49,7 +49,14 @@ export default function ProvidersTab() {
49
  className="flex flex-col mb-2 provider-item hover:bg-bolt-elements-bg-depth-3 p-4 rounded-lg border border-bolt-elements-borderColor "
50
  >
51
  <div className="flex items-center justify-between mb-2">
52
- <span className="text-bolt-elements-textPrimary">{provider.name}</span>
 
 
 
 
 
 
 
53
  <Switch
54
  className="ml-auto"
55
  checked={provider.settings.enabled}
 
49
  className="flex flex-col mb-2 provider-item hover:bg-bolt-elements-bg-depth-3 p-4 rounded-lg border border-bolt-elements-borderColor "
50
  >
51
  <div className="flex items-center justify-between mb-2">
52
+ <div className="flex items-center gap-2">
53
+ <img
54
+ src={`/icons/${provider.name.toLowerCase()}.svg`}
55
+ alt={`${provider.name} icon`}
56
+ className="w-6 h-6 dark:invert"
57
+ />
58
+ <span className="text-bolt-elements-textPrimary">{provider.name}</span>
59
+ </div>
60
  <Switch
61
  className="ml-auto"
62
  checked={provider.settings.enabled}
public/icons/Anthropic.svg ADDED
public/icons/Cohere.svg ADDED
public/icons/Deepseek.svg ADDED
public/icons/Google.svg ADDED
public/icons/Groq.svg ADDED
public/icons/HuggingFace.svg ADDED
public/icons/LMStudio.svg ADDED
public/icons/Mistral.svg ADDED
public/icons/Ollama.svg ADDED
public/icons/OpenAI.svg ADDED
public/icons/OpenAILike.svg ADDED
public/icons/OpenRouter.svg ADDED
public/icons/Together.svg ADDED
public/icons/xAI.svg ADDED