feat: update terms and default llm endpoint

This commit is contained in:
Simon
2026-02-27 17:09:54 +08:00
parent 7f67463a24
commit 89c83f454d
16 changed files with 225 additions and 174 deletions

View File

@@ -16,6 +16,14 @@ export default function Footer() {
© 2026 page-agent. All rights reserved.
</p>
<div className="flex items-center space-x-6">
<a
href="https://github.com/alibaba/page-agent/blob/main/docs/terms-and-privacy.md"
target="_blank"
rel="noopener noreferrer"
className="text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition-colors duration-200 text-sm"
>
{isZh ? '使用条款与隐私' : 'Terms & Privacy'}
</a>
<a
href="https://github.com/alibaba/page-agent"
target="_blank"

View File

@@ -4,8 +4,7 @@ export const CDN_DEMO_URL =
export const CDN_DEMO_CN_URL =
'https://registry.npmmirror.com/page-agent/1.3.0/files/dist/iife/page-agent.demo.js'
// Demo LLM for website testing
export const DEMO_MODEL = 'qwen3.5-plus'
export const DEMO_BASE_URL =
'https://hwcxiuzfylggtcktqgij.supabase.co/functions/v1/llm-testing-proxy-qwen'
// Demo LLM for website testing (homepage quick trial uses flash)
export const DEMO_MODEL = 'qwen3.5-flash'
export const DEMO_BASE_URL = 'https://page-ag-testing-ohftxirgbn.cn-shanghai.fcapp.run'
export const DEMO_API_KEY = 'NA'

View File

@@ -164,59 +164,44 @@ const pageAgent = new PageAgent({
? '以下免费测试接口仅供 PageAgent.js 和 PageAgent Extension 的技术评估使用。有速率限制,可能随时变更。请勿用于生产环境。'
: 'The following free testing endpoints are provided for technical evaluation of PageAgent.js and PageAgent Extension only. Rate-limited, subject to change. Not for production use.'}
</p>
<div className="space-y-4">
<div className="bg-gray-50 dark:bg-gray-900/30 rounded-lg p-5 border border-gray-200 dark:border-gray-800">
<h3 className="font-semibold text-gray-900 dark:text-gray-100 mb-2">Qwen (Default)</h3>
<p className="text-xs text-gray-500 dark:text-gray-400 mb-3">
{isZh ? '转发至阿里云百炼平台' : 'Proxied to'}{' '}
<code className="text-xs bg-gray-200 dark:bg-gray-700 px-1 rounded">
https://dashscope-intl.aliyuncs.com/compatible-mode/v1
</code>
{' · '}
<a
href="https://terms.alicdn.com/legal-agreement/terms/common_platform_service/20230728213935489/20230728213935489.html"
target="_blank"
rel="noopener noreferrer"
className="text-blue-500 hover:underline"
>
{isZh ? '百炼服务协议' : 'Bailian Terms'}
</a>
</p>
<CodeEditor
code={`LLM_BASE_URL="https://hwcxiuzfylggtcktqgij.supabase.co/functions/v1/llm-testing-proxy-qwen"
<div className="bg-gray-50 dark:bg-gray-900/30 rounded-lg p-5 border border-gray-200 dark:border-gray-800">
<h3 className="font-semibold text-gray-900 dark:text-gray-100 mb-2">
Qwen (Alibaba Cloud China)
</h3>
<p className="text-xs text-gray-500 dark:text-gray-400 mb-3">
{isZh
? '通过阿里云函数计算(中国大陆)转发至百炼 Qwen 模型'
: 'Proxied via Alibaba Cloud FC (Mainland China) to BaiLian Qwen models'}
{' · '}
<a
href="https://github.com/alibaba/page-agent/blob/main/docs/terms-and-privacy.md#2-testing-api-and-demo-disclaimer--terms-of-use"
target="_blank"
rel="noopener noreferrer"
className="text-blue-500 hover:underline"
>
{isZh ? '使用条款' : 'Terms of Use'}
</a>
</p>
<CodeEditor
code={`# qwen3.5-plus (default for demos) or qwen3.5-flash (lighter)
LLM_BASE_URL="https://page-ag-testing-ohftxirgbn.cn-shanghai.fcapp.run"
LLM_MODEL_NAME="qwen3.5-plus"
LLM_API_KEY="NA"`}
/>
</div>
<div className="bg-gray-50 dark:bg-gray-900/30 rounded-lg p-5 border border-gray-200 dark:border-gray-800">
<h3 className="font-semibold text-gray-900 dark:text-gray-100 mb-2">DeepSeek</h3>
<p className="text-xs text-gray-500 dark:text-gray-400 mb-3">
{isZh ? '转发至 DeepSeek 官方 API' : 'Proxied to'}{' '}
<code className="text-xs bg-gray-200 dark:bg-gray-700 px-1 rounded">
https://api.deepseek.com
</code>
{' · '}
<a
href="https://cdn.deepseek.com/policies/en-US/deepseek-privacy-policy.html"
target="_blank"
rel="noopener noreferrer"
className="text-blue-500 hover:underline"
>
{isZh ? 'DeepSeek 隐私政策' : 'DeepSeek Privacy Policy'}
</a>
</p>
<CodeEditor
code={`LLM_BASE_URL="https://hwcxiuzfylggtcktqgij.supabase.co/functions/v1/llm-testing-proxy"
LLM_MODEL_NAME="PAGE-AGENT-FREE-TESTING-RANDOM"
LLM_API_KEY="PAGE-AGENT-FREE-TESTING-RANDOM"`}
/>
</div>
/>
</div>
<div className="mt-4 p-4 bg-amber-50 dark:bg-amber-950/20 rounded-lg border border-amber-200 dark:border-amber-800">
<p className="text-xs text-gray-600 dark:text-gray-400">
{isZh
? '⚠️ 测试接口仅供技术评估。免费模型及其提供商可能随时变更,恕不另行通知。请参阅各 LLM 提供商的隐私政策了解数据处理方式。'
: "⚠️ Testing endpoints are for technical evaluation only. The free model and service providers may change at any time without notice. Refer to each LLM provider's privacy policy for data handling details."}
? '⚠️ 仅供技术评估和研发用途,禁止用于生产环境。数据通过中国大陆服务器处理。请勿输入任何个人身份信息或敏感数据。使用即表示您同意'
: '⚠️ Strictly for technical evaluation and R&D only. Data is processed via servers in Mainland China. Do not input any PII or sensitive data. By using this API you agree to the'}{' '}
<a
href="https://github.com/alibaba/page-agent/blob/main/docs/terms-and-privacy.md#2-testing-api-and-demo-disclaimer--terms-of-use"
target="_blank"
rel="noopener noreferrer"
className="text-blue-500 hover:underline"
>
{isZh ? '使用条款' : 'Terms of Use'}
</a>
</p>
</div>
</section>

View File

@@ -1,6 +1,7 @@
import { Suspense } from 'react'
import { Route, Switch } from 'wouter'
import Footer from '../../components/Footer'
import Header from '../../components/Header'
import DocsLayout from './Layout'
import CustomUIDocs from './advanced/custom-ui/page'
@@ -24,11 +25,14 @@ import Troubleshooting from './introduction/troubleshooting/page'
function DocsPage({ children }: { children: React.ReactNode }) {
return (
<div className="min-h-screen bg-white dark:bg-gray-900">
<div className="min-h-screen bg-white dark:bg-gray-900 flex flex-col">
<Header />
<DocsLayout>
<Suspense>{children}</Suspense>
</DocsLayout>
<div className="mt-auto">
<Footer />
</div>
</div>
)
}

View File

@@ -23,7 +23,32 @@ export default function QuickStart() {
</h3>
<div className="bg-yellow-50 dark:bg-yellow-900/20 p-2 rounded mb-3 text-sm">
<span className="text-yellow-800 dark:text-yellow-200">
{isZh ? '仅用于技术评估' : 'For evaluation only'}
{' '}
{isZh ? (
<>
Demo CDN 使 LLM API使
<a
href="https://github.com/alibaba/page-agent/blob/main/docs/terms-and-privacy.md#2-testing-api-and-demo-disclaimer--terms-of-use"
target="_blank"
rel="noopener noreferrer"
className="underline"
>
使
</a>
</>
) : (
<>
This demo CDN uses our free testing LLM API. By using it you agree to the{' '}
<a
href="https://github.com/alibaba/page-agent/blob/main/docs/terms-and-privacy.md#2-testing-api-and-demo-disclaimer--terms-of-use"
target="_blank"
rel="noopener noreferrer"
className="underline"
>
Terms of Use
</a>
</>
)}
</span>
</div>
<CodeEditor

View File

@@ -214,6 +214,33 @@ export default function HeroSection() {
{isZh ? '执行' : 'Run'}
</button>
</div>
<p className="text-xs text-gray-500 dark:text-gray-400 text-left">
{isZh ? (
<>
使 LLM API
<a
href="https://github.com/alibaba/page-agent/blob/main/docs/terms-and-privacy.md#2-testing-api-and-demo-disclaimer--terms-of-use"
target="_blank"
rel="noopener noreferrer"
className="underline"
>
使
</a>
</>
) : (
<>
Powered by free testing LLM API. By clicking Run you agree to the{' '}
<a
href="https://github.com/alibaba/page-agent/blob/main/docs/terms-and-privacy.md#2-testing-api-and-demo-disclaimer--terms-of-use"
target="_blank"
rel="noopener noreferrer"
className="underline"
>
Terms of Use
</a>
</>
)}
</p>
</div>
)}
@@ -252,10 +279,8 @@ export default function HeroSection() {
}
className="px-2 py-1.5 text-xs border border-gray-300 dark:border-gray-500 rounded bg-white dark:bg-gray-600 text-gray-700 dark:text-gray-200"
>
<option value="international">
{isZh ? '国际' : 'International'}
</option>
<option value="china">{isZh ? '国内镜像' : 'China Mirror'}</option>
<option value="international">jsdelivr CDN</option>
<option value="china">npmmirror CDN</option>
</select>
<div
dangerouslySetInnerHTML={{
@@ -283,15 +308,37 @@ export default function HeroSection() {
<ul className="space-y-2 text-sm text-gray-700 dark:text-gray-300">
<li className="flex items-start text-left">
<span className="w-1.5 h-1.5 bg-yellow-500 rounded-full mt-2 mr-2 shrink-0 "></span>
{isZh
? '仅做技术评估,链接定期失效'
: 'Demo only—link may expire without notice'}
{isZh ? (
<span>
使 LLM API使
<a
href="https://github.com/alibaba/page-agent/blob/main/docs/terms-and-privacy.md#2-testing-api-and-demo-disclaimer--terms-of-use"
target="_blank"
rel="noopener noreferrer"
className="text-yellow-700 dark:text-yellow-300 underline"
>
使
</a>
</span>
) : (
<span>
Uses free testing LLM API. By using you agree to the{' '}
<a
href="https://github.com/alibaba/page-agent/blob/main/docs/terms-and-privacy.md#2-testing-api-and-demo-disclaimer--terms-of-use"
target="_blank"
rel="noopener noreferrer"
className="text-yellow-700 dark:text-yellow-300 underline"
>
Terms of Use
</a>
</span>
)}
</li>
<li className="flex items-start text-left">
<span className="w-1.5 h-1.5 bg-yellow-500 rounded-full mt-2 mr-2 shrink-0 "></span>
{isZh
? '使用 Qwen 模型(阿里云百炼),参考阿里云隐私政策'
: 'This free demo uses Qwen via Alibaba Cloud Bailian (see their privacy policy)'}
? '数据通过中国大陆服务器处理'
: 'Data processed via servers in Mainland China'}
</li>
<li className="flex items-start text-left">
<span className="w-1.5 h-1.5 bg-yellow-500 rounded-full mt-2 mr-2 shrink-0 "></span>
@@ -301,9 +348,7 @@ export default function HeroSection() {
</li>
<li className="flex items-start text-left">
<span className="w-1.5 h-1.5 bg-yellow-500 rounded-full mt-2 mr-2 shrink-0 "></span>
{isZh
? '仅支持单页应用,页面跳转后需要重新注入'
: 'Works on single-page apps only—reload required after navigation'}
{isZh ? '支持单页应用' : 'Works on single-page apps'}
</li>
<li className="flex items-start text-left">
<span className="w-1.5 h-1.5 bg-yellow-500 rounded-full mt-2 mr-2 shrink-0 "></span>
@@ -313,10 +358,10 @@ export default function HeroSection() {
</li>
<li className="flex items-start text-left">
<span className="w-1.5 h-1.5 bg-yellow-500 rounded-full mt-2 mr-2 shrink-0 "></span>
{isZh ? '详细使用限制参照' : 'Full limitations in'}{' '}
{isZh ? '详细使用限制参照' : 'Full limitations in'}
<Link
href="/docs/introduction/limitations"
className="text-blue-600 dark:text-blue-400 hover:underline"
className="text-blue-600 dark:text-blue-400 hover:underline pl-1"
>
{isZh ? '《文档》' : 'Docs'}
</Link>