chore: commit pending gateway changes
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
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';
|
||||
import type { PageKey, PlaygroundMode } from '../types';
|
||||
import { PlaygroundEntry, PublicWorksGallery } from './PlaygroundPage';
|
||||
|
||||
const coverage = [
|
||||
{ icon: <Activity size={18} />, label: '大模型对话', value: 'Chat / Responses', detail: '兼容 OpenAI 对话接口与 EasyAI 站内调用' },
|
||||
@@ -17,7 +18,10 @@ const advantages = [
|
||||
{ icon: <ServerCog size={18} />, title: 'Hybrid 接入', body: '既可独立闭环运行,也可以对接 server-main 的认证、上传和业务前端。' },
|
||||
];
|
||||
|
||||
export function HomePage(props: { onNavigate: (page: PageKey) => void }) {
|
||||
export function HomePage(props: {
|
||||
onNavigate: (page: PageKey) => void;
|
||||
onPlaygroundMode: (mode: PlaygroundMode) => void;
|
||||
}) {
|
||||
return (
|
||||
<div className="landingPage">
|
||||
<section className="releaseNotice">
|
||||
@@ -32,6 +36,7 @@ export function HomePage(props: { onNavigate: (page: PageKey) => void }) {
|
||||
<h1>一个面向多模型、多平台、多任务形态的 AI 网关中台</h1>
|
||||
<p>统一承接对话、生图、图像编辑和后续视频能力,让 server-main 通过稳定接口调用模型,让平台路由、失败重试、限流计费和任务恢复在网关侧闭环。</p>
|
||||
<div className="landingActions">
|
||||
<Button type="button" onClick={() => props.onNavigate('playground')}>开始在线测试</Button>
|
||||
<Button type="button" onClick={() => props.onNavigate('models')}>浏览模型</Button>
|
||||
<Button type="button" variant="outline" onClick={() => props.onNavigate('docs')}>查看 API 文档</Button>
|
||||
</div>
|
||||
@@ -39,6 +44,9 @@ export function HomePage(props: { onNavigate: (page: PageKey) => void }) {
|
||||
<GatewayPreview />
|
||||
</section>
|
||||
|
||||
<PlaygroundEntry onModeChange={props.onPlaygroundMode} />
|
||||
<PublicWorksGallery />
|
||||
|
||||
<section className="landingSection">
|
||||
<div className="landingSectionHeader">
|
||||
<p className="eyebrow">Model Coverage</p>
|
||||
|
||||
Reference in New Issue
Block a user