import type { ReactNode } from 'react';
import { Activity, Boxes, Image, Layers, Route, ServerCog, ShieldCheck, Video, Workflow } from 'lucide-react';
import { Badge, Button, Card, CardContent } from '../components/ui';
import type { PageKey } from '../types';
const coverage = [
{ icon: , label: '大模型对话', value: 'Chat / Responses', detail: '兼容 OpenAI 对话接口与 EasyAI 站内调用' },
{ icon: , label: '图像生成', value: 'Image Generation', detail: '支持尺寸、质量、计费权重和结果转存' },
{ icon: , label: '图像编辑', value: 'Image Edit', detail: '参考图、mask 和主服务文件上传链路' },
{ icon: , label: '视频能力', value: 'Video Ready', detail: '保留任务队列、进度事件和后续 Client 扩展位' },
];
const advantages = [
{ icon: , title: '多客户端路由', body: '同一模型可配置多个平台客户端,前一个失败后按策略切换下一个。' },
{ icon: , title: '持久化任务', body: '任务、事件、队列和回调 outbox 入库,服务重启后可以恢复运行状态。' },
{ icon: , title: '策略化限流', body: 'TPM、RPM、并发、用户组折扣和平台优先级统一纳入调度。' },
{ icon: , title: 'Hybrid 接入', body: '既可独立闭环运行,也可以对接 server-main 的认证、上传和业务前端。' },
];
export function HomePage(props: { onNavigate: (page: PageKey) => void }) {
return (
模型上线
OpenAI 与 Gemini Phase 1 Client 已进入网关运行链路
对话、生图、图像编辑先行迁移,视频任务队列和进度模型已预留扩展位。
EasyAI AI Gateway
一个面向多模型、多平台、多任务形态的 AI 网关中台
统一承接对话、生图、图像编辑和后续视频能力,让 server-main 通过稳定接口调用模型,让平台路由、失败重试、限流计费和任务恢复在网关侧闭环。
Model Coverage
覆盖从文本到多媒体的模型能力
{coverage.map((item) => (
))}
Gateway Advantage
为生产调度准备的网关能力
{advantages.map((item) => (
))}
);
}
function GatewayPreview() {
return (
Gateway Runtime
hybrid
Request
Policy
Client Retry
Callback
Result
);
}
function PreviewItem(props: { label: string; value: string }) {
return (
{props.label}
{props.value}
);
}
function FeatureCard(props: { detail: string; icon: ReactNode; label: string; value: string }) {
return (
{props.icon}
{props.label}
{props.value}
{props.detail}
);
}
function AdvantageCard(props: { body: string; icon: ReactNode; title: string }) {
return (
{props.icon}
{props.title}
{props.body}
);
}