magpie-multi-usage 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,7 +53,7 @@ Create a GitHub **fine-grained personal access token** scoped strictly to **Only
53
53
  ## How it works
54
54
 
55
55
  1. Each device incrementally pulls its own usage from Magpie's loopback API and publishes sanitized monthly snapshots into its own `<prefix>/<device-id>/` folder — one atomic commit per device, no cross-machine conflicts.
56
- 2. Any machine aggregates on read: combined and per-device totals, two-tone token bars (hourly slots for **Today**, consecutive daily slots for **7d/30d**, active days for **All**), clickable device filters, and tabbed **Agents / Models / Providers** breakdowns. Today's local usage is bucketed by civil hour in the reporting timezone; remote devices only publish daily totals, so their contribution appears as a separate daily-only total instead of invented hours. Today keeps all 24 hourly bars while the axis labels every two hours (compact on narrow screens). Hover a bar, or focus the chart and use the arrow keys, for the same per-bucket detail. Offline devices keep their last hash-verified cached snapshot, flagged as cached, and unavailable sources never render as false zeros.
56
+ 2. Any machine aggregates on read: combined and per-device totals, two-tone token bars (hourly slots for **Today**, consecutive daily slots for **7d/30d**, active days for **All**), clickable device filters, and tabbed **Agents / Models / Providers** breakdowns. Today's local usage is bucketed by civil hour in the reporting timezone; remote devices only publish daily totals, so their contribution appears as a separate daily-only total instead of invented hours. Today keeps all 24 hourly bars while the axis labels every two hours (compact on narrow screens). Hover a bar, or focus the chart and use the arrow keys, for the same per-bucket detail. Offline devices keep their last hash-verified cached snapshot, flagged as cached, and unavailable sources never render as false zeros. Recognized models and providers also show their real vendor logo in the breakdown lists — bundled with the plugin and served offline, with no external requests — and fall back to a neutral glyph otherwise.
57
57
 
58
58
  ## Configuration reference
59
59
 
@@ -128,4 +128,6 @@ HOME=$(mktemp -d) bun test test/
128
128
 
129
129
  ## License
130
130
 
131
+ Bundled vendor logos are trademarks of their respective owners, included for identification only.
132
+
131
133
  MIT License — see [LICENSE](LICENSE).
package/README.zh-CN.md CHANGED
@@ -53,7 +53,7 @@ magpie plugin add /path/to/magpie-multi-usage
53
53
  ## 工作原理
54
54
 
55
55
  1. 每台设备增量拉取自身用量(Magpie 回环 API),并将脱敏后的每月快照发布到仓库中自己的 `<prefix>/<device-id>/` 目录——每设备一次原子提交,互不冲突。
56
- 2. 任意机器按读取聚合:合并与按设备总量、双色 Token 柱状图(**今日**按实际小时分桶,**7/30 天**为连续日期槽位,**全部**按有数据的日期)、可点击的设备筛选、**Agents / Models / Providers** 标签页明细。今日的本机用量按上报时区的自然小时分桶;远端设备只上报每日合计,因此其数据单独显示为“无小时明细的当日合计”,不会伪造小时分布。今日保留全部 24 个小时柱,横轴每两小时标注一次(窄屏使用紧凑标签)。悬停柱体,或聚焦图表后使用方向键,可查看相同的单桶明细。离线设备保留最后一次通过哈希校验的缓存快照并标记为缓存,不可用来源绝不会显示成错误的零值。
56
+ 2. 任意机器按读取聚合:合并与按设备总量、双色 Token 柱状图(**今日**按实际小时分桶,**7/30 天**为连续日期槽位,**全部**按有数据的日期)、可点击的设备筛选、**Agents / Models / Providers** 标签页明细。今日的本机用量按上报时区的自然小时分桶;远端设备只上报每日合计,因此其数据单独显示为“无小时明细的当日合计”,不会伪造小时分布。今日保留全部 24 个小时柱,横轴每两小时标注一次(窄屏使用紧凑标签)。悬停柱体,或聚焦图表后使用方向键,可查看相同的单桶明细。离线设备保留最后一次通过哈希校验的缓存快照并标记为缓存,不可用来源绝不会显示成错误的零值。已识别的模型与供应商还会在明细列表中显示真实的厂商 Logo——随插件内置、离线提供,不发起任何外部请求——其余则回退为中性图标。
57
57
 
58
58
  ## 配置参考
59
59
 
@@ -128,4 +128,6 @@ HOME=$(mktemp -d) bun test test/
128
128
 
129
129
  ## 许可证
130
130
 
131
+ 内置的厂商 Logo 为各自所有者的商标,仅用于识别。
132
+
131
133
  MIT 许可证——见 [LICENSE](LICENSE)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magpie-multi-usage",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Multi-device token usage dashboard plugin for Magpie using a dedicated private GitHub repository relay (no decryption passphrase required).",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",
@@ -468,7 +468,7 @@ export function buildDeviceManifest({
468
468
  deviceId,
469
469
  displayName,
470
470
  platform = process.platform,
471
- pluginVersion = "0.2.0",
471
+ pluginVersion = "0.3.0",
472
472
  revision = 1,
473
473
  updatedAt = new Date().toISOString(),
474
474
  snapshots = [],
@@ -224,7 +224,7 @@ export function createGitHubRelayStore({
224
224
  apiBaseUrl = DEFAULT_API_BASE_URL,
225
225
  fetchImpl = globalThis.fetch,
226
226
  timeoutMs = 15000,
227
- pluginVersion = "0.2.0",
227
+ pluginVersion = "0.3.0",
228
228
  } = {}) {
229
229
  const normalizedRepo = normalizeRepo(repo);
230
230
  if (!normalizedRepo) {
@@ -19,7 +19,7 @@ import { createSyncEngine } from "./sync-engine.mjs";
19
19
 
20
20
  export const TOKEN_HEADER = "x-multi-usage-token";
21
21
  export const DEFAULT_PORT = DEFAULT_CONFIG.port;
22
- export const PLUGIN_VERSION = "0.2.0";
22
+ export const PLUGIN_VERSION = "0.3.0";
23
23
 
24
24
  const MAX_JSON_BODY_BYTES = 256 * 1024;
25
25
  const ALLOWED_RANGES = new Set(["today", "7d", "30d", "all"]);
@@ -414,6 +414,25 @@ export async function startHttpServer({
414
414
  return;
415
415
  }
416
416
 
417
+ // The dashboard requests ./icons/<key>.svg (src/ui/app.js vendorIcon);
418
+ // the strict pattern rules out other extensions, traversal, and encoded paths.
419
+ const iconMatch = /^\/icons\/([a-z0-9-]+)\.svg$/.exec(pathname);
420
+ if (method === "GET" && iconMatch) {
421
+ let content;
422
+ try {
423
+ content = await fs.readFile(path.join(uiDir, "icons", `${iconMatch[1]}.svg`));
424
+ } catch {
425
+ // Same response as any other unknown static path; the strict key
426
+ // pattern already rules out traversal or non-SVG extensions.
427
+ sendResponse(res, 404, "text/plain; charset=utf-8", "Not Found");
428
+ return;
429
+ }
430
+ sendResponse(res, 200, "image/svg+xml", content, {
431
+ "Cache-Control": "public, max-age=31536000, immutable",
432
+ });
433
+ return;
434
+ }
435
+
417
436
  sendResponse(res, 404, "text/plain; charset=utf-8", "Not Found");
418
437
  } catch (error) {
419
438
  sendJson(res, 500, { error: error?.message || "Internal server error" });
@@ -160,7 +160,7 @@ export function createSyncEngine({
160
160
  fetchImpl = globalThis.fetch,
161
161
  apiBaseUrl,
162
162
  gatewayBaseUrl,
163
- pluginVersion = "0.2.0",
163
+ pluginVersion = "0.3.0",
164
164
  timeZone,
165
165
  now = () => Date.now(),
166
166
  storeFactory = createGitHubRelayStore,
package/src/ui/app.css CHANGED
@@ -581,6 +581,13 @@ select:focus-visible {
581
581
  margin-top: 3px;
582
582
  }
583
583
 
584
+ .vendor-logo {
585
+ width: 16px;
586
+ height: 16px;
587
+ border-radius: 3px;
588
+ display: block;
589
+ }
590
+
584
591
  .row.stat .who {
585
592
  flex: 0 0 285px;
586
593
  min-width: 0;
package/src/ui/app.js CHANGED
@@ -20,6 +20,8 @@ import {
20
20
  t,
21
21
  trendFocusTarget,
22
22
  trendLabelEvery,
23
+ vendorIconForModel,
24
+ vendorIconForProvider,
23
25
  } from "./view-model.mjs";
24
26
 
25
27
  const TOKEN_HEADER = "X-Multi-Usage-Token";
@@ -141,6 +143,14 @@ function svgIcon(pathD) {
141
143
  return svg;
142
144
  }
143
145
 
146
+ function vendorIcon(key) {
147
+ const img = document.createElement("img");
148
+ img.src = `./icons/${key}.svg`;
149
+ img.alt = "";
150
+ img.className = "vendor-logo";
151
+ return img;
152
+ }
153
+
144
154
  function formatCallsLabel(count) {
145
155
  const n = Number(count) || 0;
146
156
  const formatted = formatExactNumber(n);
@@ -656,7 +666,13 @@ function renderBreakdownList(summary) {
656
666
  for (const item of rows.slice(0, 12)) {
657
667
  const row = el("div", "row stat");
658
668
  const ic = el("span", "ic");
659
- ic.appendChild(svgIcon(iconPath));
669
+ let logoKey = "";
670
+ if (state.breakdownTab === "models") {
671
+ logoKey = vendorIconForModel(item.name);
672
+ } else if (state.breakdownTab === "providers") {
673
+ logoKey = vendorIconForProvider(item.name);
674
+ }
675
+ ic.appendChild(logoKey ? vendorIcon(logoKey) : svgIcon(iconPath));
660
676
  row.appendChild(ic);
661
677
 
662
678
  const who = el("div", "who");
@@ -0,0 +1 @@
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>Azure</title><path d="M7.242 1.613A1.11 1.11 0 018.295.857h6.977L8.03 22.316a1.11 1.11 0 01-1.052.755h-5.43a1.11 1.11 0 01-1.053-1.466L7.242 1.613z" fill="url(#lobe-icons-azure-0-_R_0_)"></path><path d="M18.397 15.296H7.4a.51.51 0 00-.347.882l7.066 6.595c.206.192.477.298.758.298h6.226l-2.706-7.775z" fill="#0078D4"></path><path d="M15.272.857H7.497L0 23.071h7.775l1.596-4.73 5.068 4.73h6.665l-2.707-7.775h-7.998L15.272.857z" fill="url(#lobe-icons-azure-1-_R_0_)"></path><path d="M17.193 1.613a1.11 1.11 0 00-1.052-.756h-7.81.035c.477 0 .9.304 1.052.756l6.748 19.992a1.11 1.11 0 01-1.052 1.466h-.12 7.895a1.11 1.11 0 001.052-1.466L17.193 1.613z" fill="url(#lobe-icons-azure-2-_R_0_)"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-azure-0-_R_0_" x1="8.247" x2="1.002" y1="1.626" y2="23.03"><stop stop-color="#114A8B"></stop><stop offset="1" stop-color="#0669BC"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-azure-1-_R_0_" x1="14.042" x2="12.324" y1="15.302" y2="15.888"><stop stop-opacity=".3"></stop><stop offset=".071" stop-opacity=".2"></stop><stop offset=".321" stop-opacity=".1"></stop><stop offset=".623" stop-opacity=".05"></stop><stop offset="1" stop-opacity="0"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-azure-2-_R_0_" x1="12.841" x2="20.793" y1="1.626" y2="22.814"><stop stop-color="#3CCBF4"></stop><stop offset="1" stop-color="#2892DF"></stop></linearGradient></defs></svg>
@@ -0,0 +1 @@
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>Bedrock</title><defs><linearGradient id="lobe-icons-bedrock-_R_0_" x1="80%" x2="20%" y1="20%" y2="80%"><stop offset="0%" stop-color="#6350FB"></stop><stop offset="50%" stop-color="#3D8FFF"></stop><stop offset="100%" stop-color="#9AD8F8"></stop></linearGradient></defs><path d="M13.05 15.513h3.08c.214 0 .389.177.389.394v1.82a1.704 1.704 0 011.296 1.661c0 .943-.755 1.708-1.685 1.708-.931 0-1.686-.765-1.686-1.708 0-.807.554-1.484 1.297-1.662v-1.425h-2.69v4.663a.395.395 0 01-.188.338l-2.69 1.641a.385.385 0 01-.405-.002l-4.926-3.086a.395.395 0 01-.185-.336V16.3L2.196 14.87A.395.395 0 012 14.555L2 14.528V9.406c0-.14.073-.27.192-.34l2.465-1.462V4.448c0-.129.062-.249.165-.322l.021-.014L9.77 1.058a.385.385 0 01.407 0l2.69 1.675a.395.395 0 01.185.336V7.6h3.856V5.683a1.704 1.704 0 01-1.296-1.662c0-.943.755-1.708 1.685-1.708.931 0 1.685.765 1.685 1.708 0 .807-.553 1.484-1.296 1.662v2.311a.391.391 0 01-.389.394h-4.245v1.806h6.624a1.69 1.69 0 011.64-1.313c.93 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708a1.69 1.69 0 01-1.64-1.314H13.05v1.937h4.953l.915 1.18a1.66 1.66 0 01.84-.227c.931 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708-.93 0-1.685-.765-1.685-1.708 0-.346.102-.668.276-.937l-.724-.935H13.05v1.806zM9.973 1.856L7.93 3.122V6.09h-.778V3.604L5.435 4.669v2.945l2.11 1.36L9.712 7.61V5.334h.778V7.83c0 .136-.07.263-.184.335L7.963 9.638v2.081l1.422 1.009-.446.646-1.406-.998-1.53 1.005-.423-.66 1.605-1.055v-1.99L5.038 8.29l-2.26 1.34v1.676l1.972-1.189.398.677-2.37 1.429V14.3l2.166 1.258 2.27-1.368.397.677-2.176 1.311V19.3l1.876 1.175 2.365-1.426.398.678-2.017 1.216 1.918 1.201 2.298-1.403v-5.78l-4.758 2.893-.4-.675 5.158-3.136V3.289L9.972 1.856zM16.13 18.47a.913.913 0 00-.908.92c0 .507.406.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zm3.63-3.81a.913.913 0 00-.908.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92zm1.555-4.99a.913.913 0 00-.908.92c0 .507.407.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zM17.296 3.1a.913.913 0 00-.907.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92z" fill="url(#lobe-icons-bedrock-_R_0_)" fill-rule="nonzero"></path></svg>
@@ -0,0 +1 @@
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>Claude</title><path d="M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z" fill="#D97757" fill-rule="nonzero"></path></svg>
@@ -0,0 +1 @@
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>DeepSeek</title><path d="M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z" fill="#4D6BFE"></path></svg>
@@ -0,0 +1 @@
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>Gemini</title><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="#3186FF"></path><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="url(#lobe-icons-gemini-0-_R_0_)"></path><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="url(#lobe-icons-gemini-1-_R_0_)"></path><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z" fill="url(#lobe-icons-gemini-2-_R_0_)"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-0-_R_0_" x1="7" x2="11" y1="15.5" y2="12"><stop stop-color="#08B962"></stop><stop offset="1" stop-color="#08B962" stop-opacity="0"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-1-_R_0_" x1="8" x2="11.5" y1="5.5" y2="11"><stop stop-color="#F94543"></stop><stop offset="1" stop-color="#F94543" stop-opacity="0"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-gemini-2-_R_0_" x1="3.5" x2="17.5" y1="13.5" y2="12"><stop stop-color="#FABC12"></stop><stop offset=".46" stop-color="#FABC12" stop-opacity="0"></stop></linearGradient></defs></svg>
@@ -0,0 +1 @@
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>Groq</title><path d="M12.036 2c-3.853-.035-7 3-7.036 6.781-.035 3.782 3.055 6.872 6.908 6.907h2.42v-2.566h-2.292c-2.407.028-4.38-1.866-4.408-4.23-.029-2.362 1.901-4.298 4.308-4.326h.1c2.407 0 4.358 1.915 4.365 4.278v6.305c0 2.342-1.944 4.25-4.323 4.279a4.375 4.375 0 01-3.033-1.252l-1.851 1.818A7 7 0 0012.029 22h.092c3.803-.056 6.858-3.083 6.879-6.816v-6.5C18.907 4.963 15.817 2 12.036 2z"></path></svg>
@@ -0,0 +1 @@
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>Kimi</title><path d="M21.846 0a1.923 1.923 0 110 3.846H20.15a.226.226 0 01-.227-.226V1.923C19.923.861 20.784 0 21.846 0z"></path><path d="M11.065 11.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164 0 00-.117.051l-7.82 7.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103 0-.186.103-.186.23V19.77c0 .128.083.23.186.23h2.69c.103 0 .186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158 0 01.205-.023l6.484 4.772a7.677 7.677 0 003.453 1.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028 5.028 0 01-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg fill="currentColor" height="1em" style="flex:none;line-height:1" viewBox="10 28 108 72" width="1em" xmlns="http://www.w3.org/2000/svg"><title>mimocode</title><g><path d="M26.74,43.69l8.75-10.85h-4.72l-6.45,7.96-6.45-7.96h-4.72l8.75,10.85.03.04-9.11,11.24h5.03l6.46-8.26,6.46,8.26h5.03l-9.11-11.24.03-.04ZM39.75,30.35c-1.52,0-2.51,1.12-2.51,2.48s.99,2.48,2.51,2.48,2.51-1.12,2.51-2.48-.99-2.48-2.51-2.48ZM37.75,54.97h3.99v-17.57h-3.99v17.57ZM60.02,44.36v10.61h-3.99v-1.76c-1.16,1.36-2.93,2.19-5.67,2.19-1.26,0-5.49-.72-5.96-4.97-.45-4.06,2.9-6.78,9.17-6.78h2.45c0-2.16-.99-3.48-3.68-3.53-2.19-.04-4.02.82-5.37,2l-1.57-3.01c2.04-1.77,5.29-2.81,8.68-2.39,5.56.68,5.94,5.28,5.94,7.63ZM56.02,46.94h-1.95c-4.21,0-5.8,1.35-5.65,2.89.14,1.5,1.51,2.16,3.18,2.16,2.85,0,4.42-2.79,4.42-4.55v-.49ZM80.1,46.12c0,5.15-3.52,9.38-8.92,9.38s-8.92-4.24-8.92-9.38,3.52-9.38,8.92-9.38,8.92,4.24,8.92,9.38ZM76.11,46.12c0-3.66-2.17-5.81-4.93-5.81s-4.93,2.15-4.93,5.81,2.17,5.81,4.93,5.81,4.93-2.15,4.93-5.81ZM110.58,54.97h3.99v-17.57h-3.99v17.57ZM112.57,30.35c-1.52,0-2.51,1.12-2.51,2.48s.99,2.48,2.51,2.48,2.51-1.12,2.51-2.48-.99-2.48-2.51-2.48ZM101.27,36.63c-2.49,0-4.31,1.03-5.3,3.2-.94-2.32-2.89-3.2-4.78-3.2-1.71,0-3.97.77-4.73,2.82v-2.05h-3.91v17.57h3.99v-10.47c0-1.29.42-4.19,3.17-4.19s3.21,2.89,3.21,4.19v10.47h3.99v-10.47c0-1.29.42-4.19,3.21-4.19s3.17,2.89,3.17,4.19v10.47h3.99v-11.42c0-4.58-2.74-6.92-6.03-6.92Z"/><g><path d="M44.57,75.97v19.37c0,1.07-.87,1.93-1.93,1.93s-1.93-.87-1.93-1.93v-19.37c0-1.07.87-1.93,1.93-1.93s1.93.87,1.93,1.93Z"/><path d="M14.77,82.82h0c-1.07,0-1.93.87-1.93,1.93v10.6c0,1.07.87,1.93,1.93,1.93h0c1.07,0,1.93-.87,1.93-1.93v-10.6c0-1.07-.87-1.93-1.93-1.93Z"/><path d="M36.6,75.77s0-.05-.01-.08c0-.04,0-.07-.02-.11,0-.03-.01-.06-.02-.09,0-.03-.01-.06-.02-.09,0-.03-.02-.06-.03-.09-.01-.03-.02-.06-.03-.09-.01-.03-.03-.05-.04-.08-.01-.03-.03-.06-.04-.09-.01-.03-.03-.05-.04-.08-.02-.03-.03-.06-.05-.09-.02-.03-.04-.05-.06-.08-.02-.02-.03-.05-.05-.07-.04-.05-.08-.1-.13-.14h0s-.09-.09-.14-.13c-.02-.02-.05-.03-.07-.05-.03-.02-.05-.04-.08-.06-.03-.02-.05-.03-.08-.05-.03-.02-.05-.03-.08-.05-.03-.01-.06-.03-.09-.04-.03-.01-.06-.03-.09-.04-.03-.01-.06-.02-.08-.03-.03-.01-.06-.02-.1-.03-.03,0-.06-.01-.08-.02-.03,0-.07-.02-.1-.02-.03,0-.06,0-.09-.01-.03,0-.06-.01-.1-.01-.05,0-.11,0-.16,0,0,0-.02,0-.03,0-.01,0-.02,0-.03,0-.05,0-.11,0-.16,0-.03,0-.07,0-.1.01-.03,0-.06,0-.09.01-.04,0-.07.02-.11.03-.03,0-.05.01-.08.02-.03.01-.07.02-.1.04-.03,0-.05.02-.08.03-.03.01-.06.03-.09.04-.03.01-.05.02-.08.04-.03.02-.06.03-.09.05-.02.01-.05.03-.07.04-.03.02-.06.05-.1.07-.02.01-.04.03-.06.04-.05.04-.1.08-.14.13l-8.59,8.59-8.59-8.59c-.75-.75-1.98-.75-2.73,0h0c-.75.75-.75,1.98,0,2.73l9.96,9.96c.76.76,1.98.76,2.73,0l6.66-6.66v14.73c0,1.07.87,1.93,1.93,1.93s1.93-.87,1.93-1.93v-19.39c0-.06,0-.13,0-.19Z"/><path d="M50.6,82.82c-1.07,0-1.93.87-1.93,1.93v10.6c0,1.07.87,1.93,1.93,1.93s1.93-.87,1.93-1.93v-10.6c0-1.07-.87-1.93-1.93-1.93Z"/><path d="M72.44,75.77s0-.05-.01-.08c0-.04,0-.07-.02-.11,0-.03-.01-.06-.02-.09,0-.03-.01-.06-.02-.09,0-.03-.02-.06-.03-.09-.01-.03-.02-.06-.03-.09-.01-.03-.03-.05-.04-.08-.01-.03-.03-.06-.04-.09-.01-.03-.03-.05-.04-.08-.02-.03-.03-.06-.05-.09-.02-.03-.04-.05-.06-.08-.02-.02-.03-.05-.05-.07-.04-.05-.08-.1-.13-.14h0s-.09-.09-.14-.13c-.02-.02-.05-.03-.07-.05-.03-.02-.05-.04-.08-.06-.03-.02-.05-.03-.08-.05-.03-.02-.05-.03-.08-.05-.03-.01-.06-.03-.09-.04-.03-.01-.06-.03-.09-.04-.03-.01-.06-.02-.08-.03-.03-.01-.06-.02-.1-.03-.03,0-.05-.01-.08-.02-.03,0-.07-.02-.1-.02-.03,0-.06,0-.09-.01-.03,0-.06-.01-.1-.01-.05,0-.11,0-.16,0,0,0-.02,0-.03,0h0s-.02,0-.03,0c-.05,0-.11,0-.16,0-.03,0-.07,0-.1.01-.03,0-.06,0-.09.01-.04,0-.07.02-.11.03-.03,0-.05.01-.08.02-.03.01-.07.02-.1.04-.03,0-.05.02-.08.03-.03.01-.06.03-.09.04-.03.01-.05.02-.08.04-.03.02-.06.03-.09.05-.02.01-.05.03-.07.04-.03.02-.06.05-.1.07-.02.01-.04.03-.06.04-.05.04-.1.08-.14.13l-8.59,8.59-8.59-8.59c-.75-.75-1.98-.75-2.73,0h0c-.75.75-.75,1.98,0,2.73l9.96,9.96c.76.76,1.98.76,2.73,0l6.66-6.66v14.73c0,1.07.87,1.93,1.93,1.93h0c1.07,0,1.93-.87,1.93-1.93v-19.39c0-.06,0-.13,0-.19Z"/><path d="M90.74,92.98c-3.04,1.46-6.8.89-9.27-1.57-2.46-2.46-3.03-6.22-1.57-9.27.4-.83.14-1.82-.6-2.37h0c-.98-.74-2.39-.38-2.92.73-2.13,4.49-1.28,10.02,2.34,13.65s9.16,4.48,13.65,2.34c1.11-.53,1.46-1.94.73-2.92-.55-.73-1.54-.99-2.37-.6Z"/><path d="M95.7,77.18c-3.63-3.63-9.16-4.48-13.65-2.34-1.11.53-1.46,1.94-.73,2.92.55.73,1.54.99,2.37.6,3.04-1.46,6.8-.89,9.27,1.57,2.46,2.46,3.03,6.22,1.57,9.27-.4.83-.14,1.82.6,2.37.98.74,2.39.38,2.92-.73,2.13-4.49,1.28-10.02-2.34-13.65Z"/></g></g></svg>
@@ -0,0 +1 @@
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>Minimax</title><defs><linearGradient id="lobe-icons-minimax-_R_0_" x1="0%" x2="100.182%" y1="50.057%" y2="50.057%"><stop offset="0%" stop-color="#E2167E"></stop><stop offset="100%" stop-color="#FE603C"></stop></linearGradient></defs><path d="M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z" fill="url(#lobe-icons-minimax-_R_0_)" fill-rule="nonzero"></path></svg>
@@ -0,0 +1 @@
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>Mistral</title><path d="M3.428 3.4h3.429v3.428H3.428V3.4zm13.714 0h3.43v3.428h-3.43V3.4z" fill="gold"></path><path d="M3.428 6.828h6.857v3.429H3.429V6.828zm10.286 0h6.857v3.429h-6.857V6.828z" fill="#FFAF00"></path><path d="M3.428 10.258h17.144v3.428H3.428v-3.428z" fill="#FF8205"></path><path d="M3.428 13.686h3.429v3.428H3.428v-3.428zm6.858 0h3.429v3.428h-3.429v-3.428zm6.856 0h3.43v3.428h-3.43v-3.428z" fill="#FA500F"></path><path d="M0 17.114h10.286v3.429H0v-3.429zm13.714 0H24v3.429H13.714v-3.429z" fill="#E10500"></path></svg>
@@ -0,0 +1 @@
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>OpenAI</title><path d="M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z"></path></svg>
@@ -0,0 +1 @@
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>OpenRouter</title><path d="M18.654 3.87a5.087 5.087 0 110 10.174L23.7 19.09c.64.641.187 1.737-.72 1.737H8.48a8.479 8.479 0 010-16.958h10.175zM8.479 7.26a5.087 5.087 0 100 10.176 5.087 5.087 0 000-10.175z"></path></svg>
@@ -0,0 +1 @@
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>Qwen</title><path d="M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z" fill="url(#lobe-icons-qwen-_R_0_)" fill-rule="nonzero"></path><defs><linearGradient id="lobe-icons-qwen-_R_0_" x1="0%" x2="100%" y1="0%" y2="0%"><stop offset="0%" stop-color="#6336E7" stop-opacity=".84"></stop><stop offset="100%" stop-color="#6F69F7" stop-opacity=".84"></stop></linearGradient></defs></svg>
@@ -0,0 +1 @@
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>StepFun</title><path d="M12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zM8.762 19.614H4.376v-4.386h4.386v4.386zm5.423 0H9.798v-4.386h4.387v4.386zm0-5.42H9.798V9.81h4.387v4.386zm0-5.418H9.798V4.39h4.387v4.386zm5.422-.004h-4.386V4.386h4.386v4.386z"></path></svg>
@@ -0,0 +1 @@
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>Grok</title><path d="M6.469 8.776L16.512 23h-4.464L2.005 8.776H6.47zm-.004 7.9l2.233 3.164L6.467 23H2l4.465-6.324zM22 2.582V23h-3.659V7.764L22 2.582zM22 1l-9.952 14.095-2.233-3.163L17.533 1H22z"></path></svg>
@@ -0,0 +1 @@
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>Zhipu</title><path d="M11.991 23.503a.24.24 0 00-.244.248.24.24 0 00.244.249.24.24 0 00.245-.249.24.24 0 00-.22-.247l-.025-.001zM9.671 5.365a1.697 1.697 0 011.099 2.132l-.071.172-.016.04-.018.054c-.07.16-.104.32-.104.498-.035.71.47 1.279 1.186 1.314h.366c1.309.053 2.338 1.173 2.286 2.523-.052 1.332-1.152 2.38-2.478 2.327h-.174c-.715.018-1.274.64-1.239 1.368 0 .124.018.23.053.337.209.373.54.658.96.8.75.23 1.517-.125 1.9-.782l.018-.035c.402-.64 1.17-.96 1.92-.711.854.284 1.378 1.226 1.099 2.167a1.661 1.661 0 01-2.077 1.102 1.711 1.711 0 01-.907-.711l-.017-.035c-.2-.323-.463-.58-.851-.711l-.056-.018a1.646 1.646 0 00-1.954.746 1.66 1.66 0 01-1.065.764 1.677 1.677 0 01-1.989-1.279c-.209-.906.332-1.83 1.257-2.043a1.51 1.51 0 01.296-.035h.018c.68-.071 1.151-.622 1.116-1.333a1.307 1.307 0 00-.227-.693 2.515 2.515 0 01-.366-1.403 2.39 2.39 0 01.366-1.208c.14-.195.21-.444.227-.693.018-.71-.506-1.261-1.186-1.332l-.07-.018a1.43 1.43 0 01-.299-.07l-.05-.019a1.7 1.7 0 01-1.047-2.114 1.68 1.68 0 012.094-1.101zm-5.575 10.11c.26-.264.639-.367.994-.27.355.096.633.379.728.74.095.362-.007.748-.267 1.013-.402.41-1.053.41-1.455 0a1.062 1.062 0 010-1.482zm14.845-.294c.359-.09.738.024.992.297.254.274.344.665.237 1.025-.107.36-.396.634-.756.718-.551.128-1.1-.22-1.23-.781a1.05 1.05 0 01.757-1.26zm-.064-4.39c.314.32.49.753.49 1.206 0 .452-.176.886-.49 1.206-.315.32-.74.5-1.185.5-.444 0-.87-.18-1.184-.5a1.727 1.727 0 010-2.412 1.654 1.654 0 012.369 0zm-11.243.163c.364.484.447 1.128.218 1.691a1.665 1.665 0 01-2.188.923c-.855-.36-1.26-1.358-.907-2.228a1.68 1.68 0 011.33-1.038c.593-.08 1.183.169 1.547.652zm11.545-4.221c.368 0 .708.2.892.524.184.324.184.724 0 1.048a1.026 1.026 0 01-.892.524c-.568 0-1.03-.47-1.03-1.048 0-.579.462-1.048 1.03-1.048zm-14.358 0c.368 0 .707.2.891.524.184.324.184.724 0 1.048a1.026 1.026 0 01-.891.524c-.569 0-1.03-.47-1.03-1.048 0-.579.461-1.048 1.03-1.048zm10.031-1.475c.925 0 1.675.764 1.675 1.706s-.75 1.705-1.675 1.705-1.674-.763-1.674-1.705c0-.942.75-1.706 1.674-1.706zm-2.626-.684c.362-.082.653-.356.761-.718a1.062 1.062 0 00-.238-1.028 1.017 1.017 0 00-.996-.294c-.547.14-.881.7-.752 1.257.13.558.675.907 1.225.783zm0 16.876c.359-.087.644-.36.75-.72a1.062 1.062 0 00-.237-1.019 1.018 1.018 0 00-.985-.301 1.037 1.037 0 00-.762.717c-.108.361-.017.754.239 1.028.245.263.606.377.953.305l.043-.01zM17.19 3.5a.631.631 0 00.628-.64c0-.355-.279-.64-.628-.64a.631.631 0 00-.628.64c0 .355.28.64.628.64zm-10.38 0a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64a.631.631 0 00-.628.64c0 .355.279.64.628.64zm-5.182 7.852a.631.631 0 00-.628.64c0 .354.28.639.628.639a.63.63 0 00.627-.606l.001-.034a.62.62 0 00-.628-.64zm5.182 9.13a.631.631 0 00-.628.64c0 .355.279.64.628.64a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64zm10.38.018a.631.631 0 00-.628.64c0 .355.28.64.628.64a.631.631 0 00.628-.64c0-.355-.279-.64-.628-.64zm5.182-9.148a.631.631 0 00-.628.64c0 .354.279.639.628.639a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64zm-.384-4.992a.24.24 0 00.244-.249.24.24 0 00-.244-.249.24.24 0 00-.244.249c0 .142.122.249.244.249zM11.991.497a.24.24 0 00.245-.248A.24.24 0 0011.99 0a.24.24 0 00-.244.249c0 .133.108.236.223.247l.021.001zM2.011 6.36a.24.24 0 00.245-.249.24.24 0 00-.244-.249.24.24 0 00-.244.249.24.24 0 00.244.249zm0 11.263a.24.24 0 00-.243.248.24.24 0 00.244.249.24.24 0 00.244-.249.252.252 0 00-.244-.248zm19.995-.018a.24.24 0 00-.245.248.24.24 0 00.245.25.24.24 0 00.244-.25.252.252 0 00-.244-.248z" fill="#3859FF" fill-rule="nonzero"></path></svg>
@@ -240,6 +240,88 @@ export function t(lang, key) {
240
240
  return dict[key] ?? MESSAGES.en[key] ?? key;
241
241
  }
242
242
 
243
+ // Bundled vendor logos under src/ui/icons. Model families match by id prefix;
244
+ // provider names match exactly. Anything unlisted has no logo.
245
+ const MODEL_ICON_FAMILIES = Object.freeze([
246
+ ["claude", "claude-color"],
247
+ ["gpt", "openai"],
248
+ ["o1", "openai"],
249
+ ["o3", "openai"],
250
+ ["o4", "openai"],
251
+ ["codex", "openai"],
252
+ ["gemini", "gemini-color"],
253
+ ["gemma", "gemini-color"],
254
+ ["deepseek", "deepseek-color"],
255
+ ["grok", "xai"],
256
+ ["kimi", "kimi"],
257
+ ["moonshot", "kimi"],
258
+ ["glm", "zhipu-color"],
259
+ ["qwen", "qwen-color"],
260
+ ["qwq", "qwen-color"],
261
+ ["mistral", "mistral-color"],
262
+ ["codestral", "mistral-color"],
263
+ ["devstral", "mistral-color"],
264
+ ["magistral", "mistral-color"],
265
+ ["minimax", "minimax-color"],
266
+ ["mimo", "mimocode"],
267
+ ["xiaomi", "mimocode"],
268
+ ["step", "stepfun"],
269
+ ]);
270
+
271
+ const PROVIDER_ICON_NAMES = Object.freeze({
272
+ anthropic: "claude-color",
273
+ openai: "openai",
274
+ google: "gemini-color",
275
+ deepseek: "deepseek-color",
276
+ xai: "xai",
277
+ kimi: "kimi",
278
+ moonshot: "kimi",
279
+ zhipu: "zhipu-color",
280
+ zai: "zhipu-color",
281
+ qwen: "qwen-color",
282
+ alibaba: "qwen-color",
283
+ mistral: "mistral-color",
284
+ minimax: "minimax-color",
285
+ xiaomi: "mimocode",
286
+ stepfun: "stepfun",
287
+ groq: "groq",
288
+ openrouter: "openrouter",
289
+ azure: "azure-color",
290
+ bedrock: "bedrock-color",
291
+ });
292
+
293
+ /**
294
+ * Resolve a bundled vendor logo key for a model id or name. Relay-style
295
+ * "vendor/model" ids match by the model part only; unknown -> "".
296
+ */
297
+ export function vendorIconForModel(modelId) {
298
+ if (typeof modelId !== "string") {
299
+ return "";
300
+ }
301
+ let id = modelId.toLowerCase();
302
+ const relaySeparator = id.lastIndexOf("/");
303
+ if (relaySeparator !== -1) {
304
+ id = id.slice(relaySeparator + 1);
305
+ }
306
+ for (const [prefix, icon] of MODEL_ICON_FAMILIES) {
307
+ if (id.startsWith(prefix)) {
308
+ return icon;
309
+ }
310
+ }
311
+ return "";
312
+ }
313
+
314
+ /** Resolve a bundled vendor logo key for a provider name; unknown -> "". */
315
+ export function vendorIconForProvider(providerName) {
316
+ if (typeof providerName !== "string") {
317
+ return "";
318
+ }
319
+ const key = providerName.toLowerCase();
320
+ return Object.prototype.hasOwnProperty.call(PROVIDER_ICON_NAMES, key)
321
+ ? PROVIDER_ICON_NAMES[key]
322
+ : "";
323
+ }
324
+
243
325
  export function formatCompactTokens(value) {
244
326
  const n = Number(value) || 0;
245
327
  const abs = Math.abs(n);