Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

Polish settings UI and localize provider brand labels

Bingxi Zhao (Frank)f0146a2a9e50
diff --git a/web/components/common/ProviderIcon.tsx b/web/components/common/ProviderIcon.tsx
index 0d538ccbf..ffe5633ae 100644
--- a/web/components/common/ProviderIcon.tsx
+++ b/web/components/common/ProviderIcon.tsx
@@ -1,66 +1,7 @@
import { Bot } from "lucide-react";
+import { providerIconSpec } from "@/lib/provider-branding";
-/**
- * Vendor logos for LLM/embedding providers, keyed by binding name
- * (see deeptutor/services/provider_registry.py). SVGs are vendored from
- * @lobehub/icons-static-svg (MIT) into /public/provider-icons.
- *
- * `mono` icons are solid-fill brand marks that render black as <img>;
- * they get `dark:invert` so they stay visible on dark backgrounds.
- * Unknown/custom bindings fall back to the generic Bot icon.
- */
-const PROVIDER_ICONS: Record<string, { file: string; mono?: boolean }> = {
- openai: { file: "openai.svg", mono: true },
- openai_codex: { file: "openai.svg", mono: true },
- anthropic: { file: "anthropic.svg", mono: true },
- custom_anthropic: { file: "anthropic.svg", mono: true },
- azure_openai: { file: "azure-color.svg" },
- openrouter: { file: "openrouter.svg", mono: true },
- aihubmix: { file: "aihubmix-color.svg" },
- siliconflow: { file: "siliconcloud-color.svg" },
- volcengine: { file: "volcengine-color.svg" },
- volcengine_coding_plan: { file: "volcengine-color.svg" },
- byteplus: { file: "bytedance-color.svg" },
- byteplus_coding_plan: { file: "bytedance-color.svg" },
- github_copilot: { file: "githubcopilot.svg", mono: true },
- deepseek: { file: "deepseek-color.svg" },
- gemini: { file: "gemini-color.svg" },
- google: { file: "gemini-color.svg" },
- zhipu: { file: "zhipu-color.svg" },
- dashscope: { file: "qwen-color.svg" },
- aliyun: { file: "qwen-color.svg" },
- moonshot: { file: "moonshot.svg", mono: true },
- minimax: { file: "minimax-color.svg" },
- minimax_anthropic: { file: "minimax-color.svg" },
- mistral: { file: "mistral-color.svg" },
- stepfun: { file: "stepfun-color.svg" },
- xiaomi_mimo: { file: "xiaomimimo.svg", mono: true },
- vllm: { file: "vllm-color.svg" },
- ollama: { file: "ollama.svg", mono: true },
- lm_studio: { file: "lmstudio.svg", mono: true },
- nvidia_nim: { file: "nvidia-color.svg" },
- groq: { file: "groq.svg", mono: true },
- qianfan: { file: "baiducloud-color.svg" },
- cohere: { file: "cohere-color.svg" },
- jina: { file: "jina.svg", mono: true },
- // Search providers (see SEARCH_PROVIDERS in
- // deeptutor/services/config/provider_runtime.py). brave/duckduckgo/searxng
- // come from simple-icons with the brand color baked in. Keys shared with an
- // LLM binding above (zhipu, qianfan) already resolve and are not repeated.
- // A search provider with no vendored logo falls back to the generic Bot mark
- // rather than borrowing an unrelated brand's.
- tavily: { file: "tavily-color.svg" },
- perplexity: { file: "perplexity-color.svg" },
- exa: { file: "exa-color.svg" },
- brave: { file: "brave.svg" },
- duckduckgo: { file: "duckduckgo.svg" },
- searxng: { file: "searxng.svg" },
- baidu: { file: "baidu-color.svg" },
- // Doubao is Volcengine's own model line, so it carries the Ark mark.
- doubao: { file: "volcengine-color.svg" },
- aliyun_iqs: { file: "qwen-color.svg" },
-};
-
+/** Locally bundled provider marks; no third-party request is needed to render them. */
export default function ProviderIcon({
provider,
size = 13,
@@ -70,28 +11,36 @@ export default function ProviderIcon({
size?: number;
className?: string;
}) {
- const spec = provider
- ? PROVIDER_ICONS[provider.trim().toLowerCase()]
- : undefined;
+ const spec = providerIconSpec(provider);
if (!spec) {
- return (
- <Bot
- size={size}
- strokeWidth={1.7}
- className={`shrink-0 ${className}`.trim()}
- />
- );
+ return <Bot size={size} strokeWidth={1.7} aria-hidden className={`shrink-0 ${className}`.trim()} />;
}
return (
- // eslint-disable-next-line @next/next/no-img-element
- <img
- src={`/provider-icons/${spec.file}`}
- alt=""
+ <span
aria-hidden
- width={size}
- height={size}
- draggable={false}
- className={`shrink-0 select-none ${spec.mono ? "dark:invert" : ""} ${className}`.trim()}
- />
+ className={`inline-flex shrink-0 items-center justify-center ${className}`.trim()}
+ style={{ width: size, height: size }}
+ >
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={`/provider-icons/${spec.file}`}
+ alt=""
+ width={size}
+ height={size}
+ draggable={false}
+ className={`h-full w-full select-none object-contain ${spec.darkFile ? "dark:hidden" : spec.mono ? "dark:invert" : ""}`}
+ />
+ {spec.darkFile && (
+ // eslint-disable-next-line @next/next/no-img-element
+ <img
+ src={`/provider-icons/${spec.darkFile}`}
+ alt=""
+ width={size}
+ height={size}
+ draggable={false}
+ className="hidden h-full w-full select-none object-contain dark:block"
+ />
+ )}
+ </span>
);
}
diff --git a/web/components/settings/AddProviderPanel.tsx b/web/components/settings/AddProviderPanel.tsx
index 39bbca50d..c9b5e7b58 100644
--- a/web/components/settings/AddProviderPanel.tsx
+++ b/web/components/settings/AddProviderPanel.tsx
@@ -3,6 +3,7 @@
import { useId, useState } from 'react'
import { useTranslation } from 'react-i18next'
import ProviderIcon from '@/components/common/ProviderIcon'
+import { formatProviderLabel } from '@/lib/provider-branding'
import type { ApiFormat, ServiceName } from '@/lib/model-catalog-types'
import { SERVICE_TITLES } from '@/lib/provider-registry'
import { inputClass, selectClass, subPanelClass } from './shared'
@@ -37,7 +38,7 @@ export function ProviderProtocol({
}) {
const { t } = useTranslation()
return (
- <label className="block space-y-1.5 text-xs font-medium">
+ <label className="block space-y-1.5 text-[13px] font-medium">
<span>{t('settings.providerServices.protocol')}</span>
<select
className={selectClass}
@@ -67,7 +68,8 @@ export function AddProviderPanel({
onCreate: (custom?: CustomProviderInput) => void
onCancel: () => void
}) {
- const { t } = useTranslation()
+ const { t, i18n } = useTranslation()
+ const uiLanguage = i18n?.resolvedLanguage ?? i18n?.language ?? 'en'
const radioName = useId()
const [filter, setFilter] = useState<string>('all')
const [query, setQuery] = useState('')
@@ -75,7 +77,10 @@ export function AddProviderPanel({
const [url, setUrl] = useState('')
const [protocol, setProtocol] = useState<ApiFormat>('openai_chat')
const custom = vendor === 'custom'
- const visible = options.filter(option => {
+ const visible = options.map(option => ({
+ ...option,
+ label: formatProviderLabel(option.value, option.label, uiLanguage),
+ })).filter(option => {
const category =
filter === 'all' ||
(filter === 'custom'
@@ -125,7 +130,7 @@ export function AddProviderPanel({
setFilter(item)
onVendor('')
}}
- className={`rounded-full border px-3 py-1.5 text-xs ${filter === item ? 'border-[var(--foreground)] bg-[var(--foreground)] text-[var(--background)]' : 'border-[var(--border)] hover:bg-[var(--accent)]'}`}
+ className={`rounded-full border px-3 py-1.5 text-[13px] ${filter === item ? 'border-[var(--foreground)] bg-[var(--foreground)] text-[var(--background)]' : 'border-[var(--border)] hover:bg-[var(--accent)]'}`}
>
{t(`settings.providerServices.filter.${item}`)}
</button>
@@ -142,20 +147,20 @@ export function AddProviderPanel({
className={`min-w-0 rounded-xl border p-3 text-left cursor-pointer outline-none focus-within:ring-2 focus-within:ring-[var(--ring)] ${vendor === option.value ? 'border-[var(--primary)] bg-[var(--accent)]' : 'border-[var(--border)] bg-[var(--background)] hover:bg-[var(--accent)]'}`}
>
<input type="radio" className="sr-only" name={radioName} value={option.value} aria-label={option.value === 'custom' ? t('Custom') : option.label} checked={vendor === option.value} onChange={() => onVendor(option.value)} />
- <span className="flex items-center gap-2 text-sm font-medium">
+ <span className="flex items-start gap-2 text-sm font-medium leading-5">
<ProviderIcon provider={option.value} size={16} />
- {option.value === 'custom' ? t('Custom') : option.label}
+ <span className="min-w-0 break-words">{option.value === 'custom' ? t('Custom') : option.label}</span>
</span>
<span className="mt-2 flex flex-wrap gap-1">
{option.value === 'custom' ? (
- <span className="text-xs text-[var(--muted-foreground)]">
+ <span className="text-[13px] text-[var(--muted-foreground)]">
{t('settings.providerServices.customHint')}
</span>
) : (
option.services.map(service => (
<span
key={service}
- className="rounded bg-[var(--muted)] px-1.5 py-0.5 text-[10px] text-[var(--muted-foreground)]"
+ className="rounded bg-[var(--muted)] px-1.5 py-0.5 text-[11px] text-[var(--muted-foreground)]"
>
{t(SERVICE_TITLES[service])}
</span>
@@ -166,32 +171,32 @@ export function AddProviderPanel({
))}
</div>
{!visible.length && (
- <p role="status" className="py-3 text-xs text-[var(--muted-foreground)]">
+ <p role="status" className="py-3 text-[13px] text-[var(--muted-foreground)]">
{t('settings.providerServices.noMatch')}
</p>
)}
{custom && (
<div className="space-y-3 rounded-xl border border-[var(--border)] bg-[var(--background)] p-4">
- <label className="block space-y-1.5 text-xs font-medium">
+ <label className="block space-y-1.5 text-[13px] font-medium">
<span>{t('settings.providerServices.name')}</span>
<input className={inputClass} value={name} onChange={e => setName(e.target.value)} />
</label>
- <label className="block space-y-1.5 text-xs font-medium">
+ <label className="block space-y-1.5 text-[13px] font-medium">
<span>{t('Provider URL')}</span>
<input className={inputClass} value={url} onChange={e => setUrl(e.target.value)} />
</label>
{url && !validUrl && (
- <p role="status" className="text-xs text-red-600">
+ <p role="status" className="text-[13px] text-red-600">
{t('Enter a valid HTTP or HTTPS provider address.')}
</p>
)}
<ProviderProtocol value={protocol} onChange={setProtocol} allowAuto={false} />
- <p className="text-xs leading-relaxed text-[var(--muted-foreground)]">
+ <p className="text-[13px] leading-relaxed text-[var(--muted-foreground)]">
{t('settings.providerServices.customDescription')}
</p>
</div>
)}
- <p className="text-xs leading-relaxed text-[var(--muted-foreground)]">
+ <p className="text-[13px] leading-relaxed text-[var(--muted-foreground)]">
{t('settings.providerServices.addHint')}
</p>
<div className="flex gap-2 border-t border-[var(--border)] pt-4">
diff --git a/web/components/settings/ModelsWorkspace.tsx b/web/components/settings/ModelsWorkspace.tsx
index a6f4cef5c..baf68a357 100644
--- a/web/components/settings/ModelsWorkspace.tsx
+++ b/web/components/settings/ModelsWorkspace.tsx
@@ -7,6 +7,7 @@ import { useEffect, useId, useRef, useState } from "react";
import Link from "next/link";
import { Check, Plus, SlidersHorizontal, Trash2 } from "lucide-react";
import { useTranslation } from "react-i18next";
+import { formatConfiguredProviderName } from "@/lib/provider-branding";
import ProviderIcon from "@/components/common/ProviderIcon";
import {
useSettings,
@@ -65,7 +66,8 @@ export function ModelsWorkspace({
page: ModelPage;
initialService?: ServiceName;
}) {
- const { t } = useTranslation();
+ const { t, i18n } = useTranslation();
+ const uiLanguage = i18n?.resolvedLanguage ?? i18n?.language ?? "en";
const {
draft,
providers,
@@ -273,7 +275,7 @@ export function ModelsWorkspace({
row.model?.model ||
row.profile.display_name ||
(row.model ? t("New model") : row.profile.name);
- const providerName = provider?.name || t("Provider unavailable");
+ const providerName = provider ? formatConfiguredProviderName(provider.provider, provider.name, uiLanguage) : t("Provider unavailable");
const editing = !adding && row.key === selected;
return (
<button
@@ -292,19 +294,19 @@ export function ModelsWorkspace({
provider={provider?.provider || "custom"}
size={15}
/>
- <span className="min-w-0 flex-1 truncate text-[13.5px] font-medium">
+ <span className="min-w-0 flex-1 truncate text-[14px] font-medium">
{label}
</span>
{isDefault && (
<span
- className="inline-flex shrink-0 items-center gap-0.5 text-[10px] text-[var(--primary)]"
+ className="inline-flex shrink-0 items-center gap-0.5 text-[11px] text-[var(--primary)]"
>
<Check size={13} />
{t(row.service === "search" ? "settings.serviceConfig.defaultSearch" : "Default model")}
</span>
)}
</span>
- <span className="mt-1 flex items-center gap-1.5 pl-[23px] text-[11px] text-[var(--muted-foreground)]">
+ <span className="mt-1 flex items-center gap-1.5 pl-[23px] text-[12px] text-[var(--muted-foreground)]">
<span className="max-w-[45%] truncate">{providerName}</span>
{row.model?.model && (
<>
@@ -314,7 +316,7 @@ export function ModelsWorkspace({
)}
</span>
{(page === "voice" || page === "multimodal" || row.service === "task") && (
- <span className="mt-1.5 ml-[23px] inline-flex rounded-md bg-[color-mix(in_srgb,var(--muted)_70%,transparent)] px-1.5 py-0.5 text-[10px] text-[var(--muted-foreground)]">
+ <span className="mt-1.5 ml-[23px] inline-flex rounded-md bg-[color-mix(in_srgb,var(--muted)_70%,transparent)] px-1.5 py-0.5 text-[11px] text-[var(--muted-foreground)]">
{t(SERVICE_TITLES[row.service])}
</span>
)}
@@ -376,10 +378,11 @@ function ProviderOptions({
sources: ProviderSource[];
declared: (source: ProviderSource) => boolean;
}) {
- const { t } = useTranslation();
+ const { t, i18n } = useTranslation();
+ const uiLanguage = i18n?.resolvedLanguage ?? i18n?.language ?? "en";
const option = (p: ProviderSource) => (
<option key={p.id} value={p.id}>
- {p.name}
+ {formatConfiguredProviderName(p.provider, p.name, uiLanguage)}
</option>
);
const unverified = sources.filter((source) => !declared(source));
@@ -437,14 +440,14 @@ function AddModelPanel({
<h3 className="text-base font-semibold">{title}</h3>
<Link
href="/settings/connections"
- className="shrink-0 text-xs text-[var(--muted-foreground)] underline underline-offset-4 transition-colors hover:text-[var(--foreground)]"
+ className="shrink-0 text-[13px] text-[var(--muted-foreground)] underline underline-offset-4 transition-colors hover:text-[var(--foreground)]"
>
{t("Manage providers")}
</Link>
</div>
<div className="grid gap-4 sm:grid-cols-2">
{(page === "voice" || page === "multimodal") && (
- <label className="space-y-1.5 text-xs font-medium">
+ <label className="space-y-1.5 text-[13px] font-medium">
<span className="block">{t("Model type")}</span>
<select
className={selectClass}
@@ -459,7 +462,7 @@ function AddModelPanel({
</select>
</label>
)}
- <label className="space-y-1.5 text-xs font-medium">
+ <label className="space-y-1.5 text-[13px] font-medium">
<span className="block">{t("Configured provider")}</span>
<select
aria-label={t("Configured provider")}
@@ -472,11 +475,11 @@ function AddModelPanel({
</select>
</label>
</div>
- {service !== "search" && sources.some(source => !declared(source)) && <label className="mt-3 flex items-center gap-2 text-xs">
+ {service !== "search" && sources.some(source => !declared(source)) && <label className="mt-3 flex items-center gap-2 text-[13px]">
<input type="checkbox" checked={custom} onChange={e => { setCustom(e.target.checked); onProvider(""); }} />
{t("settings.serviceConfig.custom")}
</label>}
- <p className="mt-3 text-xs leading-relaxed text-[var(--muted-foreground)]">
+ <p className="mt-3 text-[13px] leading-relaxed text-[var(--muted-foreground)]">
{t(service === "search" ? "settings.serviceConfig.search" : service === "videogen" ? "settings.serviceConfig.video" : "settings.serviceConfig.providers")}
</p>
<div className="mt-5 flex flex-wrap items-center gap-2 border-t border-[color-mix(in_srgb,var(--border)_70%,transparent)] pt-4">
@@ -508,7 +511,8 @@ function ModelEditor({
declared: (source: ProviderSource) => boolean;
onRemoved: () => void;
}) {
- const { t } = useTranslation();
+ const { t, i18n } = useTranslation();
+ const uiLanguage = i18n?.resolvedLanguage ?? i18n?.language ?? "en";
const [custom, setCustom] = useState(false);
const {
draft,
@@ -612,8 +616,8 @@ function ModelEditor({
className="min-w-0 overflow-clip rounded-2xl border border-[color-mix(in_srgb,var(--primary)_35%,var(--border))]"
>
{/* Opaque on purpose: it stays put over the scrolling body. */}
- <header className="sticky top-14 z-10 border-b border-[var(--border)] bg-[color-mix(in_srgb,var(--primary)_4%,var(--background))] px-5 py-4 lg:top-0">
- <div className="mb-2 flex flex-wrap items-center gap-2 text-[11px]">
+ <header className="sticky top-14 z-10 border-b border-[var(--border)] bg-[color-mix(in_srgb,var(--primary)_4%,var(--background))] px-4 py-5 sm:px-6 lg:top-0">
+ <div className="mb-2 flex flex-wrap items-center gap-2 text-[12px]">
<span className="font-medium text-[var(--primary)]">
{t("Currently configuring")}
</span>
@@ -633,23 +637,23 @@ function ModelEditor({
model ? update("name", value) : updateSearch("display_name", value)
}
/>
- <div className="mt-2 flex items-center gap-2 text-xs text-[var(--muted-foreground)]">
+ <div className="mt-2 flex items-center gap-2 text-[13px] text-[var(--muted-foreground)]">
<ProviderIcon provider={provider?.provider || "custom"} size={16} />
<span className="break-all">
- {provider?.name || t("Provider unavailable")}
+ {provider ? formatConfiguredProviderName(provider.provider, provider.name, uiLanguage) : t("Provider unavailable")}
</span>
</div>
{model?.model && (
- <p className="mt-2 break-all font-mono text-[11px] text-[var(--muted-foreground)]">
+ <p className="mt-2 break-all font-mono text-[12px] text-[var(--muted-foreground)]">
{model.model}
</p>
)}
</header>
- <div className="space-y-5 p-5">
+ <div className="space-y-6 p-4 sm:p-6">
{service === "embedding" && model && <EmbeddingModelUsage key={JSON.stringify([profile.id, model.id])} profileId={profile.id} modelId={model.id} />}
<div className="grid gap-x-5 gap-y-4 lg:grid-cols-2">
<div className="space-y-2">
- <label className="block space-y-1.5 text-xs font-medium">
+ <label className="block space-y-1.5 text-[13px] font-medium">
<span className="block">{t("Configured provider")}</span>
<select
aria-label={t("Configured provider")}
@@ -662,19 +666,19 @@ function ModelEditor({
{t("Choose a provider")}
</option>
{provider && !sources.some((p) => p.id === provider.id) && (
- <option value={provider.id}>{provider.name}</option>
+ <option value={provider.id}>{formatConfiguredProviderName(provider.provider, provider.name, uiLanguage)}</option>
)}
<ProviderOptions sources={visible} declared={declared} />
</select>
</label>
- {service !== "search" && sources.some(source => !declared(source) && source.id !== provider?.id) && <label className="flex items-center gap-2 text-xs">
+ {service !== "search" && sources.some(source => !declared(source) && source.id !== provider?.id) && <label className="flex items-center gap-2 text-[13px]">
<input type="checkbox" checked={custom} disabled={managed} onChange={e => setCustom(e.target.checked)} />
{t("settings.serviceConfig.custom")}
</label>}
{/* Why the test below matters more here: nothing vouches for this
pairing yet, so say what request it will actually make. */}
{provider && !declared(provider) && (
- <p className="text-xs leading-relaxed text-[var(--muted-foreground)]">
+ <p className="text-[13px] leading-relaxed text-[var(--muted-foreground)]">
{t(
service === "search"
? "settings.serviceConfig.unsupportedSearch"
@@ -684,7 +688,7 @@ function ModelEditor({
)}
<Link
href={`/settings/connections${provider ? `?provider=${encodeURIComponent(provider.id)}` : ""}`}
- className="inline-block text-xs text-[var(--muted-foreground)] underline underline-offset-4 transition-colors hover:text-[var(--foreground)]"
+ className="inline-block text-[13px] text-[var(--muted-foreground)] underline underline-offset-4 transition-colors hover:text-[var(--foreground)]"
>
{t("Manage provider connection")}
</Link>
@@ -699,7 +703,7 @@ function ModelEditor({
onChange={(value) => update("model", value)}
placeholder={t("Choose a listed model or enter a model ID")}
/>
- <p className="text-xs leading-relaxed text-[var(--muted-foreground)]">
+ <p className="text-[13px] leading-relaxed text-[var(--muted-foreground)]">
{t(
"The display name is used in chat. Double-click the name above or use the edit button to rename it.",
)}
@@ -719,7 +723,7 @@ function ModelEditor({
)
}
/>
- <p className="text-xs leading-relaxed text-[var(--muted-foreground)]">
+ <p className="text-[13px] leading-relaxed text-[var(--muted-foreground)]">
{t(
"Search APIs use an engine configuration rather than a model ID or context window.",
)}
@@ -729,7 +733,7 @@ function ModelEditor({
</div>
{model && provider && !managed && service !== "search" && (
<details open={service === "llm" || service === "task" || service === "embedding"}>
- <summary className="mb-3 cursor-pointer text-xs text-[var(--muted-foreground)]">{t("settings.serviceConfig.discovery")}</summary>
+ <summary className="mb-3 cursor-pointer text-[13px] text-[var(--muted-foreground)]">{t("settings.serviceConfig.discovery")}</summary>
<RegistryProbe
input={providerProbeInput(
provider,
@@ -753,7 +757,7 @@ function ModelEditor({
options={speechOptions} preset={speechPreset} update={update} disabled={managed} />
) : model && <ModelParameters service={service} model={model} update={update} managed={managed} />}
{service === "tts" && model ? <VoicePreviewPanel profileId={profile.id} modelId={model.id} maxChars={Math.min(500, speechPreset?.max_input_chars ?? 500)} /> : (service === "search" || service === "stt" || service === "imagegen" || service === "videogen") ? <ServicePreviewPanel service={service} profile={profile} model={model} /> : <ModelTestPanel service={service} profile={profile} model={model} />}
- {(service === "search" || service === "imagegen" || service === "videogen") && <p className="text-xs leading-relaxed text-[var(--muted-foreground)]">
+ {(service === "search" || service === "imagegen" || service === "videogen") && <p className="text-[13px] leading-relaxed text-[var(--muted-foreground)]">
{t("settings.serviceConfig.tools")} {" "}
<Link href="/settings/tools" className="underline underline-offset-4">{t("settings.serviceConfig.openTools")}</Link>
</p>}
@@ -847,7 +851,7 @@ function ModelParameters({
below the select beside it, so the pair never lined up. */}
<div className="space-y-1.5">
<div className="flex min-h-5 flex-wrap items-center justify-between gap-2">
- <label htmlFor={contextId} className="text-xs font-medium">
+ <label htmlFor={contextId} className="text-[13px] font-medium">
{t("Context length (tokens)")}
</label>
<button
@@ -857,7 +861,7 @@ function ModelParameters({
managed ||
!(model.context_window || model.context_window_tokens)
}
- className="rounded text-xs text-[var(--muted-foreground)] underline underline-offset-4 transition-colors hover:text-[var(--foreground)] disabled:opacity-40 disabled:hover:text-[var(--muted-foreground)]"
+ className="rounded text-[13px] text-[var(--muted-foreground)] underline underline-offset-4 transition-colors hover:text-[var(--foreground)] disabled:opacity-40 disabled:hover:text-[var(--muted-foreground)]"
>
{t("Use default")}
</button>
@@ -875,14 +879,14 @@ function ModelParameters({
placeholder={t("Default")}
/>
</div>
- <p className="text-xs leading-relaxed text-[var(--muted-foreground)]">
+ <p className="text-[13px] leading-relaxed text-[var(--muted-foreground)]">
{t(
"Keep the default, enter a custom value, or use the detected value after testing. Testing does not overwrite your choice.",
)}
</p>
</div>
<div className="space-y-1.5">
- <p className="flex min-h-5 items-center text-xs font-medium">
+ <p className="flex min-h-5 items-center text-[13px] font-medium">
{t("Reasoning effort")}
</p>
<select
@@ -914,13 +918,13 @@ function ModelParameters({
</div>
</div>
<details className={`p-3.5 ${subPanelClass}`}>
- <summary className="cursor-pointer select-none rounded text-xs font-medium marker:text-[var(--muted-foreground)]">
+ <summary className="cursor-pointer select-none rounded text-[13px] font-medium marker:text-[var(--muted-foreground)]">
{t("Model capabilities")}
</summary>
<div className="mt-3 grid gap-3 sm:grid-cols-2">
{(["tools", "vision", "json_output", "reasoning"] as const).map(
(key) => (
- <label key={key} className="space-y-1.5 text-xs">
+ <label key={key} className="space-y-1.5 text-[13px]">
<span className="block">
{t(
{
@@ -971,7 +975,7 @@ function ModelParameters({
</div>
)}
{service === "embedding" && (
- <label className="block space-y-1.5 text-xs font-medium">
+ <label className="block space-y-1.5 text-[13px] font-medium">
<span className="block">{t("Send dimensions in embedding requests")}</span>
<select
className={selectClass}
@@ -994,7 +998,7 @@ function ModelParameters({
</label>
)}
{managed && (
- <p className="text-xs text-[var(--muted-foreground)]">
+ <p className="text-[13px] text-[var(--muted-foreground)]">
{t(
"This signed-in provider manages model IDs, context, and capabilities. You can rename the model and choose its reasoning effort.",
)}
diff --git a/web/components/settings/ProviderServices.tsx b/web/components/settings/ProviderServices.tsx
index 2fec08115..1fa9ce416 100644
--- a/web/components/settings/ProviderServices.tsx
+++ b/web/components/settings/ProviderServices.tsx
@@ -3,6 +3,7 @@
import { useTranslation } from 'react-i18next'
import { useSettings, type ServiceName } from '@/features/settings/store/SettingsStore'
import type { ProviderServiceOverrides } from '@/lib/model-catalog-types'
+import { formatProviderLabel } from '@/lib/provider-branding'
import {
PROVIDER_SERVICES,
SERVICE_TITLES,
@@ -10,7 +11,7 @@ import {
providerServiceSupport,
type ProviderSource,
} from '@/lib/provider-registry'
-import { inputClass, selectClass, subPanelClass } from './shared'
+import { inputClass, selectClass } from './shared'
export function ProviderServices({
source,
@@ -19,7 +20,8 @@ export function ProviderServices({
source: ProviderSource
onChange: (value: ProviderServiceOverrides) => void
}) {
- const { t } = useTranslation()
+ const { t, i18n } = useTranslation()
+ const uiLanguage = i18n?.resolvedLanguage ?? i18n?.language ?? 'en'
const { providers, connectionTargets } = useSettings()
const overrides = source.source.service_overrides ?? {}
function patch(service: ServiceName, value: object) {
@@ -28,24 +30,24 @@ export function ProviderServices({
return (
<section
aria-label={t('settings.providerServices.title')}
- className={`space-y-3 p-4 ${subPanelClass}`}
+ className="space-y-3 border-t border-[var(--border)] pt-6"
>
<div className="flex flex-wrap items-center justify-between gap-2">
<h4 className="text-sm font-medium">{t('settings.providerServices.title')}</h4>
{Object.keys(overrides).length > 0 && (
<button
type="button"
- className="text-xs underline underline-offset-4"
+ className="text-[13px] underline underline-offset-4"
onClick={() => onChange({})}
>
{t('settings.providerServices.reset')}
</button>
)}
</div>
- <p className="text-xs leading-relaxed text-[var(--muted-foreground)]">
+ <p className="text-[13px] leading-relaxed text-[var(--muted-foreground)]">
{t('settings.providerServices.description')}
</p>
- <div className="grid gap-2 sm:grid-cols-2">
+ <div className="grid gap-2.5 sm:grid-cols-2">
{PROVIDER_SERVICES.map(service => {
const support = providerServiceSupport(source, service, connectionTargets, providers)
const adapter = providerAdapter(source, service, connectionTargets, providers)
@@ -61,12 +63,12 @@ export function ProviderServices({
return (
<div
key={service}
- className="rounded-lg border border-[var(--border)] bg-[var(--background)] p-3"
+ className={`min-w-0 rounded-xl border p-3.5 transition-colors ${support.enabled ? "border-[color-mix(in_srgb,var(--primary)_22%,var(--border))] bg-[color-mix(in_srgb,var(--primary)_3%,var(--background))]" : "border-[color-mix(in_srgb,var(--border)_70%,transparent)]"}`}
>
- <label className="flex items-start gap-2 text-xs">
+ <label className="flex cursor-pointer items-start gap-3 text-[13px] leading-5">
<input
type="checkbox"
- className="mt-0.5"
+ className="mt-0.5 h-4 w-4 shrink-0 accent-[var(--primary)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ring)]"
checked={support.enabled}
onChange={e =>
patch(service, {
@@ -77,13 +79,13 @@ export function ProviderServices({
/>
<span>
<span className="block font-medium">{t(SERVICE_TITLES[service])}</span>
- <span className="mt-1 block text-[11px] text-[var(--muted-foreground)]">
+ <span className="mt-1 block text-[12px] text-[var(--muted-foreground)]">
{t(`settings.providerServices.evidence.${support.evidence}`)}
</span>
</span>
</label>
{support.enabled && service !== 'llm' && (
- <details className="mt-3 text-xs">
+ <details className="mt-3 border-t border-[color-mix(in_srgb,var(--border)_65%,transparent)] pt-3 text-[13px]">
<summary className="cursor-pointer text-[var(--muted-foreground)]">
{t('settings.providerServices.connection')}
</summary>
@@ -100,7 +102,7 @@ export function ProviderServices({
)}
{options.map(option => (
<option key={option.value} value={option.value}>
- {option.label}
+ {formatProviderLabel(option.value, option.label, uiLanguage)}
</option>
))}
</select>
diff --git a/web/components/settings/ProvidersWorkspace.tsx b/web/components/settings/ProvidersWorkspace.tsx
index c41153157..d5d2e68f4 100644
--- a/web/components/settings/ProvidersWorkspace.tsx
+++ b/web/components/settings/ProvidersWorkspace.tsx
@@ -7,6 +7,7 @@ import { useEffect, useRef, useState } from "react";
import Link from "next/link";
import { ArrowRight, Cable, Plus, Trash2 } from "lucide-react";
import { useTranslation } from "react-i18next";
+import { formatConfiguredProviderName, formatProviderLabel } from "@/lib/provider-branding";
import ProviderIcon from "@/components/common/ProviderIcon";
import { randomUuid } from "@/lib/random-uuid";
import {
@@ -45,7 +46,8 @@ import {
} from "./WorkspaceShell";
export function ProvidersWorkspace() {
- const { t } = useTranslation();
+ const { t, i18n } = useTranslation();
+ const uiLanguage = i18n?.resolvedLanguage ?? i18n?.language ?? "en";
const {
catalog,
draft,
@@ -93,6 +95,7 @@ export function ProvidersWorkspace() {
providers[service]?.some(p => p.value === option.value && p.status !== "deprecated") ||
Boolean(connectionTargets.find(target => target.provider === option.value)?.services[service]))
})).sort((a, b) => a.label.localeCompare(b.label));
+ const optionLabel = (provider: string) => formatProviderLabel(provider, options.find(p => p.value === provider)?.label ?? provider, uiLanguage);
const source = sources.find((p) => p.id === selected);
const option = options.find((p) => p.value === source?.provider);
const managed = source?.provider === "openai_codex";
@@ -144,7 +147,7 @@ export function ProvidersWorkspace() {
const savedIds = new Set(providerRegistry(catalog).map((p) => p.id));
const saved = Boolean(source && savedIds.has(source.id));
const filtered = sources.filter((p) =>
- `${p.name} ${p.provider}`.toLowerCase().includes(query.toLowerCase()),
+ `${formatConfiguredProviderName(p.provider, p.name, uiLanguage)} ${optionLabel(p.provider)} ${p.provider}`.toLowerCase().includes(query.toLowerCase()),
);
const hints = source ? PROVIDER_SERVICES.filter(service => providerServiceSupport(source, service, connectionTargets, providers).enabled)
.map(service => ["tts", "stt"].includes(service) ? "voice" : ["imagegen", "videogen"].includes(service) ? "generation" : service) : [];
@@ -198,18 +201,18 @@ export function ProvidersWorkspace() {
>
<span className="flex items-center gap-2">
<ProviderIcon provider={p.provider} size={16} />
- <span className="min-w-0 flex-1 truncate text-[13.5px] font-medium">
- {p.name}
+ <span className="min-w-0 flex-1 truncate text-[14px] font-medium">
+ {formatConfiguredProviderName(p.provider, p.name, uiLanguage)}
</span>
</span>
- <span className="mt-1 block pl-[24px] text-[11px] text-[var(--muted-foreground)]">
+ <span className="mt-1 block pl-[24px] text-[12px] text-[var(--muted-foreground)]">
{t("{{count}} configured models", {
count: providerUsage(draft, p),
})}
{!savedIds.has(p.id) && ` · ${t("Not saved")}`}
</span>
<span className="mt-2 flex flex-wrap gap-1 pl-6">
- {PROVIDER_SERVICES.filter(service => providerServiceSupport(p, service, connectionTargets, providers).enabled).map(service => <span key={service} className="rounded bg-[var(--muted)] px-1.5 py-0.5 text-[10px] text-[var(--muted-foreground)]">{t(SERVICE_TITLES[service])}</span>)}
+ {PROVIDER_SERVICES.filter(service => providerServiceSupport(p, service, connectionTargets, providers).enabled).map(service => <span key={service} className="rounded bg-[var(--muted)] px-1.5 py-0.5 text-[11px] text-[var(--muted-foreground)]">{t(SERVICE_TITLES[service])}</span>)}
</span>
</button>
);
@@ -238,8 +241,8 @@ export function ProvidersWorkspace() {
// this pane was drawing preflight's default grey border.
className="min-w-0 overflow-hidden rounded-2xl border border-[color-mix(in_srgb,var(--primary)_35%,var(--border))]"
>
- <header className="border-b border-[var(--border)] bg-[color-mix(in_srgb,var(--primary)_4%,var(--background))] px-5 py-4">
- <p className="mb-1 text-[11px] font-medium text-[var(--primary)]">
+ <header className="border-b border-[var(--border)] bg-[color-mix(in_srgb,var(--primary)_4%,var(--background))] px-4 py-5 sm:px-6">
+ <p className="mb-1 text-[12px] font-medium text-[var(--primary)]">
{t("Configuring provider")}
</p>
<EditableRegistryName
@@ -248,12 +251,12 @@ export function ProvidersWorkspace() {
label={t("Rename provider")}
onChange={(name) => change("name", name)}
/>
- <p className="mt-1 text-xs text-[var(--muted-foreground)]">
- {option?.label || source.provider}
+ <p className="mt-1 text-[13px] text-[var(--muted-foreground)]">
+ {optionLabel(source.provider)}
{!saved && ` · ${t("Not saved")}`}
</p>
</header>
- <div className="space-y-5 p-5">
+ <div className="space-y-6 p-4 sm:p-6">
{managed ? (
<CodexOAuthCard />
) : (
@@ -272,7 +275,7 @@ export function ProvidersWorkspace() {
option?.base_url || "https://api.example.com/v1"
}
/>
- <p className="text-xs leading-relaxed text-[var(--muted-foreground)]">
+ <p className="text-[13px] leading-relaxed text-[var(--muted-foreground)]">
{t(
"Leave blank to use the provider default. Enter a custom URL for a gateway or private deployment.",
)}
@@ -313,7 +316,7 @@ export function ProvidersWorkspace() {
<div className="space-y-2">
<RegistryField label={t("Speech App ID (legacy console only)")}
value={connection.app_id ?? ""} onChange={v => change("app_id", v)} />
- <p className="text-xs leading-relaxed text-[var(--muted-foreground)]">
+ <p className="text-[13px] leading-relaxed text-[var(--muted-foreground)]">
{t("Use the Speech console API key. For the legacy console, enter App ID and put the access token in the key field. Ark keys are separate.")}
</p>
</div>
@@ -321,7 +324,7 @@ export function ProvidersWorkspace() {
{providerServiceSupport(source, "llm", connectionTargets, providers).enabled && <ProviderProtocol value={connection.api_format || "auto"} onChange={value => change("api_format", value)} />}
<ProviderServices key={source.id} source={source} onChange={value => change("service_overrides", value)} />
<details className={`p-3.5 ${subPanelClass}`}>
- <summary className="cursor-pointer select-none rounded text-xs font-medium marker:text-[var(--muted-foreground)]">
+ <summary className="cursor-pointer select-none rounded text-[13px] font-medium marker:text-[var(--muted-foreground)]">
{t("Advanced connection settings")}
</summary>
<div className="mt-4 grid gap-4 sm:grid-cols-2">
@@ -398,7 +401,7 @@ export function ProvidersWorkspace() {
<Link
key={path}
href={`/settings/${path}?provider=${encodeURIComponent(source.id)}`}
- className="inline-flex items-center gap-1 rounded-lg border border-[color-mix(in_srgb,var(--border)_80%,transparent)] px-2.5 py-1.5 text-xs text-[var(--muted-foreground)] transition-[background-color,border-color,color] duration-150 hover:border-[color-mix(in_srgb,var(--foreground)_20%,var(--border))] hover:bg-[var(--accent)] hover:text-[var(--foreground)]"
+ className="inline-flex items-center gap-1 rounded-lg border border-[color-mix(in_srgb,var(--border)_80%,transparent)] px-2.5 py-1.5 text-[13px] text-[var(--muted-foreground)] transition-[background-color,border-color,color] duration-150 hover:border-[color-mix(in_srgb,var(--foreground)_20%,var(--border))] hover:bg-[var(--accent)] hover:text-[var(--foreground)]"
>
{t(label)}
<ArrowRight size={12} />
diff --git a/web/components/settings/RegistryControls.tsx b/web/components/settings/RegistryControls.tsx
index 5f9fcd740..2fd189ae6 100644
--- a/web/components/settings/RegistryControls.tsx
+++ b/web/components/settings/RegistryControls.tsx
@@ -15,14 +15,14 @@ import { inputClass, subPanelClass } from "./shared";
// on press and shows a real focus ring. Disabled buttons keep pointer events —
// several of them explain why they are disabled through `title`.
const registryButtonBase =
- "inline-flex min-h-9 items-center justify-center gap-2 rounded-lg border px-3 text-xs font-medium outline-none transition-[background-color,border-color,color,box-shadow,transform] duration-150 active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--background)] disabled:opacity-40 disabled:active:scale-100";
+ "inline-flex min-h-10 items-center justify-center gap-2 rounded-lg border px-3 text-[13px] font-medium outline-none transition-[background-color,border-color,color,box-shadow,transform] duration-150 active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--background)] disabled:opacity-40 disabled:active:scale-100";
export const registryButton =
`${registryButtonBase} border-[var(--border)] hover:border-[color-mix(in_srgb,var(--foreground)_20%,var(--border))] hover:bg-[var(--accent)] disabled:hover:border-[var(--border)] disabled:hover:bg-transparent`;
/** Destructive action: reads as neutral until you reach for it. */
export const registryDanger =
`${registryButtonBase} border-[var(--border)] text-[var(--muted-foreground)] hover:border-red-300 hover:bg-red-50 hover:text-red-600 disabled:hover:border-[var(--border)] disabled:hover:bg-transparent disabled:hover:text-[var(--muted-foreground)] dark:hover:border-red-900 dark:hover:bg-red-950 dark:hover:text-red-400`;
export const registryPrimary =
- "inline-flex min-h-9 items-center justify-center gap-2 rounded-lg bg-[var(--foreground)] px-4 text-xs font-medium text-[var(--background)] outline-none transition-[background-color,box-shadow,transform] duration-150 hover:bg-[color-mix(in_srgb,var(--foreground)_86%,var(--background))] active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--background)] disabled:opacity-40 disabled:hover:bg-[var(--foreground)] disabled:active:scale-100";
+ "inline-flex min-h-10 items-center justify-center gap-2 rounded-lg bg-[var(--foreground)] px-4 text-[13px] font-medium text-[var(--background)] outline-none transition-[background-color,box-shadow,transform] duration-150 hover:bg-[color-mix(in_srgb,var(--foreground)_86%,var(--background))] active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--background)] disabled:opacity-40 disabled:hover:bg-[var(--foreground)] disabled:active:scale-100";
export function EditableRegistryName({
name,
@@ -51,7 +51,7 @@ export function EditableRegistryName({
return (
<div className="flex min-w-0 items-center gap-2">
<h3
- className="min-w-0 break-all text-base font-semibold"
+ className="min-w-0 break-all text-[18px] font-semibold tracking-tight"
onDoubleClick={() => {
setEditing(true);
}}
@@ -196,7 +196,7 @@ function ProbeForm({
<p className="text-sm font-medium">
{t(listing ? "Provider model list" : "Provider connection")}
</p>
- <p className="mt-1 text-xs text-[var(--muted-foreground)]">
+ <p className="mt-1 text-[13px] text-[var(--muted-foreground)]">
{t(
listing
? "Choose a listed model or enter any model ID below."
@@ -223,7 +223,7 @@ function ProbeForm({
{result && (
<div
role="status"
- className={`text-xs leading-relaxed ${result.status === "connected" ? "text-emerald-700 dark:text-emerald-400" : "text-[var(--muted-foreground)]"}`}
+ className={`text-[13px] leading-relaxed ${result.status === "connected" ? "text-emerald-700 dark:text-emerald-400" : "text-[var(--muted-foreground)]"}`}
>
{t(result.status === "connected" && input.service !== "search" ? "settings.providerServices.catalogListed" : PROBE_MESSAGES[result.status] || PROBE_MESSAGES.http_error)}
{result.warning === "partial_models" && <p className="mt-2">{t("settings.providerServices.partial")}</p>}
@@ -261,15 +261,15 @@ function ProbeForm({
key={label}
className="rounded-lg border border-[color-mix(in_srgb,var(--border)_70%,transparent)] bg-[var(--background)] px-3 py-2"
>
- <p className="text-xs font-medium">{t(label)}</p>
- <p className="mt-1 text-[11px] text-[var(--muted-foreground)]">
+ <p className="text-[13px] font-medium">{t(label)}</p>
+ <p className="mt-1 text-[12px] text-[var(--muted-foreground)]">
{t(status)}
</p>
</div>
);
})}
</div>
- <p className="text-[11px] leading-relaxed text-[var(--muted-foreground)]">
+ <p className="text-[12px] leading-relaxed text-[var(--muted-foreground)]">
{t(
"Detected describes model modalities, not API compatibility. Provider support indicates an available integration; test a specific model to verify your account access.",
)}
@@ -297,7 +297,7 @@ export function RegistryField({
const id = useId();
return (
<div className="space-y-1.5">
- <label htmlFor={id} className="block text-xs font-medium">
+ <label htmlFor={id} className="block text-[13px] font-medium">
{label}
</label>
<input
@@ -409,7 +409,7 @@ export function RegistryModelIdField({
return (
<div ref={box} className="space-y-1.5">
- <label htmlFor={id} className="block text-xs font-medium">
+ <label htmlFor={id} className="block text-[13px] font-medium">
{label}
</label>
<div className="relative">
diff --git a/web/components/settings/SettingsMain.tsx b/web/components/settings/SettingsMain.tsx
index 2104c0186..f97533573 100644
--- a/web/components/settings/SettingsMain.tsx
+++ b/web/components/settings/SettingsMain.tsx
@@ -58,7 +58,7 @@ export default function SettingsMain({ children }: { children: React.ReactNode }
return (
<div className="fixed inset-0 flex h-dvh overflow-hidden bg-[var(--background)]" data-settings-shell>
- <aside className="hidden w-[248px] shrink-0 flex-col border-r border-border/60 bg-[var(--background)] md:flex">
+ <aside className="hidden w-[248px] shrink-0 flex-col border-r border-border/60 bg-[color-mix(in_srgb,var(--muted)_25%,var(--background))] md:flex">
<div className="px-2.5 pb-1.5 pt-4">{returnButton}</div>
<SettingsNav />
</aside>
diff --git a/web/components/settings/SettingsNav.tsx b/web/components/settings/SettingsNav.tsx
index 9c3e30697..4ea596a2b 100644
--- a/web/components/settings/SettingsNav.tsx
+++ b/web/components/settings/SettingsNav.tsx
@@ -60,21 +60,21 @@ export default function SettingsNav({ onNavigate }: { onNavigate?: () => void })
<Search
size={14}
strokeWidth={1.8}
- className="pointer-events-none absolute left-2.5 top-[9px] text-[var(--muted-foreground)]"
+ className="pointer-events-none absolute left-2.5 top-3 text-[var(--muted-foreground)]"
/>
<input
aria-label={t('Search settings')}
placeholder={t('Search settings')}
value={query}
onChange={event => setQuery(event.target.value)}
- className="w-full rounded-full bg-[var(--muted)] py-1.5 pl-8 pr-7 text-[13px] ring-1 ring-inset ring-transparent outline-none placeholder:text-muted-foreground/70 focus:ring-[var(--ring)]"
+ className="w-full rounded-full bg-[var(--muted)] py-2.5 pl-8 pr-7 text-[13px] ring-1 ring-inset ring-transparent outline-none placeholder:text-muted-foreground/70 focus:ring-[var(--ring)]"
/>
{query && (
<button
type="button"
aria-label={t('Clear')}
onClick={() => setQuery('')}
- className="absolute right-1.5 top-[7px] rounded p-0.5 text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)]"
+ className="absolute right-1.5 top-2.5 rounded p-0.5 text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)]"
>
<X size={14} />
</button>
@@ -85,7 +85,7 @@ export default function SettingsNav({ onNavigate }: { onNavigate?: () => void })
.filter(group => group.pages.length)
.map(group => (
<div key={group.label.en} className="mb-0.5">
- <p className="px-2.5 pb-1 pt-3.5 text-[11px] font-medium text-muted-foreground">
+ <p className="px-2.5 pb-1.5 pt-5 text-[12px] font-medium text-muted-foreground">
{tr(group.label)}
</p>
<div className="space-y-0.5">
@@ -100,7 +100,7 @@ export default function SettingsNav({ onNavigate }: { onNavigate?: () => void })
onClick={onNavigate}
aria-current={active ? 'page' : undefined}
data-tour={`tour-nav-${page.key}`}
- className={`flex min-h-8 items-center gap-2 rounded-md px-2.5 py-1.5 text-[13px] outline-none transition-colors focus-visible:ring-2 focus-visible:ring-[var(--ring)] ${active ? 'bg-[var(--accent)] font-medium text-[var(--foreground)]' : 'text-[var(--foreground)] hover:bg-accent/60'}`}
+ className={`flex min-h-9 items-center gap-2 rounded-lg px-2.5 py-2 text-[13px] outline-none transition-colors focus-visible:ring-2 focus-visible:ring-[var(--ring)] ${active ? 'bg-[var(--accent)] font-medium text-[var(--foreground)]' : 'text-[var(--foreground)] hover:bg-accent/60'}`}
>
<Icon size={15} strokeWidth={1.8} className="shrink-0" />
<span>
diff --git a/web/components/settings/WorkspaceShell.tsx b/web/components/settings/WorkspaceShell.tsx
index cc56cffae..b2d6d7c89 100644
--- a/web/components/settings/WorkspaceShell.tsx
+++ b/web/components/settings/WorkspaceShell.tsx
@@ -26,7 +26,7 @@ import { Search } from "lucide-react";
*/
const CARD_BASE =
- "group relative w-full rounded-xl border px-3.5 py-3 text-left outline-none transition-[background-color,border-color,box-shadow,transform] duration-150 active:scale-[0.99] focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--background)]";
+ "group relative w-full rounded-xl border px-4 py-3.5 text-left outline-none transition-[background-color,border-color,box-shadow,transform] duration-150 active:scale-[0.99] focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--background)]";
/** Row in a workspace rail. `active` is the row being edited, not the runtime default. */
export function workspaceCardClass(active: boolean): string {
@@ -45,7 +45,7 @@ export function WorkspaceSplit({
detail: ReactNode;
}) {
return (
- <div className="grid items-start gap-5 xl:grid-cols-[minmax(0,286px)_minmax(0,1fr)] xl:gap-6">
+ <div className="grid items-start gap-5 xl:grid-cols-[minmax(0,272px)_minmax(0,1fr)] xl:gap-6">
{rail}
{detail}
</div>
@@ -202,7 +202,7 @@ export function WorkspaceRail({
value={search.value}
onChange={(event) => search.onChange(event.target.value)}
placeholder={search.placeholder}
- className="w-full rounded-lg border border-[var(--border)] bg-transparent py-2 pl-8 pr-3 text-[13px] outline-none transition-[border-color,box-shadow] duration-150 placeholder:text-[color-mix(in_srgb,var(--muted-foreground)_60%,transparent)] hover:border-[color-mix(in_srgb,var(--foreground)_22%,var(--border))] focus:border-[var(--ring)] focus:ring-2 focus:ring-[color-mix(in_srgb,var(--ring)_16%,transparent)]"
+ className="min-h-10 w-full rounded-lg border border-[var(--border)] bg-transparent py-2.5 pl-8 pr-3 text-[13px] outline-none transition-[border-color,box-shadow] duration-150 placeholder:text-[color-mix(in_srgb,var(--muted-foreground)_75%,transparent)] hover:border-[color-mix(in_srgb,var(--foreground)_22%,var(--border))] focus:border-[var(--ring)] focus:ring-2 focus:ring-[color-mix(in_srgb,var(--ring)_16%,transparent)]"
/>
</div>
{filter}
diff --git a/web/components/settings/shared.tsx b/web/components/settings/shared.tsx
index 88c21721c..c69f68853 100644
--- a/web/components/settings/shared.tsx
+++ b/web/components/settings/shared.tsx
@@ -23,9 +23,9 @@ import { getLocale } from "@/lib/datetime";
// control sits on a line box, so the parent's strut left a few pixels above it
// that a control in a differently-worded column did not have.
export const fieldControlClass =
- "block w-full rounded-lg border border-[var(--border)] px-3 py-2 text-[14px] leading-5 text-[var(--foreground)] outline-none transition-[border-color,box-shadow,background-color] duration-150 hover:border-[color-mix(in_srgb,var(--foreground)_22%,var(--border))] focus:border-[var(--ring)] focus:ring-2 focus:ring-[color-mix(in_srgb,var(--ring)_16%,transparent)] disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:border-[var(--border)]";
+ "block min-h-10 w-full rounded-lg border border-[var(--border)] px-3 py-2.5 text-[14px] leading-5 text-[var(--foreground)] outline-none transition-[border-color,box-shadow,background-color] duration-150 hover:border-[color-mix(in_srgb,var(--foreground)_22%,var(--border))] focus:border-[var(--ring)] focus:ring-2 focus:ring-[color-mix(in_srgb,var(--ring)_16%,transparent)] disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:border-[var(--border)]";
-export const inputClass = `${fieldControlClass} bg-transparent placeholder:text-[color-mix(in_srgb,var(--muted-foreground)_55%,transparent)]`;
+export const inputClass = `${fieldControlClass} bg-transparent placeholder:text-[color-mix(in_srgb,var(--muted-foreground)_75%,transparent)]`;
export const nativeSelectClass = `${fieldControlClass} bg-[var(--background)] cursor-pointer`;
@@ -40,7 +40,7 @@ export const selectOptionClass =
// nothing at all for a hex custom property — so the panels had no fill and the
// pages read as a stack of hairlines. color-mix does compile.
export const subPanelClass =
- "rounded-xl border border-[color-mix(in_srgb,var(--border)_85%,transparent)] bg-[color-mix(in_srgb,var(--muted)_40%,transparent)]";
+ "rounded-xl border border-[color-mix(in_srgb,var(--border)_60%,transparent)] bg-[color-mix(in_srgb,var(--muted)_30%,transparent)]";
export function stringifyExtraHeaders(
value: CatalogProfile["extra_headers"],
@@ -149,13 +149,13 @@ export function SettingRow({
control: React.ReactNode;
}) {
return (
- <div className="flex flex-col items-start justify-between gap-3 sm:flex-row sm:gap-6 border-t border-[color-mix(in_srgb,var(--border)_50%,transparent)] py-3.5 first:border-t-0">
+ <div className="flex flex-col items-start justify-between gap-3 sm:flex-row sm:gap-6 border-t border-[color-mix(in_srgb,var(--border)_50%,transparent)] py-5 first:border-t-0">
<div className="min-w-0 flex-1">
- <div className="text-[13.5px] font-medium text-[var(--foreground)]">
+ <div className="text-[14px] font-medium text-[var(--foreground)]">
{title}
</div>
{description && (
- <p className="mt-1 text-[12px] leading-relaxed text-[var(--muted-foreground)]">
+ <p className="mt-1 text-[13px] leading-relaxed text-[var(--muted-foreground)]">
{description}
</p>
)}
@@ -176,13 +176,13 @@ export function SettingSection({
children: React.ReactNode;
}) {
return (
- <section className="mb-8">
- <header className="mb-2">
+ <section className="mb-10">
+ <header className="mb-3">
<h2 className="text-[15px] font-semibold tracking-tight text-[var(--foreground)]">
{title}
</h2>
{description && (
- <p className="mt-1 text-[12.5px] leading-relaxed text-[var(--muted-foreground)]">
+ <p className="mt-1 text-[13px] leading-relaxed text-[var(--muted-foreground)]">
{description}
</p>
)}
diff --git a/web/lib/provider-branding.ts b/web/lib/provider-branding.ts
new file mode 100644
index 000000000..d50bc3b07
--- /dev/null
+++ b/web/lib/provider-branding.ts
@@ -0,0 +1,146 @@
+/** Provider presentation only. IDs, protocols and saved account names stay intact.
+ * Asset provenance is recorded in public/provider-icons/sources.json. */
+export type ProviderIconSpec = { file: string; mono?: boolean; darkFile?: string };
+export const PROVIDER_ICONS: Readonly<Record<string, ProviderIconSpec>> = {
+ aihubmix: { file: "aihubmix-color.svg" },
+ aliyun: { file: "bailian-color.svg" },
+ aliyun_iqs: { file: "alibabacloud-color.svg" },
+ anthropic: { file: "anthropic.svg", mono: true },
+ api_route: { file: "api-route.png" },
+ atlascloud: { file: "atlascloud.svg", mono: true },
+ azure_openai: { file: "azure-color.svg" },
+ baidu: { file: "baidu-color.svg" },
+ bocha: { file: "bocha-color.svg" },
+ brave: { file: "brave.svg" },
+ byteplus: { file: "byteplus.png" },
+ byteplus_coding_plan: { file: "byteplus.png" },
+ cheaperinference: { file: "cheaperinference.svg" },
+ codebuddy: { file: "codebuddy-official.svg" },
+ cohere: { file: "cohere-color.svg" },
+ dashscope: { file: "bailian-color.svg" },
+ deepseek: { file: "deepseek-color.svg" },
+ doubao: { file: "doubao.png" },
+ duckduckgo: { file: "duckduckgo.svg" },
+ edenai: { file: "edenai.png", darkFile: "edenai-dark.png" },
+ exa: { file: "exa-color.svg" },
+ firecrawl: { file: "firecrawl-color.svg" },
+ futureinfra: { file: "futureinfra.svg" },
+ gemini: { file: "gemini-color.svg" },
+ github_copilot: { file: "githubcopilot.svg", mono: true },
+ google: { file: "gemini-color.svg" },
+ groq: { file: "groq.svg", mono: true },
+ jina: { file: "jina.svg", mono: true },
+ lemonade: { file: "lemonade.ico" },
+ llama_cpp: { file: "llama-cpp.svg", darkFile: "llama-cpp-dark.svg" },
+ lm_studio: { file: "lmstudio.svg", mono: true },
+ minimax: { file: "minimax-color.svg" },
+ minimax_anthropic: { file: "minimax-color.svg" },
+ mistral: { file: "mistral-color.svg" },
+ moonshot: { file: "moonshot.svg", mono: true },
+ novita: { file: "novita-official.svg", mono: true },
+ nvidia_nim: { file: "nvidia-color.svg" },
+ opper: { file: "opper.png", darkFile: "opper-dark.png" },
+ ollama: { file: "ollama.svg", mono: true },
+ openai: { file: "openai.svg", mono: true },
+ openai_codex: { file: "openai.svg", mono: true },
+ openrouter: { file: "openrouter.svg", mono: true },
+ orcarouter: { file: "orcarouter.png" },
+ ovms: { file: "openvino.ico" },
+ perplexity: { file: "perplexity-color.svg" },
+ qianfan: { file: "baiducloud-color.svg" },
+ requesty: { file: "requesty.png" },
+ searxng: { file: "searxng.svg" },
+ serper: { file: "serper.png" },
+ serply: { file: "serply.png" },
+ siliconflow: { file: "siliconcloud-color.svg" },
+ stepfun: { file: "stepfun-color.svg" },
+ tavily: { file: "tavily-color.svg" },
+ unifically: { file: "unifically.webp" },
+ vllm: { file: "vllm-color.svg" },
+ volcengine: { file: "volcengine-color.svg" },
+ volcengine_coding_plan: { file: "volcengine-color.svg" },
+ volcengine_speech: { file: "volcengine-color.svg" },
+ xiaomi_mimo: { file: "xiaomimimo.svg", mono: true },
+ zhipu: { file: "zhipu-color.svg" },
+};
+
+const PROVIDER_ALIASES: Readonly<Record<string, string>> = {
+ "y-api": "y_api",
+ "yapi": "y_api",
+ "azure": "azure_openai",
+ "azure-openai": "azure_openai",
+ "azureopenai": "azure_openai",
+ "google_genai": "gemini",
+ "claude": "anthropic",
+ "github-copilot": "github_copilot",
+ "openai-codex": "openai_codex",
+ "codebuddy-code": "codebuddy",
+ "codebuddy_code": "codebuddy",
+ "workbuddy": "codebuddy",
+ "lm-studio": "lm_studio",
+ "atlas": "atlascloud",
+ "atlas_cloud": "atlascloud",
+ "atlas-cloud": "atlascloud",
+ "eden_ai": "edenai",
+ "novita_ai": "novita",
+ "orca_router": "orcarouter",
+ "orca-router": "orcarouter",
+ "cheaper_inference": "cheaperinference",
+ "api route": "api_route",
+ "future_infra": "futureinfra",
+ "volcenginecodingplan": "volcengine_coding_plan",
+ "bytepluscodingplan": "byteplus_coding_plan"
+};
+
+const CHINESE_NAMES: Readonly<Record<string, { name: string; labels: string[] }>> = {
+ aihubmix: {"name": "推理时代", "labels": ["AiHubMix"]},
+ siliconflow: {"name": "硅基流动", "labels": ["SiliconFlow"]},
+ volcengine: {"name": "火山引擎", "labels": ["VolcEngine", "Volcengine Ark (Seedream)", "Volcengine Ark (Seedance)"]},
+ volcengine_coding_plan: {"name": "火山引擎", "labels": ["VolcEngine Coding Plan"]},
+ volcengine_speech: {"name": "火山引擎豆包语音", "labels": ["Volcengine Speech (Doubao)"]},
+ deepseek: {"name": "深度求索", "labels": ["DeepSeek"]},
+ zhipu: {"name": "智谱", "labels": ["Zhipu AI", "Zhipu"]},
+ dashscope: {"name": "阿里云百炼", "labels": ["DashScope", "Aliyun DashScope"]},
+ aliyun: {"name": "阿里云百炼", "labels": ["Aliyun DashScope"]},
+ aliyun_iqs: {"name": "阿里云信息查询服务", "labels": ["Aliyun IQS"]},
+ moonshot: {"name": "月之暗面", "labels": ["Moonshot", "Moonshot AI"]},
+ minimax: {"name": "稀宇科技", "labels": ["MiniMax"]},
+ minimax_anthropic: {"name": "稀宇科技", "labels": ["MiniMax (Anthropic)"]},
+ stepfun: {"name": "阶跃星辰", "labels": ["Step Fun", "StepFun"]},
+ xiaomi_mimo: {"name": "小米 MiMo", "labels": ["Xiaomi MIMO", "Xiaomi MiMo"]},
+ qianfan: {"name": "百度智能云千帆", "labels": ["Qianfan", "Baidu Qianfan"]},
+ bocha: {"name": "博查", "labels": ["Bocha"]},
+ doubao: {"name": "豆包", "labels": ["Doubao"]},
+ codebuddy: {"name": "腾讯代码助手", "labels": ["CodeBuddy/WorkBuddy", "CodeBuddy"]},
+ baidu: {"name": "百度", "labels": ["Baidu"]},
+};
+
+export function canonicalProviderBrand(provider?: string | null): string {
+ const key = provider?.trim().toLowerCase() ?? "";
+ return Object.hasOwn(PROVIDER_ALIASES, key) ? PROVIDER_ALIASES[key] : key;
+}
+
+export function providerIconSpec(provider?: string | null): ProviderIconSpec | undefined {
+ const key = canonicalProviderBrand(provider);
+ return Object.hasOwn(PROVIDER_ICONS, key) ? PROVIDER_ICONS[key] : undefined;
+}
+
+/** Chinese originals are presentation only and follow the active UI locale. */
+export function formatProviderLabel(provider: string, label: string, language: string): string {
+ const key = canonicalProviderBrand(provider);
+ const chinese = Object.hasOwn(CHINESE_NAMES, key) ? CHINESE_NAMES[key] : undefined;
+ if (!chinese) return label;
+ const suffix = `(${chinese.name})`;
+ const english = label.endsWith(suffix) ? label.slice(0, -suffix.length) : label;
+ if (!/^zh(?:[-_]|$)/i.test(language)) return english;
+ return english.includes(chinese.name) ? english : `${english}${suffix}`;
+}
+
+/** Enrich default account names while preserving names the user chose themselves. */
+export function formatConfiguredProviderName(provider: string, name: string, language: string): string {
+ const key = canonicalProviderBrand(provider);
+ const chinese = Object.hasOwn(CHINESE_NAMES, key) ? CHINESE_NAMES[key] : undefined;
+ const english = formatProviderLabel(provider, name, "en");
+ if (!chinese?.labels.some(label => label.toLowerCase() === english.trim().toLowerCase())) return name;
+ return formatProviderLabel(provider, english, language);
+}
diff --git a/web/public/provider-icons/LICENSE.llama-brand b/web/public/provider-icons/LICENSE.llama-brand
new file mode 100644
index 000000000..c657cab45
--- /dev/null
+++ b/web/public/provider-icons/LICENSE.llama-brand
@@ -0,0 +1,407 @@
+Attribution-NonCommercial 4.0 International
+
+=======================================================================
+
+Creative Commons Corporation ("Creative Commons") is not a law firm and
+does not provide legal services or legal advice. Distribution of
+Creative Commons public licenses does not create a lawyer-client or
+other relationship. Creative Commons makes its licenses and related
+information available on an "as-is" basis. Creative Commons gives no
+warranties regarding its licenses, any material licensed under their
+terms and conditions, or any related information. Creative Commons
+disclaims all liability for damages resulting from their use to the
+fullest extent possible.
+
+Using Creative Commons Public Licenses
+
+Creative Commons public licenses provide a standard set of terms and
+conditions that creators and other rights holders may use to share
+original works of authorship and other material subject to copyright
+and certain other rights specified in the public license below. The
+following considerations are for informational purposes only, are not
+exhaustive, and do not form part of our licenses.
+
+ Considerations for licensors: Our public licenses are
+ intended for use by those authorized to give the public
+ permission to use material in ways otherwise restricted by
+ copyright and certain other rights. Our licenses are
+ irrevocable. Licensors should read and understand the terms
+ and conditions of the license they choose before applying it.
+ Licensors should also secure all rights necessary before
+ applying our licenses so that the public can reuse the
+ material as expected. Licensors should clearly mark any
+ material not subject to the license. This includes other CC-
+ licensed material, or material used under an exception or
+ limitation to copyright. More considerations for licensors:
+ wiki.creativecommons.org/Considerations_for_licensors
+
+ Considerations for the public: By using one of our public
+ licenses, a licensor grants the public permission to use the
+ licensed material under specified terms and conditions. If
+ the licensor's permission is not necessary for any reason--for
+ example, because of any applicable exception or limitation to
+ copyright--then that use is not regulated by the license. Our
+ licenses grant only permissions under copyright and certain
+ other rights that a licensor has authority to grant. Use of
+ the licensed material may still be restricted for other
+ reasons, including because others have copyright or other
+ rights in the material. A licensor may make special requests,
+ such as asking that all changes be marked or described.
+ Although not required by our licenses, you are encouraged to
+ respect those requests where reasonable. More considerations
+ for the public:
+ wiki.creativecommons.org/Considerations_for_licensees
+
+=======================================================================
+
+Creative Commons Attribution-NonCommercial 4.0 International Public
+License
+
+By exercising the Licensed Rights (defined below), You accept and agree
+to be bound by the terms and conditions of this Creative Commons
+Attribution-NonCommercial 4.0 International Public License ("Public
+License"). To the extent this Public License may be interpreted as a
+contract, You are granted the Licensed Rights in consideration of Your
+acceptance of these terms and conditions, and the Licensor grants You
+such rights in consideration of benefits the Licensor receives from
+making the Licensed Material available under these terms and
+conditions.
+
+
+Section 1 -- Definitions.
+
+ a. Adapted Material means material subject to Copyright and Similar
+ Rights that is derived from or based upon the Licensed Material
+ and in which the Licensed Material is translated, altered,
+ arranged, transformed, or otherwise modified in a manner requiring
+ permission under the Copyright and Similar Rights held by the
+ Licensor. For purposes of this Public License, where the Licensed
+ Material is a musical work, performance, or sound recording,
+ Adapted Material is always produced where the Licensed Material is
+ synched in timed relation with a moving image.
+
+ b. Adapter's License means the license You apply to Your Copyright
+ and Similar Rights in Your contributions to Adapted Material in
+ accordance with the terms and conditions of this Public License.
+
+ c. Copyright and Similar Rights means copyright and/or similar rights
+ closely related to copyright including, without limitation,
+ performance, broadcast, sound recording, and Sui Generis Database
+ Rights, without regard to how the rights are labeled or
+ categorized. For purposes of this Public License, the rights
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
+ Rights.
+ d. Effective Technological Measures means those measures that, in the
+ absence of proper authority, may not be circumvented under laws
+ fulfilling obligations under Article 11 of the WIPO Copyright
+ Treaty adopted on December 20, 1996, and/or similar international
+ agreements.
+
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
+ any other exception or limitation to Copyright and Similar Rights
+ that applies to Your use of the Licensed Material.
+
+ f. Licensed Material means the artistic or literary work, database,
+ or other material to which the Licensor applied this Public
+ License.
+
+ g. Licensed Rights means the rights granted to You subject to the
+ terms and conditions of this Public License, which are limited to
+ all Copyright and Similar Rights that apply to Your use of the
+ Licensed Material and that the Licensor has authority to license.
+
+ h. Licensor means the individual(s) or entity(ies) granting rights
+ under this Public License.
+
+ i. NonCommercial means not primarily intended for or directed towards
+ commercial advantage or monetary compensation. For purposes of
+ this Public License, the exchange of the Licensed Material for
+ other material subject to Copyright and Similar Rights by digital
+ file-sharing or similar means is NonCommercial provided there is
+ no payment of monetary compensation in connection with the
+ exchange.
+
+ j. Share means to provide material to the public by any means or
+ process that requires permission under the Licensed Rights, such
+ as reproduction, public display, public performance, distribution,
+ dissemination, communication, or importation, and to make material
+ available to the public including in ways that members of the
+ public may access the material from a place and at a time
+ individually chosen by them.
+
+ k. Sui Generis Database Rights means rights other than copyright
+ resulting from Directive 96/9/EC of the European Parliament and of
+ the Council of 11 March 1996 on the legal protection of databases,
+ as amended and/or succeeded, as well as other essentially
+ equivalent rights anywhere in the world.
+
+ l. You means the individual or entity exercising the Licensed Rights
+ under this Public License. Your has a corresponding meaning.
+
+
+Section 2 -- Scope.
+
+ a. License grant.
+
+ 1. Subject to the terms and conditions of this Public License,
+ the Licensor hereby grants You a worldwide, royalty-free,
+ non-sublicensable, non-exclusive, irrevocable license to
+ exercise the Licensed Rights in the Licensed Material to:
+
+ a. reproduce and Share the Licensed Material, in whole or
+ in part, for NonCommercial purposes only; and
+
+ b. produce, reproduce, and Share Adapted Material for
+ NonCommercial purposes only.
+
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
+ Exceptions and Limitations apply to Your use, this Public
+ License does not apply, and You do not need to comply with
+ its terms and conditions.
+
+ 3. Term. The term of this Public License is specified in Section
+ 6(a).
+
+ 4. Media and formats; technical modifications allowed. The
+ Licensor authorizes You to exercise the Licensed Rights in
+ all media and formats whether now known or hereafter created,
+ and to make technical modifications necessary to do so. The
+ Licensor waives and/or agrees not to assert any right or
+ authority to forbid You from making technical modifications
+ necessary to exercise the Licensed Rights, including
+ technical modifications necessary to circumvent Effective
+ Technological Measures. For purposes of this Public License,
+ simply making modifications authorized by this Section 2(a)
+ (4) never produces Adapted Material.
+
+ 5. Downstream recipients.
+
+ a. Offer from the Licensor -- Licensed Material. Every
+ recipient of the Licensed Material automatically
+ receives an offer from the Licensor to exercise the
+ Licensed Rights under the terms and conditions of this
+ Public License.
+
+ b. No downstream restrictions. You may not offer or impose
+ any additional or different terms or conditions on, or
+ apply any Effective Technological Measures to, the
+ Licensed Material if doing so restricts exercise of the
+ Licensed Rights by any recipient of the Licensed
+ Material.
+
+ 6. No endorsement. Nothing in this Public License constitutes or
+ may be construed as permission to assert or imply that You
+ are, or that Your use of the Licensed Material is, connected
+ with, or sponsored, endorsed, or granted official status by,
+ the Licensor or others designated to receive attribution as
+ provided in Section 3(a)(1)(A)(i).
+
+ b. Other rights.
+
+ 1. Moral rights, such as the right of integrity, are not
+ licensed under this Public License, nor are publicity,
+ privacy, and/or other similar personality rights; however, to
+ the extent possible, the Licensor waives and/or agrees not to
+ assert any such rights held by the Licensor to the limited
+ extent necessary to allow You to exercise the Licensed
+ Rights, but not otherwise.
+
+ 2. Patent and trademark rights are not licensed under this
+ Public License.
+
+ 3. To the extent possible, the Licensor waives any right to
+ collect royalties from You for the exercise of the Licensed
+ Rights, whether directly or through a collecting society
+ under any voluntary or waivable statutory or compulsory
+ licensing scheme. In all other cases the Licensor expressly
+ reserves any right to collect such royalties, including when
+ the Licensed Material is used other than for NonCommercial
+ purposes.
+
+
+Section 3 -- License Conditions.
+
+Your exercise of the Licensed Rights is expressly made subject to the
+following conditions.
+
+ a. Attribution.
+
+ 1. If You Share the Licensed Material (including in modified
+ form), You must:
+
+ a. retain the following if it is supplied by the Licensor
+ with the Licensed Material:
+
+ i. identification of the creator(s) of the Licensed
+ Material and any others designated to receive
+ attribution, in any reasonable manner requested by
+ the Licensor (including by pseudonym if
+ designated);
+
+ ii. a copyright notice;
+
+ iii. a notice that refers to this Public License;
+
+ iv. a notice that refers to the disclaimer of
+ warranties;
+
+ v. a URI or hyperlink to the Licensed Material to the
+ extent reasonably practicable;
+
+ b. indicate if You modified the Licensed Material and
+ retain an indication of any previous modifications; and
+
+ c. indicate the Licensed Material is licensed under this
+ Public License, and include the text of, or the URI or
+ hyperlink to, this Public License.
+
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
+ reasonable manner based on the medium, means, and context in
+ which You Share the Licensed Material. For example, it may be
+ reasonable to satisfy the conditions by providing a URI or
+ hyperlink to a resource that includes the required
+ information.
+
+ 3. If requested by the Licensor, You must remove any of the
+ information required by Section 3(a)(1)(A) to the extent
+ reasonably practicable.
+
+ 4. If You Share Adapted Material You produce, the Adapter's
+ License You apply must not prevent recipients of the Adapted
+ Material from complying with this Public License.
+
+
+Section 4 -- Sui Generis Database Rights.
+
+Where the Licensed Rights include Sui Generis Database Rights that
+apply to Your use of the Licensed Material:
+
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
+ to extract, reuse, reproduce, and Share all or a substantial
+ portion of the contents of the database for NonCommercial purposes
+ only;
+
+ b. if You include all or a substantial portion of the database
+ contents in a database in which You have Sui Generis Database
+ Rights, then the database in which You have Sui Generis Database
+ Rights (but not its individual contents) is Adapted Material; and
+
+ c. You must comply with the conditions in Section 3(a) if You Share
+ all or a substantial portion of the contents of the database.
+
+For the avoidance of doubt, this Section 4 supplements and does not
+replace Your obligations under this Public License where the Licensed
+Rights include other Copyright and Similar Rights.
+
+
+Section 5 -- Disclaimer of Warranties and Limitation of Liability.
+
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
+
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
+
+ c. The disclaimer of warranties and limitation of liability provided
+ above shall be interpreted in a manner that, to the extent
+ possible, most closely approximates an absolute disclaimer and
+ waiver of all liability.
+
+
+Section 6 -- Term and Termination.
+
+ a. This Public License applies for the term of the Copyright and
+ Similar Rights licensed here. However, if You fail to comply with
+ this Public License, then Your rights under this Public License
+ terminate automatically.
+
+ b. Where Your right to use the Licensed Material has terminated under
+ Section 6(a), it reinstates:
+
+ 1. automatically as of the date the violation is cured, provided
+ it is cured within 30 days of Your discovery of the
+ violation; or
+
+ 2. upon express reinstatement by the Licensor.
+
+ For the avoidance of doubt, this Section 6(b) does not affect any
+ right the Licensor may have to seek remedies for Your violations
+ of this Public License.
+
+ c. For the avoidance of doubt, the Licensor may also offer the
+ Licensed Material under separate terms or conditions or stop
+ distributing the Licensed Material at any time; however, doing so
+ will not terminate this Public License.
+
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
+ License.
+
+
+Section 7 -- Other Terms and Conditions.
+
+ a. The Licensor shall not be bound by any additional or different
+ terms or conditions communicated by You unless expressly agreed.
+
+ b. Any arrangements, understandings, or agreements regarding the
+ Licensed Material not stated herein are separate from and
+ independent of the terms and conditions of this Public License.
+
+
+Section 8 -- Interpretation.
+
+ a. For the avoidance of doubt, this Public License does not, and
+ shall not be interpreted to, reduce, limit, restrict, or impose
+ conditions on any use of the Licensed Material that could lawfully
+ be made without permission under this Public License.
+
+ b. To the extent possible, if any provision of this Public License is
+ deemed unenforceable, it shall be automatically reformed to the
+ minimum extent necessary to make it enforceable. If the provision
+ cannot be reformed, it shall be severed from this Public License
+ without affecting the enforceability of the remaining terms and
+ conditions.
+
+ c. No term or condition of this Public License will be waived and no
+ failure to comply consented to unless expressly agreed to by the
+ Licensor.
+
+ d. Nothing in this Public License constitutes or may be interpreted
+ as a limitation upon, or waiver of, any privileges and immunities
+ that apply to the Licensor or You, including from the legal
+ processes of any jurisdiction or authority.
+
+=======================================================================
+
+Creative Commons is not a party to its public
+licenses. Notwithstanding, Creative Commons may elect to apply one of
+its public licenses to material it publishes and in those instances
+will be considered the “Licensor.” The text of the Creative Commons
+public licenses is dedicated to the public domain under the CC0 Public
+Domain Dedication. Except for the limited purpose of indicating that
+material is shared under a Creative Commons public license or as
+otherwise permitted by the Creative Commons policies published at
+creativecommons.org/policies, Creative Commons does not authorize the
+use of the trademark "Creative Commons" or any other trademark or logo
+of Creative Commons without its prior written consent including,
+without limitation, in connection with any unauthorized modifications
+to any of its public licenses or any other arrangements,
+understandings, or agreements concerning use of licensed material. For
+the avoidance of doubt, this paragraph does not form part of the
+public licenses.
+
+Creative Commons may be contacted at creativecommons.org.
diff --git a/web/public/provider-icons/LICENSE.lobehub b/web/public/provider-icons/LICENSE.lobehub
new file mode 100644
index 000000000..1dd53d2a9
--- /dev/null
+++ b/web/public/provider-icons/LICENSE.lobehub
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 LobeHub
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/web/public/provider-icons/alibabacloud-color.svg b/web/public/provider-icons/alibabacloud-color.svg
new file mode 100644
index 000000000..56c20781e
--- /dev/null
+++ b/web/public/provider-icons/alibabacloud-color.svg
@@ -0,0 +1 @@
+<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>AlibabaCloud</title><path d="M14.752 4.64h5.274C22.242 4.64 24 6.475 24 8.691V15.8a3.947 3.947 0 01-3.974 3.975h-5.274l1.299-1.835 3.822-1.222c.688-.23 1.146-.918 1.146-1.605v-5.81c0-.687-.458-1.375-1.146-1.605L16.05 6.475l-1.3-1.835zM2.98 15.111c0 .688.46 1.376 1.147 1.606l3.822 1.146 1.3 1.835H3.974A3.947 3.947 0 010 15.723V8.69c0-2.216 1.758-4.05 3.975-4.05h5.273L7.95 6.474 4.127 7.697c-.688.23-1.146.918-1.146 1.606v5.808z" fill="#FF6A00"></path><path d="M16.051 11.213H8.025v1.835h8.026v-1.835z" fill="#FF6A00"></path></svg>
\ No newline at end of file
diff --git a/web/public/provider-icons/api-route.png b/web/public/provider-icons/api-route.png
new file mode 100644
index 000000000..d740a303a
Binary files /dev/null and b/web/public/provider-icons/api-route.png differ
diff --git a/web/public/provider-icons/atlascloud.svg b/web/public/provider-icons/atlascloud.svg
new file mode 100644
index 000000000..f8479194a
--- /dev/null
+++ b/web/public/provider-icons/atlascloud.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Atlas Cloud</title><path d="M20.2,18.01L12,0.47,3.8,18.01l-2.58,5.52c1.62,-1.05,3.39,-1.86,5.26,-2.41,1.76,-0.51,3.61,-0.79,5.52,-0.79,0.98,0,1.95,0.08,2.9,0.22l-1.86,-4.3c-0.53,-0.1,-2.87,-0.1,-4.59,0.3l3.56,-8.28,5.52,12.85c0.01,0,0.02,0.01,0.03,0.01,1.86,0.55,3.62,1.36,5.23,2.4l-2.58,-5.52Z"></path></svg>
\ No newline at end of file
diff --git a/web/public/provider-icons/bailian-color.svg b/web/public/provider-icons/bailian-color.svg
new file mode 100644
index 000000000..9acccd083
--- /dev/null
+++ b/web/public/provider-icons/bailian-color.svg
@@ -0,0 +1 @@
+<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>BaiLian</title><path d="M6.336 8.919v6.162l5.335-3.083L6.337 8.92z" fill="#1C54E3"></path><path d="M21.394 5.288s-.006-.006-.01-.006L17.01 2.754 6.336 8.92l5.335 3.082 9.701-5.6.016-.01a.635.635 0 00.006-1.1v-.003z" fill="#AA9AFF"></path><path d="M21.71 12.465a.62.62 0 00-.316.085s-.006 0-.009.003l-4.375 2.528 5.05 2.915h.006a2.06 2.06 0 00.28-1.04v-3.855a.637.637 0 00-.636-.636z" fill="#00EAD1"></path><path d="M22.06 17.996l-5.05-2.915L6.34 21.242l4.27 2.465s.016.006.022.012a2.102 2.102 0 002.093 0c.006-.003.016-.006.022-.012l8.538-4.93c.003 0 .006-.003.01-.006.321-.183.589-.45.775-.772h-.006l-.004-.003z" fill="#00CEC9"></path><path d="M11.672 11.998l-5.336 3.083-1.444.832-3.605 2.083H1.28c.173.303.416.555.709.738l.078.044.016.01.02.012 4.232 2.442 10.671-6.161-5.335-3.082z" fill="#00EAD1"></path><path d="M12.74.29c-.1-.06-.208-.107-.315-.148-.02-.006-.038-.016-.057-.022a2.121 2.121 0 00-.7-.12c-.233 0-.457.038-.668.11l-.031.01a2.196 2.196 0 00-.372.17L2.068 5.222s-.003 0-.006.003c-.324.183-.592.451-.781.773h.006l5.049 2.918L17.01 2.758 12.74.29z" fill="#7347FF"></path><path d="M1.287 6.001H1.28A2.06 2.06 0 001 7.041v9.915c0 .378.1.735.28 1.043h.007l5.049-2.918V8.919l-5.05-2.918z" fill="#0423DA"></path></svg>
\ No newline at end of file
diff --git a/web/public/provider-icons/bocha-color.svg b/web/public/provider-icons/bocha-color.svg
new file mode 100644
index 000000000..c7c0a4d40
--- /dev/null
+++ b/web/public/provider-icons/bocha-color.svg
@@ -0,0 +1 @@
+<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Bocha</title><path d="M6.98 2c2.351.265 3.905 1.955 3.987 4.31a.035.035 0 00.019.031.036.036 0 00.036-.001c5.432-3.05 12.168.3 12.921 6.48.31 2.535-.668 5.04-2.33 6.946-1.41 1.619-3.653 2.561-5.763 2.738h-.996c-3.945-.28-7.106-2.99-7.99-6.805a.302.302 0 00-.078-.145l.013-.027a.114.114 0 00.01-.055l-.162-2.05.014-8.569L6.666 2h.314zm14.102 17.852c-.32-.386-.527-.643-.62-.773-.74-1.011-1.058-2.195-.952-3.552.044-.57.296-1.117.263-1.744-.146-2.74-2.503-4.64-5.21-4.232-1.772.268-3.215 1.678-3.61 3.4a4.44 4.44 0 001.574 4.488c1.119.879 2.37 1.166 3.753.86.675-.15 1.04-.226 1.096-.23 1.126-.083 2.098.273 2.918 1.069.486.472.74.718.763.738a.017.017 0 00.024 0 .017.017 0 000-.024z" fill="#006EFF"></path><path d="M6.661 4.854l-.014 8.568-2.921-5.847-1.488-3.048a.106.106 0 01.022-.124.11.11 0 01.037-.024c1.57-.602 3.025-.444 4.364.475z" fill="#A5CCFF"></path><path d="M3.726 7.575l2.921 5.847.161 2.05a.114.114 0 01-.01.055l-.012.027L.02 8.821a.07.07 0 01.001-.1C1.064 7.747 2.3 7.365 3.726 7.576z" fill="#A5CCFF" fill-opacity=".647"></path></svg>
\ No newline at end of file
diff --git a/web/public/provider-icons/byteplus.png b/web/public/provider-icons/byteplus.png
new file mode 100644
index 000000000..afd8401a7
Binary files /dev/null and b/web/public/provider-icons/byteplus.png differ
diff --git a/web/public/provider-icons/cheaperinference.svg b/web/public/provider-icons/cheaperinference.svg
new file mode 100644
index 000000000..f389b7a49
--- /dev/null
+++ b/web/public/provider-icons/cheaperinference.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
+ <rect x=".75" y=".75" width="62.5" height="62.5" rx="13.5" fill="#fff" stroke="#040d10" stroke-opacity=".09"/>
+ <path fill="#040d10" d="M38.25 15.75H27.4C18.07 15.75 10.5 23.03 10.5 32c0 8.97 7.52 16.25 16.85 16.25l10.9-10.7h-9.7a5.57 5.57 0 0 1-5.6-5.55c0-3.1 2.5-5.6 5.6-5.6h9.7V15.75Z"/>
+ <path fill="#040d10" d="m41.4 25.55 7.74-8.1c1.48-1.55 4.11-.5 4.11 1.64v26.59a2.57 2.57 0 0 1-2.57 2.57H41.4v-22.7Z"/>
+</svg>
diff --git a/web/public/provider-icons/codebuddy-official.svg b/web/public/provider-icons/codebuddy-official.svg
new file mode 100644
index 000000000..b453b8778
--- /dev/null
+++ b/web/public/provider-icons/codebuddy-official.svg
@@ -0,0 +1,37 @@
+<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g clip-path="url(#clip0_5110_14771)">
+<rect width="40" height="40" rx="20" fill="url(#paint0_linear_5110_14771)"/>
+<g filter="url(#filter0_f_5110_14771)">
+<circle cx="12.6071" cy="34.9794" r="14.081" fill="#32E6B9" fill-opacity="0.4"/>
+</g>
+<g filter="url(#filter1_f_5110_14771)">
+<circle cx="33.3404" cy="43.6185" r="12.8704" fill="#32E6B9"/>
+</g>
+<path d="M27.6897 3.3426C28.057 3.01322 28.0795 2.99983 28.3485 2.98366C28.7851 2.95177 29.1858 3.16107 29.8664 3.78072C31.4566 5.22574 33.6703 8.19724 35.047 10.7343L35.5796 11.7191L36.3309 12.0927C37.0562 12.4593 38.2459 13.2111 38.7428 13.614C38.9673 13.7997 38.9992 13.8032 39.2326 13.7124C40.2872 13.3017 41.7982 13.846 43.1307 15.1244C44.3302 16.274 45.479 18.2384 45.9191 19.8778C45.9833 20.1417 46.0683 20.709 46.0994 21.1314C46.1997 22.6144 45.7243 23.7986 44.8085 24.3349C44.6213 24.443 44.6085 24.4725 44.6137 24.939C44.6559 27.1604 44.0571 29.3777 42.8543 31.54C41.4965 33.9678 39.0794 36.4798 35.8073 38.846C34.0502 40.1247 29.8918 42.5469 28.0122 43.3973C23.5096 45.4244 19.8999 46.2022 16.7645 45.8181C14.8943 45.5915 12.7771 44.8611 11.5246 44.0137C11.1951 43.786 11.1428 43.7719 10.8909 43.8439C9.55017 44.2289 7.79442 43.4374 6.30272 41.7817C5.70771 41.1197 4.74709 39.4939 4.43575 38.6241C3.71569 36.5887 3.85859 34.752 4.81783 33.6551C5.0657 33.3725 5.07387 33.3607 5.01972 32.8856C4.93033 32.1079 4.88982 30.9566 4.93066 30.2138L4.96343 29.5205L3.92091 27.6777C2.3078 24.8074 1.28326 22.3968 0.887982 20.5554C0.679402 19.546 0.692781 19.0981 0.949061 18.7667C1.10529 18.5666 1.61622 18.3594 2.23252 18.2455C3.78518 17.9729 7.17203 18.2198 10.9394 18.885L11.3303 18.9525L12.1903 18.1921C13.6179 16.9275 14.5665 16.2176 16.315 15.1274C18.1373 13.9872 20.1943 13.0498 22.5103 12.3071L23.2533 12.0687L23.6615 10.9964C25.1239 7.13587 26.6218 4.28969 27.6897 3.3426ZM15.4393 23.1261C13.7864 24.0804 12.9602 24.5582 12.3529 25.093C9.89364 27.2585 8.9738 30.6888 10.0208 33.7938C10.2794 34.5606 10.7568 35.387 11.7111 37.0398C12.6653 38.6926 13.1424 39.5194 13.6771 40.1267C15.8426 42.5859 19.2732 43.5045 22.3783 42.4574C23.145 42.1989 23.972 41.7223 25.6248 40.768L35.1333 35.2783C36.7862 34.324 37.6124 33.8462 38.2196 33.3114C40.6789 31.1459 41.5988 27.7156 40.5518 24.6105C40.2932 23.8438 39.8157 23.0174 38.8615 21.3646C37.9072 19.7117 37.4302 18.885 36.8955 18.2777C34.7299 15.8185 31.2993 14.8999 28.1943 15.947C27.4275 16.2055 26.6006 16.6821 24.9478 17.6364L15.4393 23.1261Z" fill="url(#paint1_linear_5110_14771)"/>
+<rect x="15.8816" y="30.0273" width="4.00904" height="8.32646" rx="2.00452" transform="rotate(-30 15.8816 30.0273)" fill="white"/>
+<rect x="26.6978" y="23.7812" width="4.00904" height="8.32646" rx="2.00452" transform="rotate(-30 26.6978 23.7812)" fill="white"/>
+</g>
+<defs>
+<filter id="filter0_f_5110_14771" x="-14.9163" y="7.45599" width="55.0468" height="55.047" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
+<feFlood flood-opacity="0" result="BackgroundImageFix"/>
+<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
+<feGaussianBlur stdDeviation="6.72123" result="effect1_foregroundBlur_5110_14771"/>
+</filter>
+<filter id="filter1_f_5110_14771" x="9.46959" y="19.7477" width="47.7417" height="47.741" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
+<feFlood flood-opacity="0" result="BackgroundImageFix"/>
+<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
+<feGaussianBlur stdDeviation="5.50019" result="effect1_foregroundBlur_5110_14771"/>
+</filter>
+<linearGradient id="paint0_linear_5110_14771" x1="20" y1="0" x2="20" y2="40" gradientUnits="userSpaceOnUse">
+<stop stop-color="#6C4DFF"/>
+<stop offset="1" stop-color="#583ED3"/>
+</linearGradient>
+<linearGradient id="paint1_linear_5110_14771" x1="14.639" y1="10.7917" x2="32.1712" y2="41.1585" gradientUnits="userSpaceOnUse">
+<stop stop-color="white" stop-opacity="0.8"/>
+<stop offset="0.437689" stop-color="white"/>
+</linearGradient>
+<clipPath id="clip0_5110_14771">
+<rect width="40" height="40" rx="20" fill="white"/>
+</clipPath>
+</defs>
+</svg>
diff --git a/web/public/provider-icons/doubao.png b/web/public/provider-icons/doubao.png
new file mode 100644
index 000000000..6a86212c1
Binary files /dev/null and b/web/public/provider-icons/doubao.png differ
diff --git a/web/public/provider-icons/edenai-dark.png b/web/public/provider-icons/edenai-dark.png
new file mode 100644
index 000000000..314201143
Binary files /dev/null and b/web/public/provider-icons/edenai-dark.png differ
diff --git a/web/public/provider-icons/edenai.png b/web/public/provider-icons/edenai.png
new file mode 100644
index 000000000..07a21b56d
Binary files /dev/null and b/web/public/provider-icons/edenai.png differ
diff --git a/web/public/provider-icons/firecrawl-color.svg b/web/public/provider-icons/firecrawl-color.svg
new file mode 100644
index 000000000..25e63a037
--- /dev/null
+++ b/web/public/provider-icons/firecrawl-color.svg
@@ -0,0 +1 @@
+<svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Firecrawl</title><path d="M18.183 7.67c-.939.278-1.647.905-2.166 1.586-.11.146-.343.036-.299-.143.993-4.058-.318-7.432-4.407-9.092a.272.272 0 00-.368.317C12.803 7.76 4.98 7.135 5.969 15.55a.17.17 0 01-.266.159c-.37-.265-.784-.817-1.068-1.205a.17.17 0 00-.302.054A8.631 8.631 0 004 16.9a8.43 8.43 0 003.843 7.07c.133.086.303-.038.258-.189a4.533 4.533 0 01-.133-2.041c.097-.637.32-1.244.694-1.797 1.283-1.914 3.854-3.763 3.443-6.273-.026-.16.162-.264.281-.155 1.812 1.645 2.17 3.858 1.873 5.844-.026.172.192.264.302.129.277-.345.615-.647.983-.875a.17.17 0 01.25.088c.204.592.508 1.148.796 1.704a4.528 4.528 0 01.307 3.375.17.17 0 00.257.192A8.43 8.43 0 0021 16.9a8.746 8.746 0 00-.524-2.98c-.718-1.982-2.54-3.47-2.08-6.053a.17.17 0 00-.213-.195z" fill="#ff4d00"></path></svg>
\ No newline at end of file
diff --git a/web/public/provider-icons/futureinfra.svg b/web/public/provider-icons/futureinfra.svg
new file mode 100644
index 000000000..f74d45118
--- /dev/null
+++ b/web/public/provider-icons/futureinfra.svg
@@ -0,0 +1,10 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" role="img" aria-label="FutureInfra">
+ <!-- 파비콘은 16px 에서 알아볼 수 있어야 한다. 획을 최소로.
+ 터미널 프롬프트(>_) = 손으로 치는 인프라. 헤더 로고의 마크와 같은 그림이다
+ (2026-09-14 로고 교체). 두 벌로 두면 어느 날 한쪽만 바뀐다. -->
+ <rect width="32" height="32" rx="7.5" fill="#E11D48"/>
+ <g fill="none" stroke="#fff" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M10 11.5 14.5 16 10 20.5"/>
+ <path d="M17.5 21.5h5"/>
+ </g>
+</svg>
diff --git a/web/public/provider-icons/lemonade.ico b/web/public/provider-icons/lemonade.ico
new file mode 100644
index 000000000..6a396a60e
Binary files /dev/null and b/web/public/provider-icons/lemonade.ico differ
diff --git a/web/public/provider-icons/llama-BRAND-USAGE.txt b/web/public/provider-icons/llama-BRAND-USAGE.txt
new file mode 100644
index 000000000..d266963a3
--- /dev/null
+++ b/web/public/provider-icons/llama-BRAND-USAGE.txt
@@ -0,0 +1,17 @@
+# Brand usage
+
+The assets in this repository are licensed under CC BY-NC 4.0, see [`LICENSE`](./LICENSE).
+
+In addition, and notwithstanding the NonCommercial term, ggml-org grants everyone permission to reproduce and redistribute these marks, including commercially and including as part of software distributions, packages, and operating systems, for the purpose of identifying or referring to Llama.app and Llama.cpp.
+
+This permission covers the technical adaptation that integration requires: rescaling, monochrome or single color rendering, format conversion, path flattening, and embedding into icon fonts, sprite sheets, or package metadata.
+
+It does not cover:
+
+- altering the shape of the mark beyond the adaptations above, redrawing it, or combining it with other marks or elements
+- placing the mark on merchandise, or any use that sells the mark itself rather than referring to the project
+- any use that implies sponsorship, endorsement, or affiliation
+
+Attribution as required by CC BY-NC 4.0 is satisfied by naming this repository as the source in a README, credits file, or equivalent.
+
+Trademark rights are not licensed by CC BY-NC 4.0. This permission also serves as consent to nominative use of the marks within the scope above.
diff --git a/web/public/provider-icons/llama-cpp-dark.svg b/web/public/provider-icons/llama-cpp-dark.svg
new file mode 100644
index 000000000..5175cdf63
--- /dev/null
+++ b/web/public/provider-icons/llama-cpp-dark.svg
@@ -0,0 +1,4 @@
+<svg width="600" height="600" viewBox="0 0 600 600" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M600 392L504.249 558L504.137 557.929C487.252 584.069 458.193 600 426.864 600H120L240 392H600Z" fill="#FAFAFA"/>
+<path d="M240 392H0L199.602 46.0254C216.032 17.5463 246.411 3.25756e-05 279.29 0H466.154L240 392Z" fill="#FAFAFA"/>
+</svg>
diff --git a/web/public/provider-icons/llama-cpp.svg b/web/public/provider-icons/llama-cpp.svg
new file mode 100644
index 000000000..a33cdcec0
--- /dev/null
+++ b/web/public/provider-icons/llama-cpp.svg
@@ -0,0 +1,4 @@
+<svg width="600" height="600" viewBox="0 0 600 600" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M600 392L504.249 558L504.137 557.929C487.252 584.069 458.193 600 426.864 600H120L240 392H600Z" fill="#111111"/>
+<path d="M240 392H0L199.602 46.0254C216.032 17.5463 246.411 3.25756e-05 279.29 0H466.154L240 392Z" fill="#111111"/>
+</svg>
diff --git a/web/public/provider-icons/novita-official.svg b/web/public/provider-icons/novita-official.svg
new file mode 100644
index 000000000..ae2d4815c
--- /dev/null
+++ b/web/public/provider-icons/novita-official.svg
@@ -0,0 +1,3 @@
+<svg width="24" height="15" viewBox="0 0 24 15" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M24 14.8323V14.8326H14.3246L9.16716 9.67507V14.8326H0V14.8314L9.16716 5.66422V0H9.16774L24 14.8323Z" fill="black"/>
+</svg>
diff --git a/web/public/provider-icons/openvino.ico b/web/public/provider-icons/openvino.ico
new file mode 100644
index 000000000..d8d6993ca
Binary files /dev/null and b/web/public/provider-icons/openvino.ico differ
diff --git a/web/public/provider-icons/opper-dark.png b/web/public/provider-icons/opper-dark.png
new file mode 100644
index 000000000..0c897452e
Binary files /dev/null and b/web/public/provider-icons/opper-dark.png differ
diff --git a/web/public/provider-icons/opper.png b/web/public/provider-icons/opper.png
new file mode 100644
index 000000000..94000d7e1
Binary files /dev/null and b/web/public/provider-icons/opper.png differ
diff --git a/web/public/provider-icons/orcarouter.png b/web/public/provider-icons/orcarouter.png
new file mode 100644
index 000000000..71db95be6
Binary files /dev/null and b/web/public/provider-icons/orcarouter.png differ
diff --git a/web/public/provider-icons/requesty.png b/web/public/provider-icons/requesty.png
new file mode 100644
index 000000000..89fc14196
Binary files /dev/null and b/web/public/provider-icons/requesty.png differ
diff --git a/web/public/provider-icons/serper.png b/web/public/provider-icons/serper.png
new file mode 100644
index 000000000..b96d932d9
Binary files /dev/null and b/web/public/provider-icons/serper.png differ
diff --git a/web/public/provider-icons/serply.png b/web/public/provider-icons/serply.png
new file mode 100644
index 000000000..1ee1975f3
Binary files /dev/null and b/web/public/provider-icons/serply.png differ
diff --git a/web/public/provider-icons/sources.json b/web/public/provider-icons/sources.json
new file mode 100644
index 000000000..8293a6ef5
--- /dev/null
+++ b/web/public/provider-icons/sources.json
@@ -0,0 +1,160 @@
+{
+ "checked_at": "2026-10-07",
+ "note": "Brand marks identify their respective services. Existing SVGs were vendored from LobeHub; additions below were checked against provider websites.",
+ "assets": {
+ "alibabacloud-color.svg": {
+ "url": "https://unpkg.com/@lobehub/[email protected]/icons/alibabacloud-color.svg",
+ "sha256": "73ea97baf919edb3d888a77cd45b21574e190a80124a59e199ea6953a28a959c",
+ "source": "@lobehub/icons-static-svg 1.95.1 (MIT)"
+ },
+ "atlascloud.svg": {
+ "url": "https://unpkg.com/@lobehub/[email protected]/icons/atlascloud.svg",
+ "sha256": "f4b4170259c722a970176763fd9f3b18fe34a661e063afb88ae340f4c7ff1474",
+ "source": "@lobehub/icons-static-svg 1.95.1 (MIT)"
+ },
+ "bailian-color.svg": {
+ "url": "https://unpkg.com/@lobehub/[email protected]/icons/bailian-color.svg",
+ "sha256": "5cc26dc961b2ecd0912f4e023c8ce745bcc52ac45b1c4baeadd7201f6b60de25",
+ "source": "@lobehub/icons-static-svg 1.95.1 (MIT)"
+ },
+ "bocha-color.svg": {
+ "url": "https://unpkg.com/@lobehub/[email protected]/icons/bocha-color.svg",
+ "sha256": "bf96c5c287da443c310570db48a270121af57d559f849227aea27cc61b86f244",
+ "source": "@lobehub/icons-static-svg 1.95.1 (MIT)"
+ },
+ "firecrawl-color.svg": {
+ "url": "https://unpkg.com/@lobehub/[email protected]/icons/firecrawl-color.svg",
+ "sha256": "98993b111d1cb75edd0b1ce3a1e8bd3f85dcf5548072ffb959ac97ffe69ade59",
+ "source": "@lobehub/icons-static-svg 1.95.1 (MIT)"
+ },
+ "novita-official.svg": {
+ "url": "https://novita.ai/logo/logo_small.svg",
+ "sha256": "21f50cd74ca927d57102f255f234791d8f8008837362a9b32c5f32688f01df06",
+ "source": "Official website asset"
+ },
+ "codebuddy-official.svg": {
+ "url": "https://download.codebuddy.cn/web/website/a156fee78f35e874d407848198e5f96a4cf383ef/assets/logo.svg",
+ "sha256": "149baa45b9f9370c15f20d599afe381aa138e4fc13acf503f435c571ac93ecf5",
+ "source": "Official website asset"
+ },
+ "byteplus.png": {
+ "url": "https://sf-bpcms.bytepluscdn.com/obj/byteplus-public-aiso/portal/assets/favicon.png",
+ "sha256": "64fc512a00a7e955b1fc678cc72485aaba3af7a7fa5d915aaccd79daa8474b76",
+ "source": "Official website asset"
+ },
+ "edenai.png": {
+ "url": "https://cdn.prod.website-files.com/61e7d259b7746e2d1df0b68d/6a63231f2ab1f7b73d0013f5_eden%20ai%20logo%20light.png",
+ "sha256": "f251b436e413d6826192c84dcf230eb52bc58733ddba8f3e6e1463bfdd0fc96c",
+ "source": "Official website asset"
+ },
+ "edenai-dark.png": {
+ "url": "https://cdn.prod.website-files.com/61e7d259b7746e2d1df0b68d/6a6323282ab1f7b73d00154d_eden%20ai%20logo%20dark.png",
+ "sha256": "eb5d1dc22c62d60cc630aecc6dddb36dbb3a85d73d689f5bd7516fb49e5e1447",
+ "source": "Official website asset"
+ },
+ "orcarouter.png": {
+ "url": "https://www.orcarouter.ai/orca-icon-192.png",
+ "sha256": "98337616ec54835112a68e9b151afe342521d38b7d2cf9748b73265b40a03830",
+ "source": "Official website asset"
+ },
+ "unifically.webp": {
+ "url": "https://unifically.com/_next/image?url=%2Fstatic%2Fbrand%2Flogo.png&w=128&q=75",
+ "sha256": "9c2c3136a449208fef31780b0c3b6cab9c887a5bc28c4aac2a84bfa683e47ae6",
+ "source": "Official website asset"
+ },
+ "requesty.png": {
+ "url": "https://www.requesty.ai/icon.png?icon.18acj9ydjf3a1.png",
+ "sha256": "797c91229b6c937ed9c8e831bf978fc9c2df5275defc9ed9d7530de196801306",
+ "source": "Official website asset"
+ },
+ "futureinfra.svg": {
+ "url": "https://futureinfra.ai/assets/favicon.svg",
+ "sha256": "a94504cf888fd0f54ce8690a039a93009f1e48e300e9fe4712e3006f65205582",
+ "source": "Official website asset",
+ "note": "Line endings normalized to LF; brand artwork unchanged."
+ },
+ "lemonade.ico": {
+ "url": "https://lemonade-server.ai/favicon.ico",
+ "sha256": "84c98ff6a18935e6749854bce8922a3db66cb573199f467bebf1df1d0a511005",
+ "source": "Official website asset"
+ },
+ "serper.png": {
+ "url": "https://serper.dev/apple-touch-icon.png",
+ "sha256": "d7ad3d558791116fe3017a422500d9abe7e20ecd7f2c71c8898b2604b70cbf65",
+ "source": "Official website asset"
+ },
+ "serply.png": {
+ "url": "https://serply.io/favicon/apple-touch-icon.png",
+ "sha256": "0a787846df588d136932f3bb373d5d796b28f0a545ff603cb013136148525922",
+ "source": "Official website asset"
+ },
+ "cheaperinference.svg": {
+ "url": "https://www.cheaperinference.com/icon.svg?7b25e69112bc955e",
+ "sha256": "4c0bf6572d9077fd66fe338b80c18e4d227adb6a44bc176bf5eb5ea1271bf9d0",
+ "source": "Official website asset"
+ },
+ "api-route.png": {
+ "url": "https://www.api-route.com/apple-touch-icon.png?v=2",
+ "sha256": "28866bf8b7c0913c634a34d2839a3201b0eab2019b926e556411a72f4c969e42",
+ "source": "Official website asset"
+ },
+ "openvino.ico": {
+ "url": "https://docs.openvino.ai/2026/_static/favicon.ico",
+ "sha256": "54a174ab11c78b2e380c3805956df6f7ea2dccf9ba5d5ebbf312b322b124f328",
+ "source": "Official website asset"
+ },
+ "doubao.png": {
+ "url": "https://lf-flow-web-cdn.doubao.com/obj/flow-doubao/favicon/new-doubao/128x128.png",
+ "sha256": "bf8e41bcc864c00099a98080825ea42aba7cf481303dad3312f44a5da68c3f3b",
+ "source": "Official website asset"
+ },
+ "llama-cpp.svg": {
+ "url": "https://raw.githubusercontent.com/ggml-org/llama.brand/master/icon/icon-light.svg",
+ "sha256": "ce48c0f8e98aa4099b6f04a65b76bc32bc00c8fa39d58f15da9b73905f1918f1",
+ "source": "Official website asset",
+ "attribution": "ggml-org/llama.brand — official brand assets, CC BY-NC 4.0 with redistribution permission in BRAND-USAGE.md",
+ "usage": "https://github.com/ggml-org/llama.brand/blob/master/BRAND-USAGE.md"
+ },
+ "llama-cpp-dark.svg": {
+ "url": "https://raw.githubusercontent.com/ggml-org/llama.brand/master/icon/icon-dark.svg",
+ "sha256": "78bbb16ce08f25baf0bc2c8f0c765e85d933f537ba92625b844528cb02aa249b",
+ "source": "Official website asset",
+ "attribution": "ggml-org/llama.brand — official brand assets, CC BY-NC 4.0 with redistribution permission in BRAND-USAGE.md",
+ "usage": "https://github.com/ggml-org/llama.brand/blob/master/BRAND-USAGE.md"
+ },
+ "opper.png": {
+ "url": "https://opper.ai/images/icon-dark.png",
+ "sha256": "86e4cec6dd1912124e72c2aff8d7d3623a44fd940429a7a520732f0ab7e34149",
+ "source": "Official website asset"
+ },
+ "opper-dark.png": {
+ "url": "https://opper.ai/images/icon-light.png",
+ "sha256": "c2b8011772dd1ca9299200a30dc915c5a2d636a1b4ba4a3c4c54234be438f70b",
+ "source": "Official website asset"
+ }
+ },
+ "chinese_names": {
+ "deepseek": "https://www.deepseek.com/",
+ "moonshot": "https://www.moonshot.cn/",
+ "aihubmix": "https://aihubmix.com/blog/zh-CN",
+ "siliconflow": "https://siliconflow.cn/",
+ "dashscope": "https://bailian.console.aliyun.com/",
+ "aliyun_iqs": "https://iqs.console.aliyun.com/",
+ "volcengine": "https://www.volcengine.com/",
+ "volcengine_speech": "https://www.volcengine.com/product/voice-tech",
+ "zhipu": "https://www.bigmodel.cn/",
+ "stepfun": "https://platform.stepfun.com/",
+ "xiaomi_mimo": "https://platform.xiaomimimo.com/",
+ "codebuddy": "https://www.codebuddy.cn/",
+ "qianfan": "https://cloud.baidu.com/product-s/qianfan_home",
+ "bocha": "https://bocha.cn/",
+ "doubao": "https://www.doubao.com/",
+ "minimax": "https://www1.hkexnews.hk/app/sehk/2025/107986/a128500/sehk25122100301_c.pdf"
+ },
+ "providers_without_verified_icons": {
+ "y_api": {
+ "checked_url": "https://api.y-api.bestvirtualgoods.com",
+ "reason": "Configured service root returns HTTP 404; no verified official brand asset found. Uses the generic provider icon."
+ }
+ }
+}
diff --git a/web/public/provider-icons/unifically.webp b/web/public/provider-icons/unifically.webp
new file mode 100644
index 000000000..443ef74db
Binary files /dev/null and b/web/public/provider-icons/unifically.webp differ
diff --git a/web/tests/provider-branding-locale.spec.tsx b/web/tests/provider-branding-locale.spec.tsx
new file mode 100644
index 000000000..16987563d
--- /dev/null
+++ b/web/tests/provider-branding-locale.spec.tsx
@@ -0,0 +1,30 @@
+import React from 'react'
+import { act, render, screen } from '@testing-library/react'
+import { createInstance } from 'i18next'
+import { I18nextProvider } from 'react-i18next'
+import { expect, it, vi } from 'vitest'
+import { AddProviderPanel } from '@/components/settings/AddProviderPanel'
+
+it('updates provider originals immediately when the interface language changes', async () => {
+ const i18n = createInstance()
+ await i18n.init({
+ lng: 'en',
+ fallbackLng: 'en',
+ resources: { en: { translation: {} }, zh: { translation: {} }, fr: { translation: {} } },
+ })
+ const options = [{ value: 'deepseek', label: 'DeepSeek', services: ['llm' as const] }]
+ render(
+ <I18nextProvider i18n={i18n}>
+ <AddProviderPanel options={options} vendor="" onVendor={vi.fn()} onCreate={vi.fn()} onCancel={vi.fn()} />
+ </I18nextProvider>,
+ )
+ expect(screen.getByRole('radio', { name: 'DeepSeek' })).toBeInTheDocument()
+ await act(async () => { await i18n.changeLanguage('zh') })
+ expect(screen.getByRole('radio', { name: 'DeepSeek(深度求索)' })).toBeInTheDocument()
+ await act(async () => { await i18n.changeLanguage('fr') })
+ expect(screen.getByRole('radio', { name: 'DeepSeek' })).toBeInTheDocument()
+ expect(screen.queryByText('DeepSeek(深度求索)')).not.toBeInTheDocument()
+ await act(async () => { await i18n.changeLanguage('zh') })
+ expect(screen.getByRole('radio', { name: 'DeepSeek(深度求索)' })).toBeInTheDocument()
+ expect(options[0].label).toBe('DeepSeek')
+})
diff --git a/web/tests/provider-branding.spec.ts b/web/tests/provider-branding.spec.ts
new file mode 100644
index 000000000..b2598b689
--- /dev/null
+++ b/web/tests/provider-branding.spec.ts
@@ -0,0 +1,72 @@
+import { readFileSync, existsSync } from 'node:fs'
+import path from 'node:path'
+import { describe, it, expect } from 'vitest'
+import {
+ PROVIDER_ICONS,
+ providerIconSpec,
+ formatProviderLabel,
+ formatConfiguredProviderName,
+} from '../lib/provider-branding'
+
+const root = path.resolve(process.cwd(), '..')
+const asset = (file: string) => path.join(root, 'web/public/provider-icons', file)
+
+describe('provider branding', () => {
+ it('covers every branded provider in all service registries', () => {
+ const llm = readFileSync(path.join(root, 'deeptutor/services/provider_registry.py'), 'utf8')
+ const services = readFileSync(path.join(root, 'deeptutor/services/config/provider_runtime.py'), 'utf8')
+ const ids = new Set([
+ ...Array.from(llm.matchAll(/name="([a-z_]+)"/g), m => m[1]),
+ ...Array.from(services.matchAll(/^ "([a-z_]+)": \w+ProviderSpec\(/gm), m => m[1]),
+ ])
+ // Y-API has no verified official brand asset; retain the generic fallback.
+ const generic = new Set(['none', 'custom', 'custom_anthropic', 'custom_openai_sdk', 'custom_chat', 'y_api'])
+ expect(ids.size).toBeGreaterThan(50)
+ for (const id of ids) {
+ if (generic.has(id)) expect(providerIconSpec(id), id).toBeUndefined()
+ else expect(providerIconSpec(id), id).toBeDefined()
+ }
+ })
+
+ it('ships every referenced asset, including dark variants, without external SVG content', () => {
+ for (const spec of Object.values(PROVIDER_ICONS)) {
+ for (const file of [spec.file, spec.darkFile].filter(Boolean) as string[]) {
+ expect(existsSync(asset(file)), file).toBe(true)
+ const content = readFileSync(asset(file))
+ expect(content.length, file).toBeGreaterThan(100)
+ if (file.endsWith('.svg')) {
+ const svg = content.toString()
+ expect(svg).toContain('<svg')
+ expect(svg).not.toMatch(/<script|<foreignObject|\bon\w+=|(?:href|src)=["']https?:/i)
+ }
+ }
+ }
+ })
+
+ it('resolves legacy aliases but leaves unknown custom brands generic', () => {
+ expect(providerIconSpec(' workbuddy ')).toEqual(providerIconSpec('codebuddy'))
+ expect(providerIconSpec('atlas_cloud')).toEqual(providerIconSpec('atlascloud'))
+ for (const id of ['my-gateway', '__proto__', 'constructor', '', null]) {
+ expect(providerIconSpec(id)).toBeUndefined()
+ }
+ })
+
+ it('adds Chinese originals once and preserves user account names', () => {
+ expect(formatProviderLabel('deepseek', 'DeepSeek', 'zh')).toBe('DeepSeek(深度求索)')
+ expect(formatProviderLabel('dashscope', 'Aliyun DashScope', 'zh')).toBe('Aliyun DashScope(阿里云百炼)')
+ expect(formatProviderLabel('deepseek', 'DeepSeek(深度求索)', 'zh')).toBe('DeepSeek(深度求索)')
+ expect(formatConfiguredProviderName('moonshot', 'Moonshot', 'zh')).toBe('Moonshot(月之暗面)')
+ expect(formatConfiguredProviderName('deepseek', 'My study account', 'zh')).toBe('My study account')
+ expect(formatProviderLabel('openai', 'OpenAI', 'zh')).toBe('OpenAI')
+ })
+
+ it('omits Chinese branding in every non-Chinese UI locale without altering custom names', () => {
+ for (const language of ['en', 'fr', 'de', 'uk', 'pl']) {
+ expect(formatProviderLabel('deepseek', 'DeepSeek', language)).toBe('DeepSeek')
+ expect(formatProviderLabel('deepseek', 'DeepSeek(深度求索)', language)).toBe('DeepSeek')
+ expect(formatConfiguredProviderName('moonshot', 'Moonshot(月之暗面)', language)).toBe('Moonshot')
+ expect(formatConfiguredProviderName('deepseek', '我的学习账号(深度求索)', language)).toBe('我的学习账号(深度求索)')
+ }
+ expect(formatProviderLabel('deepseek', 'DeepSeek', 'zh-CN')).toBe('DeepSeek(深度求索)')
+ })
+})