Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

feat(ui): endpoint page music section, fixed action buttons, provider logos

diegosouzapw4383e7d8073c
diff --git a/public/providers/assemblyai.svg b/public/providers/assemblyai.svg
new file mode 100644
index 0000000000..fa0d293c68
--- /dev/null
+++ b/public/providers/assemblyai.svg
@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
+ <rect width="100" height="100" rx="18" fill="#0062FF"/>
+ <!-- AssemblyAI — waveform/microphone mark -->
+ <rect x="47" y="18" width="6" height="30" rx="3" fill="white"/>
+ <rect x="35" y="26" width="6" height="22" rx="3" fill="white" opacity="0.8"/>
+ <rect x="59" y="26" width="6" height="22" rx="3" fill="white" opacity="0.8"/>
+ <rect x="23" y="34" width="6" height="14" rx="3" fill="white" opacity="0.5"/>
+ <rect x="71" y="34" width="6" height="14" rx="3" fill="white" opacity="0.5"/>
+ <!-- Bottom line -->
+ <rect x="30" y="62" width="40" height="4" rx="2" fill="white" opacity="0.7"/>
+ <rect x="45" y="66" width="10" height="14" rx="2" fill="white" opacity="0.7"/>
+</svg>
diff --git a/public/providers/elevenlabs.svg b/public/providers/elevenlabs.svg
new file mode 100644
index 0000000000..5a345401f0
--- /dev/null
+++ b/public/providers/elevenlabs.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
+ <rect width="100" height="100" rx="18" fill="#6C47FF"/>
+ <!-- ElevenLabs "11" logo mark — two vertical bars -->
+ <rect x="24" y="20" width="20" height="60" rx="4" fill="white"/>
+ <rect x="56" y="20" width="20" height="60" rx="4" fill="white"/>
+</svg>
diff --git a/public/providers/hyperbolic.svg b/public/providers/hyperbolic.svg
new file mode 100644
index 0000000000..6ee69ef7f9
--- /dev/null
+++ b/public/providers/hyperbolic.svg
@@ -0,0 +1,13 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
+ <rect width="100" height="100" rx="18" fill="#141414"/>
+ <!-- Hyperbolic — stylized "H" with gradient accent -->
+ <defs>
+ <linearGradient id="hg" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" stop-color="#00D4FF"/>
+ <stop offset="100%" stop-color="#7B2FFF"/>
+ </linearGradient>
+ </defs>
+ <rect x="22" y="20" width="14" height="60" rx="3" fill="url(#hg)"/>
+ <rect x="22" y="41" width="56" height="14" rx="3" fill="url(#hg)"/>
+ <rect x="64" y="20" width="14" height="60" rx="3" fill="url(#hg)"/>
+</svg>
diff --git a/public/providers/inworld.svg b/public/providers/inworld.svg
new file mode 100644
index 0000000000..726ef0063f
--- /dev/null
+++ b/public/providers/inworld.svg
@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
+ <rect width="100" height="100" rx="18" fill="#0A0A1A"/>
+ <defs>
+ <linearGradient id="ig" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" stop-color="#5B4FFF"/>
+ <stop offset="100%" stop-color="#00E5FF"/>
+ </linearGradient>
+ </defs>
+ <!-- Inworld "i" with dot - futuristic -->
+ <circle cx="50" cy="28" r="8" fill="url(#ig)"/>
+ <rect x="42" y="42" width="16" height="38" rx="5" fill="url(#ig)"/>
+</svg>
diff --git a/public/providers/nanobanana.svg b/public/providers/nanobanana.svg
new file mode 100644
index 0000000000..718fea0e17
--- /dev/null
+++ b/public/providers/nanobanana.svg
@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
+ <rect width="100" height="100" rx="18" fill="#1C1A00"/>
+ <!-- NanoBanana - banana icon stylized -->
+ <defs>
+ <linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" stop-color="#FFE000"/>
+ <stop offset="100%" stop-color="#FF9500"/>
+ </linearGradient>
+ </defs>
+ <path d="M 35 75 Q 20 40 40 20 Q 55 10 70 18 Q 60 22 52 30 Q 38 45 42 65 Z" fill="url(#bg)"/>
+ <path d="M 42 65 Q 38 45 52 30 Q 60 22 70 18 Q 75 28 72 38 Q 68 55 55 65 Z" fill="#FFD700"/>
+</svg>
diff --git a/public/providers/ollama-cloud.png b/public/providers/ollama-cloud.png
new file mode 100644
index 0000000000..2acd383d2f
--- /dev/null
+++ b/public/providers/ollama-cloud.png
@@ -0,0 +1,375 @@
+
+
+
+
+
+
+
+
+
+<!doctype html>
+<html class="h-full overflow-y-scroll">
+ <head>
+ <title>Ollama</title>
+
+ <meta charset="utf-8" />
+ <meta name="description" content="Get up and running with large language models."/>
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta property="og:title" content="Ollama" />
+ <meta property="og:description" content="Get up and running with large language models." />
+ <meta property="og:url" content="https://ollama.com" />
+ <meta property="og:image" content="https://ollama.com/public/og.png" />
+ <meta property="og:image:type" content="image/png" />
+ <meta property="og:image:width" content="1200" />
+ <meta property="og:image:height" content="628" />
+ <meta property="og:type" content="website" />
+
+ <meta name="robots" content="index, follow" />
+
+ <meta property="twitter:card" content="summary" />
+ <meta property="twitter:title" content="Ollama" />
+ <meta property="twitter:description" content="Get up and running with large language models." />
+ <meta property="twitter:site" content="ollama" />
+
+ <meta property="twitter:image:src" content="https://ollama.com/public/og-twitter.png" />
+ <meta property="twitter:image:width" content="1200" />
+ <meta property="twitter:image:height" content="628" />
+
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+
+ <link rel="icon" type="image/png" sizes="16x16" href="/public/icon-16x16.png" />
+ <link rel="icon" type="image/png" sizes="32x32" href="/public/icon-32x32.png" />
+ <link rel="icon" type="image/png" sizes="48x48" href="/public/icon-48x48.png" />
+ <link rel="icon" type="image/png" sizes="64x64" href="/public/icon-64x64.png" />
+ <link rel="apple-touch-icon" sizes="180x180" href="/public/apple-touch-icon.png" />
+ <link rel="icon" type="image/png" sizes="192x192" href="/public/android-chrome-icon-192x192.png" />
+ <link rel="icon" type="image/png" sizes="512x512" href="/public/android-chrome-icon-512x512.png" />
+
+
+
+
+ <link href="/public/tailwind.css?v=9f0babb28a8cef23daf033b8840da7f9" rel="stylesheet" />
+ <link href="/public/vendor/prism/prism.css?v=9f0babb28a8cef23daf033b8840da7f9" rel="stylesheet" />
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "WebSite",
+ "name": "Ollama",
+ "url": "https://ollama.com"
+ }
+ </script>
+
+ <script type="text/javascript">
+ function copyToClipboard(element) {
+ let commandElement = null;
+ const preElement = element.closest('pre');
+ const languageNoneElement = element.closest('.language-none');
+
+ if (preElement) {
+ commandElement = preElement.querySelector('code');
+ } else if (languageNoneElement) {
+ commandElement = languageNoneElement.querySelector('.command');
+ } else {
+ const parent = element.parentElement;
+ if (parent) {
+ commandElement = parent.querySelector('.command');
+ }
+ }
+
+ if (!commandElement) {
+ console.error('No code or command element found');
+ return;
+ }
+
+ const code = commandElement.textContent ? commandElement.textContent.trim() : commandElement.value;
+
+ navigator.clipboard
+ .writeText(code)
+ .then(() => {
+ const copyIcon = element.querySelector('.copy-icon')
+ const checkIcon = element.querySelector('.check-icon')
+
+ copyIcon.classList.add('hidden')
+ checkIcon.classList.remove('hidden')
+
+ setTimeout(() => {
+ copyIcon.classList.remove('hidden')
+ checkIcon.classList.add('hidden')
+ }, 2000)
+ })
+ }
+ </script>
+
+ <script>
+
+ function getIcon(url) {
+ url = url.toLowerCase();
+ if (url.includes('x.com') || url.includes('twitter.com')) return 'x';
+ if (url.includes('github.com')) return 'github';
+ if (url.includes('linkedin.com')) return 'linkedin';
+ if (url.includes('youtube.com')) return 'youtube';
+ if (url.includes('hf.co') || url.includes('huggingface.co') || url.includes('huggingface.com')) return 'hugging-face';
+ return 'default';
+ }
+
+ function setInputIcon(input) {
+ const icon = getIcon(input.value);
+ const img = input.previousElementSibling.querySelector('img');
+ img.src = `/public/social/${icon}.svg`;
+ img.alt = `${icon} icon`;
+ }
+
+ function setDisplayIcon(imgElement, url) {
+ const icon = getIcon(url);
+ imgElement.src = `/public/social/${icon}.svg`;
+ imgElement.alt = `${icon} icon`;
+ }
+ </script>
+
+ <script src="/public/vendor/htmx/bundle.js"></script>
+ </head>
+
+ <body
+ class="
+ antialiased
+ min-h-screen
+ w-full
+ m-0
+ flex
+ flex-col
+ "
+ hx-on:keydown="
+ if (event.target.tagName === 'INPUT' || event.target.tagName === 'TEXTAREA') {
+ // Ignore key events in input fields.
+ return;
+ }
+ if ((event.metaKey && event.key === 'k') || event.key === '/') {
+ event.preventDefault();
+ const sp = htmx.find('#search') || htmx.find('#navbar-input');
+ sp.focus();
+ }
+ "
+ >
+
+<header class="sticky top-0 z-40 bg-white underline-offset-4 lg:static">
+ <nav class="flex w-full items-center justify-between px-6 py-[9px]">
+ <a href="/" class="z-50">
+ <img src="/public/ollama.png" class="w-8" alt="Ollama" />
+ </a>
+
+
+ <div class="hidden lg:flex xl:flex-1 items-center space-x-6 ml-6 mr-6 xl:mr-0 text-lg">
+ <a class="hover:underline focus:underline focus:outline-none focus:ring-0" href="/search">Models</a>
+ <a class="hover:underline focus:underline focus:outline-none focus:ring-0" href="/docs">Docs</a>
+ <a class="hover:underline focus:underline focus:outline-none focus:ring-0" href="/pricing">Pricing</a>
+ </div>
+
+
+ <div class="flex-grow justify-center items-center hidden lg:flex">
+ <div class="relative w-full xl:max-w-[28rem]">
+
+<form action="/search" autocomplete="off">
+ <div
+ class="relative flex w-full appearance-none bg-black/5 border border-neutral-100 items-center rounded-full"
+ hx-on:focusout="
+ if (!this.contains(event.relatedTarget)) {
+ const searchPreview = document.querySelector('#searchpreview');
+ if (searchPreview) {
+ htmx.addClass('#searchpreview', 'hidden');
+ }
+ }
+ "
+ >
+ <span id="searchIcon" class="pl-2 text-2xl text-neutral-500">
+ <svg class="mt-0.25 ml-1.5 h-5 w-5 fill-current" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
+ <path d="m8.5 3c3.0375661 0 5.5 2.46243388 5.5 5.5 0 1.24832096-.4158777 2.3995085-1.1166416 3.3225711l4.1469717 4.1470988c.2928932.2928932.2928932.767767 0 1.0606602-.2662666.2662665-.6829303.2904726-.9765418.0726181l-.0841184-.0726181-4.1470988-4.1469717c-.9230626.7007639-2.07425014 1.1166416-3.3225711 1.1166416-3.03756612 0-5.5-2.4624339-5.5-5.5 0-3.03756612 2.46243388-5.5 5.5-5.5zm0 1.5c-2.209139 0-4 1.790861-4 4s1.790861 4 4 4 4-1.790861 4-4-1.790861-4-4-4z" />
+ </svg>
+ </span>
+ <input
+ id="search"
+ hx-get="/search"
+ hx-trigger="keyup changed delay:100ms, focus"
+ hx-target="#searchpreview"
+ hx-swap="innerHTML"
+ name="q"
+ class="resize-none rounded-full border-0 py-2.5 bg-transparent text-sm w-full placeholder:text-neutral-500 focus:outline-none focus:ring-0"
+ placeholder="Search models"
+ autocomplete="off"
+ hx-on:keydown="
+ if (event.key === 'Enter') {
+ event.preventDefault();
+ window.location.href = '/search?q=' + encodeURIComponent(this.value);
+ return;
+ }
+ if (event.key === 'Escape') {
+ event.preventDefault();
+ this.value = '';
+ this.blur();
+ htmx.addClass('#searchpreview', 'hidden');
+ return;
+ }
+ if (event.key === 'Tab') {
+ htmx.addClass('#searchpreview', 'hidden');
+ return;
+ }
+ if (event.key === 'ArrowDown') {
+ let first = document.querySelector('#search-preview-list a:first-of-type');
+ first?.focus();
+ event.preventDefault();
+ }
+ if (event.key === 'ArrowUp') {
+ let last = document.querySelector('#view-all-link');
+ last?.focus();
+ event.preventDefault();
+ }
+ htmx.removeClass('#searchpreview', 'hidden');
+ "
+ hx-on:focus="
+ htmx.removeClass('#searchpreview', 'hidden')
+ "
+ />
+</form>
+<div id="searchpreview" class="hidden absolute left-0 right-0 top-12 z-50" style="width: calc(100% + 2px); margin-left: -1px;"></div>
+</div>
+
+ </div>
+ </div>
+
+
+ <div class="hidden lg:flex xl:flex-1 items-center space-x-2 justify-end ml-6 xl:ml-0">
+
+ <a class="flex cursor-pointer items-center rounded-full bg-black/5 hover:bg-black/10 text-lg px-4 py-1.5 text-black whitespace-nowrap" href="/signin">Sign in</a>
+ <a class="flex cursor-pointer items-center rounded-full bg-neutral-800 text-lg px-4 py-1.5 text-white hover:bg-black whitespace-nowrap focus:bg-black" href="/download">Download</a>
+
+ </div>
+
+
+ <div class="lg:hidden flex items-center">
+ <input type="checkbox" id="menu" class="peer hidden" />
+ <label for="menu" class="z-50 cursor-pointer peer-checked:hidden block">
+ <svg
+ class="h-8 w-8"
+ fill="none"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ aria-hidden="true"
+ >
+ <path
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
+ />
+ </svg>
+ </label>
+ <label for="menu" class="z-50 cursor-pointer hidden peer-checked:block fixed top-4 right-6">
+ <svg
+ class="h-8 w-8"
+ fill="none"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ aria-hidden="true"
+ >
+ <path
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ d="M6 18L18 6M6 6l12 12"
+ />
+ </svg>
+ </label>
+
+ <div class="fixed inset-0 bg-white z-40 hidden peer-checked:block overflow-y-auto">
+ <div class="flex flex-col space-y-5 pt-[5.5rem] text-3xl">
+
+
+
+ <a class="px-6" href="/search">Models</a>
+ <a class="px-6" href="/download">Download</a>
+ <a class="px-6" href="/docs">Docs</a>
+ <a class="px-6" href="/pricing">Pricing</a>
+
+
+ <a href="/signin" class="block px-6">Sign in</a>
+
+
+
+ </div>
+ </div>
+ </div>
+ </nav>
+</header>
+
+
+ <main class="mx-auto flex max-w-4xl flex-1 flex-col-reverse items-center justify-center p-32 md:flex-row md:items-start md:justify-between">
+ <div class="space-y-2 text-center md:pt-6 md:text-left">
+ <h2 class="text-3xl font-normal tracking-tight md:text-4xl">
+ 404.
+ <span class="text-neutral-400"> That's an error. </span>
+ </h2>
+ <p class="text-center text-lg md:text-left md:text-xl">
+ The page was not found.
+ </p>
+ </div>
+ <div class="pb-4 md:pb-0">
+ <img src="/public/400s.svg" class="w-40 md:w-48" alt="400s ollama" />
+ </div>
+</main>
+
+
+<footer class="mt-auto">
+
+ <div class="underline-offset-4 hidden md:block">
+ <div class="flex items-center justify-between px-6 py-3.5">
+ <div class="text-xs text-neutral-500">© 2026 Ollama</div>
+ <div class="flex space-x-6 text-xs text-neutral-500">
+ <a href="/download" class="hover:underline">Download</a>
+ <a href="/blog" class="hover:underline">Blog</a>
+ <a href="https://docs.ollama.com" class="hover:underline">Docs</a>
+ <a href="https://github.com/ollama/ollama" class="hover:underline">GitHub</a>
+ <a href="https://discord.com/invite/ollama" class="hover:underline">Discord</a>
+ <a href="https://twitter.com/ollama" class="hover:underline">X (Twitter)</a>
+ <a href="mailto:[email protected]" class="hover:underline">Contact</a>
+ </div>
+ </div>
+ </div>
+ <div class="py-4 md:hidden">
+ <div class="flex flex-col items-center justify-center">
+ <ul class="flex flex-wrap items-center justify-center text-sm text-neutral-500">
+ <li class="mx-2 my-1">
+ <a href="/blog" class="hover:underline">Blog</a>
+ </li>
+ <li class="mx-2 my-1">
+ <a href="/download" class="hover:underline">Download</a>
+ </li>
+ <li class="mx-2 my-1">
+ <a href="https://docs.ollama.com" class="hover:underline">Docs</a>
+ </li>
+ </ul>
+ <ul class="flex flex-wrap items-center justify-center text-sm text-neutral-500">
+ <li class="mx-2 my-1">
+ <a href="https://github.com/ollama/ollama" class="hover:underline">GitHub</a>
+ </li>
+ <li class="mx-2 my-1">
+ <a href="https://discord.com/invite/ollama" class="hover:underline">Discord</a>
+ </li>
+ <li class="mx-2 my-1">
+ <a href="https://twitter.com/ollama" class="hover:underline">X (Twitter)</a>
+ </li>
+ <li class="mx-2 my-1">
+ <a href="https://lu.ma/ollama" class="hover:underline">Meetups</a>
+ </li>
+ </ul>
+ <div class="mt-2 flex items-center justify-center text-sm text-neutral-500">
+ © 2026 Ollama Inc.
+ </div>
+ </div>
+ </div>
+
+</footer>
+
+
+
+ <span class="hidden" id="end_of_template"></span>
+ </body>
+</html>
diff --git a/public/providers/playht.svg b/public/providers/playht.svg
new file mode 100644
index 0000000000..e6b3f34921
--- /dev/null
+++ b/public/providers/playht.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
+ <rect width="100" height="100" rx="18" fill="#1A1A2E"/>
+ <defs>
+ <linearGradient id="pg" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" stop-color="#7B2FFF"/>
+ <stop offset="100%" stop-color="#FF6B6B"/>
+ </linearGradient>
+ </defs>
+ <!-- Play triangle -->
+ <polygon points="28,22 28,78 78,50" fill="url(#pg)" rx="4"/>
+</svg>
diff --git a/src/app/(dashboard)/dashboard/combos/page.tsx b/src/app/(dashboard)/dashboard/combos/page.tsx
index 9f5c1a292c..e612cc75b9 100644
--- a/src/app/(dashboard)/dashboard/combos/page.tsx
+++ b/src/app/(dashboard)/dashboard/combos/page.tsx
@@ -976,7 +976,7 @@ function ComboCard({
onChange={onToggle}
title={isDisabled ? t("enableCombo") : t("disableCombo")}
/>
- <div className="flex items-center gap-1 opacity-100 md:opacity-0 md:group-hover:opacity-100 transition-opacity">
+ <div className="flex items-center gap-1 transition-opacity">
<button
onClick={onTest}
disabled={testing}
diff --git a/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx b/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx
index fe65b1e505..33911fc8ba 100644
--- a/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx
+++ b/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx
@@ -86,7 +86,8 @@ export default function APIPageClient({ machineId }) {
(m) => m.type === "audio" && m.subtype === "speech" && !m.parent
);
const moderation = allModels.filter((m) => m.type === "moderation" && !m.parent);
- return { chat, embeddings, images, rerank, audioTranscription, audioSpeech, moderation };
+ const music = allModels.filter((m) => m.type === "music" && !m.parent);
+ return { chat, embeddings, images, rerank, audioTranscription, audioSpeech, moderation, music };
}, [allModels]);
const postCloudAction = async (action, timeoutMs = CLOUD_ACTION_TIMEOUT_MS) => {
@@ -392,6 +393,7 @@ export default function APIPageClient({ machineId }) {
endpointData.audioTranscription,
endpointData.audioSpeech,
endpointData.moderation,
+ endpointData.music,
].filter((a) => a.length > 0).length + 2,
})}
</p>
@@ -530,6 +532,25 @@ export default function APIPageClient({ machineId }) {
copied={copied}
baseUrl={currentEndpoint}
/>
+
+ {/* Music Generation */}
+ <EndpointSection
+ icon="music_note"
+ iconColor="text-fuchsia-500"
+ iconBg="bg-fuchsia-500/10"
+ title={t("musicGeneration") || "Music Generation"}
+ path="/v1/music/generations"
+ description={
+ t("musicDesc") ||
+ "Generate music and audio tracks via ComfyUI (Stable Audio, MusicGen)"
+ }
+ models={endpointData.music}
+ expanded={expandedEndpoint === "music"}
+ onToggle={() => setExpandedEndpoint(expandedEndpoint === "music" ? null : "music")}
+ copy={copy}
+ copied={copied}
+ baseUrl={currentEndpoint}
+ />
</div>
</div>
diff --git a/src/app/(dashboard)/dashboard/providers/[id]/page.tsx b/src/app/(dashboard)/dashboard/providers/[id]/page.tsx
index a30f91139d..68ef396bfb 100644
--- a/src/app/(dashboard)/dashboard/providers/[id]/page.tsx
+++ b/src/app/(dashboard)/dashboard/providers/[id]/page.tsx
@@ -1631,16 +1631,23 @@ function CustomModelsSection({ providerId, providerAlias, copied, onCopy }) {
</div>
<div className="flex-1 min-w-[240px]">
- <span className="text-xs text-text-muted mb-1 block">Supported Endpoints</span>
+ <span className="text-xs text-text-muted mb-1 block">
+ Supported Endpoints
+ </span>
<div className="flex items-center gap-3 flex-wrap">
{["chat", "embeddings", "images", "audio"].map((ep) => (
- <label key={ep} className="flex items-center gap-1.5 text-xs text-text-main cursor-pointer">
+ <label
+ key={ep}
+ className="flex items-center gap-1.5 text-xs text-text-main cursor-pointer"
+ >
<input
type="checkbox"
checked={editingEndpoints.includes(ep)}
onChange={(e) => {
if (e.target.checked) {
- setEditingEndpoints((prev) => (prev.includes(ep) ? prev : [...prev, ep]));
+ setEditingEndpoints((prev) =>
+ prev.includes(ep) ? prev : [...prev, ep]
+ );
} else {
setEditingEndpoints((prev) => prev.filter((x) => x !== ep));
}
@@ -2312,7 +2319,7 @@ function ConnectionRow({
onChange={onToggleActive}
title={(connection.isActive ?? true) ? t("disableConnection") : t("enableConnection")}
/>
- <div className="flex gap-1 ml-1 opacity-0 group-hover:opacity-100 transition-opacity">
+ <div className="flex gap-1 ml-1 transition-opacity">
{onReauth && (
<button
onClick={onReauth}
diff --git a/src/app/(dashboard)/dashboard/providers/page.tsx b/src/app/(dashboard)/dashboard/providers/page.tsx
index d38dafb7b4..3c0aceb901 100644
--- a/src/app/(dashboard)/dashboard/providers/page.tsx
+++ b/src/app/(dashboard)/dashboard/providers/page.tsx
@@ -482,8 +482,17 @@ function ProviderCard({ providerId, provider, stats, authType, onToggle }) {
const t = useTranslations("providers");
const tc = useTranslations("common");
const { connected, error, errorCode, errorTime, allDisabled } = stats;
+ const [imgSrc, setImgSrc] = useState(`/providers/${provider.id}.png`);
const [imgError, setImgError] = useState(false);
+ const handleImgError = () => {
+ if (imgSrc.endsWith(".png")) {
+ setImgSrc(`/providers/${provider.id}.svg`);
+ } else {
+ setImgError(true);
+ }
+ };
+
const dotColors = {
free: "bg-green-500",
oauth: "bg-blue-500",
@@ -515,13 +524,13 @@ function ProviderCard({ providerId, provider, stats, authType, onToggle }) {
</span>
) : (
<Image
- src={`/providers/${provider.id}.png`}
+ src={imgSrc}
alt={provider.name}
width={30}
height={30}
className="object-contain rounded-lg max-w-[32px] max-h-[32px]"
sizes="32px"
- onError={() => setImgError(true)}
+ onError={handleImgError}
/>
)}
</div>
@@ -602,7 +611,6 @@ function ApiKeyProviderCard({ providerId, provider, stats, authType, onToggle })
const { connected, error, errorCode, errorTime, allDisabled } = stats;
const isCompatible = providerId.startsWith(OPENAI_COMPATIBLE_PREFIX);
const isAnthropicCompatible = providerId.startsWith(ANTHROPIC_COMPATIBLE_PREFIX);
- const [imgError, setImgError] = useState(false);
const dotColors = {
free: "bg-green-500",
@@ -628,6 +636,18 @@ function ApiKeyProviderCard({ providerId, provider, stats, authType, onToggle })
return `/providers/${provider.id}.png`;
};
+ const [imgSrc, setImgSrc] = useState<string>(() => getIconPath());
+ const [imgError, setImgError] = useState(false);
+
+ const handleImgError = () => {
+ const basePath = getIconPath();
+ if (imgSrc.endsWith(".png") && !isCompatible && !isAnthropicCompatible) {
+ setImgSrc(`/providers/${provider.id}.svg`);
+ } else {
+ setImgError(true);
+ }
+ };
+
return (
<Link href={`/dashboard/providers/${providerId}`} className="group">
<Card
@@ -646,13 +666,13 @@ function ApiKeyProviderCard({ providerId, provider, stats, authType, onToggle })
</span>
) : (
<Image
- src={getIconPath()}
+ src={imgSrc || getIconPath()}
alt={provider.name}
width={30}
height={30}
className="object-contain rounded-lg max-w-[30px] max-h-[30px]"
sizes="30px"
- onError={() => setImgError(true)}
+ onError={handleImgError}
/>
)}
</div>