feat: add qwen3.5-plus for testing and make it default

This commit is contained in:
Simon
2026-02-24 00:59:42 +08:00
parent d913dd7bd0
commit 2b99620de3
10 changed files with 130 additions and 27 deletions

View File

@@ -5,7 +5,7 @@ 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 = 'PAGE-AGENT-FREE-TESTING-RANDOM'
export const DEMO_MODEL = 'qwen3.5-plus'
export const DEMO_BASE_URL =
'https://hwcxiuzfylggtcktqgij.supabase.co/functions/v1/llm-testing-proxy'
export const DEMO_API_KEY = 'PAGE-AGENT-FREE-TESTING-RANDOM'
'https://hwcxiuzfylggtcktqgij.supabase.co/functions/v1/llm-testing-proxy-qwen'
export const DEMO_API_KEY = 'NA'

View File

@@ -140,7 +140,7 @@ export default function Models() {
const pageAgent = new PageAgent({
baseURL: 'https://dashscope.aliyuncs.com/compatible-mode/v1',
apiKey: 'your-api-key',
model: 'qwen-plus'
model: 'qwen3.5-plus'
});
// Self-hosted models (e.g., Ollama)
@@ -150,16 +150,77 @@ const pageAgent = new PageAgent({
model: 'qwen3:14b'
});
// Free testing endpoint
// Note: Rate-limited, content-filtered, subject to change. Replace with your own.
// Note: Uses official DeepSeek-chat (3.2). See DeepSeek website for terms & privacy.
const DEMO_MODEL = 'PAGE-AGENT-FREE-TESTING-RANDOM'
const DEMO_BASE_URL = 'https://hwcxiuzfylggtcktqgij.supabase.co/functions/v1/llm-testing-proxy'
const DEMO_API_KEY = 'PAGE-AGENT-FREE-TESTING-RANDOM'
`}
/>
</section>
{/* Free Testing API Section */}
<section className="mb-10">
<h2 className="text-2xl font-semibold mb-4">
{isZh ? '免费测试接口' : 'Free Testing API'}
</h2>
<p className="text-sm text-gray-600 dark:text-gray-400 mb-4">
{isZh
? '以下免费测试接口仅供 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"
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."}
</p>
</div>
</section>
{/* Ollama Section */}
<section className="mb-10">
<h2 className="text-2xl font-semibold mb-4">Ollama</h2>

View File

@@ -71,8 +71,8 @@ import { PageAgent } from 'page-agent'`}
</h3>
<CodeEditor
code={`const agent = new PageAgent({
model: 'deepseek-chat',
baseURL: 'https://api.deepseek.com',
model: 'qwen3.5-plus',
baseURL: 'https://dashscope.aliyuncs.com/compatible-mode/v1',
apiKey: 'YOUR_API_KEY',
language: '${isZh ? 'zh-CN' : 'en-US'}'
})`}

View File

@@ -290,8 +290,8 @@ export default function HeroSection() {
<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
? '使用 DeepSeek 模型,参考 DeepSeek 用户协议和隐私政策'
: 'This free demo uses DeepSeek API (see their terms and privacy policy)'}
? '使用 Qwen 模型(阿里云百炼),参考阿里云隐私政策'
: 'This free demo uses Qwen via Alibaba Cloud Bailian (see their privacy policy)'}
</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>