import { FC } from 'hono/jsx'; import { TopbarNav } from '../components/TopbarNav.js'; import type { ProviderConfig } from '../../config.js'; import { VERSION } from '../../lib/version.js'; interface Props { models: ProviderConfig[]; error?: string; } export const ModelsPage: FC = (props) => { return ( 模型管理 - LLM Gateway {/* ───── 页面标题区 ───── */} {props.error && (
错误: {props.error}
)} {props.models.length === 0 ? (
⚙

暂无模型配置

点击 "新增模型" 添加你的第一个模型。

新增模型
) : (
{props.models.map((model, index) => ( ))}
# 模型名称 描述 操作
{index + 1}
{model.customModel} → {model.realModel}
{model.desc || '—'}
{/* 隐藏开关 */} {/* 复制按钮 */} 编辑 限制
)} {/* 版本信息 */}
v{VERSION}