Python
// Provider logo registry (UX-DECISIONS §39): official brand marks for the onboarding
// provider gallery. Most are vendored from the MIT-licensed lobe-icons set; BytePlus is
// its official website mark, used with permission. All stay bundled like connector assets
// (no CDN at runtime). Keys are /v1/providers names; unknown names get no mark (the gallery
// falls back to a neutral monogram). PROVIDER_ORDER is the gallery order — recognition
// first, long tail behind the scroll fold.
import anthropic from "./logos/anthropic.svg";
import openai from "./logos/openai.svg";
// Azure: a simplified "A" mark drawn in-house in Azure blues (no vendored asset).
import azure from "./logos/azure.svg";
import gemini from "./logos/gemini.svg";
import byteplus from "./logos/byteplus.svg";
import volcengine from "./logos/volcengine.svg";
import ollama from "./logos/ollama.svg";
// llama.cpp: selfhst/icons (CC BY 4.0); vLLM: homarr-labs/dashboard-icons (Apache 2.0);
// LM Studio: lobe-icons (MIT).
import llamacpp from "./logos/llamacpp.svg";
import vllm from "./logos/vllm.svg";
import lmstudio from "./logos/lmstudio.svg";
import bedrock from "./logos/bedrock.svg";
import vertex from "./logos/vertex.svg";
import openrouter from "./logos/openrouter.svg";
import orcarouter from "./logos/orcarouter.svg";
import fireworks from "./logos/fireworks.svg";
import together from "./logos/together.svg";
import nvidia from "./logos/nvidia.svg";
import sambanova from "./logos/sambanova.svg";
import atlascloud from "./logos/atlascloud.svg";
import novita from "./logos/novita.svg";
import groq from "./logos/groq.svg";
import zai from "./logos/zai.svg";
import kimi from "./logos/kimi.svg";
import deepseek from "./logos/deepseek.svg";
import mistral from "./logos/mistral.svg";
import qwen from "./logos/qwen.svg";
import minimax from "./logos/minimax.svg";
import xai from "./logos/xai.svg";
import meta from "./logos/meta.svg";
import nebius from "./logos/nebius.svg";
import upstage from "./logos/upstage.svg";
export const PROVIDER_LOGOS: Record<string, string> = {
anthropic,
openai,
// The subscription provider wears the same vendor mark — it's the same models,
// different billing (owner call 2026-08-21: no bare-letter monogram).
"openai-codex": openai,
azure,
gemini,
ark: byteplus,
"ark-agent-plan-cn": volcengine,
meta,
ollama,
llamacpp,
vllm,
lmstudio,
bedrock,
vertex,
openrouter,
// Same mark for the signed-in OpenRouter provider: same models, billed to the account.
"openrouter-account": openrouter,
orcarouter,
fireworks,
together,
nebius,
nvidia,
sambanova,
atlascloud,
novita,
groq,
zai,
kimi,
deepseek,
mistral,
qwen,
minimax,
xai,
upstage,
};
export const PROVIDER_ORDER = [
"anthropic",
"openai",
"azure",
"gemini",
"ark",
"ark-agent-plan-cn",
"meta",
"ollama",
"llamacpp",
"vllm",
"lmstudio",
// Jan, Docker Model Runner and mlx-lm carry no mark yet: the gallery shows the
// neutral monogram (see ProviderMark).
"jan",
"docker",
"mlx",
"bedrock",
"vertex",
"openrouter",
"openrouter-account",
"fireworks",
"together",
"zai",
"kimi",
"deepseek",
"mistral",
"qwen",
"minimax",
"xai",
"nebius",
"orcarouter",
"nvidia",
"sambanova",
"atlascloud",
"novita",
"groq",
"upstage",
// No vendored marks yet for these four: the gallery shows the neutral monogram.
"cerebras",
"huggingface",
"cohere",
"siliconflow",
];
export function providerRank(name: string): number {
const i = PROVIDER_ORDER.indexOf(name);
return i === -1 ? PROVIDER_ORDER.length : i;
}