ui: add default icon (#1553)

Co-authored-by: Kalvin C <kalvinnchau@users.noreply.github.com>
This commit is contained in:
Lily Delalande
2025-03-06 10:00:18 -08:00
committed by GitHub
parent 5237277082
commit 3d4574dfe4
6 changed files with 10 additions and 2 deletions

2
Cargo.lock generated
View File

@@ -2201,7 +2201,7 @@ dependencies = [
[[package]]
name = "goose-bench"
version = "1.0.10"
version = "1.0.12"
dependencies = [
"anyhow",
"async-trait",

View File

@@ -47,6 +47,12 @@ const fakeProviderState: ProviderState[] = [
isConfigured: false,
metadata: { location: null },
},
{
id: 'gcp_vertex_ai',
name: 'GCP Vertex AI',
isConfigured: true,
metadata: { location: null },
},
];
export default function ProviderSettings({ onClose }: { onClose: () => void }) {

View File

@@ -6,6 +6,7 @@ import GroqLogo from './icons/groq@3x.png';
import OllamaLogo from './icons/ollama@3x.png';
import DatabricksLogo from './icons/databricks@3x.png';
import OpenRouterLogo from './icons/openrouter@3x.png';
import DefaultLogo from './icons/default@3x.png';
// Map provider names to their logos
const providerLogos = {
@@ -16,12 +17,13 @@ const providerLogos = {
ollama: OllamaLogo,
databricks: DatabricksLogo,
openrouter: OpenRouterLogo,
default: DefaultLogo,
};
export default function ProviderLogo({ providerName }) {
// Convert provider name to lowercase and fetch the logo
const logoKey = providerName.toLowerCase();
const logo = providerLogos[logoKey] || OpenAILogo; // TODO: need default icon
const logo = providerLogos[logoKey] || DefaultLogo;
return (
<div className="flex justify-center mb-2">

Binary file not shown.

After

Width:  |  Height:  |  Size: 951 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB