feat(website): loading speed; model list

This commit is contained in:
Simon
2026-02-14 17:41:14 +08:00
parent 58a3d5fbc6
commit e5cf60df1b
2 changed files with 2 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ import {
Users,
Zap,
} from 'lucide-react'
import { PageAgent } from 'page-agent'
import { useEffect, useState } from 'react'
import { siGooglechrome } from 'simple-icons'
import { Link, useSearchParams } from 'wouter'
@@ -75,9 +76,7 @@ export default function HomePage() {
const win = window as any
// Lazy load PageAgent only when user clicks execute
if (!win.pageAgent || win.pageAgent.disposed) {
const { PageAgent } = await import('page-agent')
win.pageAgent = new PageAgent({
// 把 react 根元素排除掉,挂了很多冒泡时间导致假阳
interactiveBlacklist: [document.getElementById('root')!],

View File

@@ -26,7 +26,7 @@ const MODEL_GROUPS: Record<string, string[]> = {
],
xAI: ['grok-4.1-fast', 'grok-4', 'grok-code-fast'],
MoonshotAI: ['kimi-k2.5'],
'Z.AI': ['glm-4.7'],
'Z.AI': ['glm-5', 'glm-4.7'],
}
const ModelBadge = ({ model, baseline }: { model: string; baseline?: boolean }) => (