Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
import { PROVIDER_LOGOS } from "../hub/lib/provider-logos";
const HUB_PROVIDER_IDS = new Map([
["openai", "openai"],
["openai_codex", "openai"],
["mistral", "mistralai"],
["deepseek", "deepseek-ai"],
["huggingface", "huggingface"],
["kimi", "moonshotai"],
["qwen", "qwen"],
["qwencloud", "qwen"],
["zai", "zai-org"],
["minimax", "minimax"],
]);
const HUB_LOGO_PATHS = new Map(
PROVIDER_LOGOS.map(({ id, logoPath }) => [id, logoPath]),
);
const CONNECTION_LOGO_PATHS = new Map([
["gemini", "/provider-logos/gemini.svg"],
["anthropic", "/provider-logos/anthropic.svg"],
["openrouter", "/provider-logos/openrouter-mark.svg"],
["vllm", "/provider-logos/vllm.svg"],
["ollama", "/provider-logos/ollama.svg"],
["llama_cpp", "/provider-logos/llama_cpp.svg"],
["liquid", "/provider-logos/liquid.svg"],
["typesafe", "/provider-logos/typesafe.svg"],
["opencode", "/provider-logos/opencode.svg"],
["opencode_go", "/provider-logos/opencode.svg"],
]);
export function providerLogoPath(
providerType: string | undefined | null,
): string | undefined {
if (!providerType) return undefined;
const hubId = HUB_PROVIDER_IDS.get(providerType);
return hubId
? HUB_LOGO_PATHS.get(hubId)
: CONNECTION_LOGO_PATHS.get(providerType);
}