diff --git a/packages/website/src/pages/docs/features/models/page.tsx b/packages/website/src/pages/docs/features/models/page.tsx index fa4f871..339e30d 100644 --- a/packages/website/src/pages/docs/features/models/page.tsx +++ b/packages/website/src/pages/docs/features/models/page.tsx @@ -23,7 +23,7 @@ const MODEL_GROUPS: Record = { 'qwen-3-plus', 'qwen3:14b (ollama)', ], - OpenAI: ['gpt-5.2', 'gpt-5.1', 'gpt-5', 'gpt-5-mini', 'gpt-4.1', 'gpt-4.1-mini'], + OpenAI: ['gpt-5.4', 'gpt-5.2', 'gpt-5.1', 'gpt-5', 'gpt-5-mini', 'gpt-4.1', 'gpt-4.1-mini'], DeepSeek: ['deepseek-3.2'], Google: ['gemini-3-pro', 'gemini-3-flash', 'gemini-2.5'], Anthropic: [ @@ -68,11 +68,6 @@ export default function Models() { {isZh ? '已测试模型' : 'Tested Models'} -

- {isZh - ? '推荐使用 ToolCall 能力强的轻量级模型。' - : 'Recommended: Fast, lightweight models with strong ToolCall capabilities.'} -

{Object.entries(MODEL_GROUPS).map(([brand, models]) => ( @@ -96,6 +91,11 @@ export default function Models() {

{isZh ? '提示' : 'Tips'}

    +
  • + {isZh + ? '⭐ 推荐使用 ToolCall 能力强的轻量级模型' + : '⭐ Recommended: Fast, lightweight models with strong ToolCall capabilities'} +
  • {isZh ? 'ToolCall 能力较弱的模型可能返回错误的格式,常见错误能够自动恢复,建议设置较高的 temperature' @@ -110,39 +110,6 @@ export default function Models() {
- {/* Security Section */} -
-

- {isZh ? '🔐 生产环境鉴权建议' : '🔐 Production Authentication'} -

-
-

- {isZh - ? '⚠️ 永远不要把真实的 LLM API Key 发布到前端代码' - : '⚠️ Never commit real LLM API Keys to your frontend code'} -

-
-
-

- {isZh ? '后端代理转发' : 'Backend Proxy Pattern'} -

-

- {isZh - ? '在后端搭建一个 LLM 流量转发接口,该接口使用与你网站上其他接口相同的鉴权方式,例如:' - : 'Set up a backend LLM proxy endpoint that uses the same authentication method as other APIs in your website, such as:'} -

-
    -
  • {isZh ? '• Session/Cookie 会话认证' : '• Session/Cookie-based authentication'}
  • -
  • - {isZh ? '• OIDC (OpenID Connect) 单点登录' : '• OIDC (OpenID Connect) single sign-on'} -
  • -
  • - {isZh ? '• 临时 Access Key 或 JWT Token' : '• Temporary Access Key or JWT Token'} -
  • -
-
-
- {/* Configuration Section */}
{isZh ? '配置方式' : 'Configuration'} @@ -170,9 +137,24 @@ const pageAgent = new PageAgent({ {isZh ? '免费测试接口' : 'Free Testing API'}

{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.'} + ? '以下免费测试接口仅供 PageAgent.js 和 PageAgent Extension 的技术评估和测试使用。' + : 'The following free testing endpoint is provided for testing and technical evaluation.'}

+
+

+ {isZh + ? '⚠️ 仅供技术评估和研发用途,禁止用于生产环境。数据通过中国大陆服务器处理。请勿输入任何个人身份信息或敏感数据。使用即表示您同意' + : '⚠️ 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'}{' '} + + {isZh ? '使用条款' : 'Terms of Use'} + +

+

Qwen (Alibaba Cloud China) @@ -198,21 +180,6 @@ LLM_MODEL_NAME="qwen3.5-plus" LLM_API_KEY="NA"`} />

-
-

- {isZh - ? '⚠️ 仅供技术评估和研发用途,禁止用于生产环境。数据通过中国大陆服务器处理。请勿输入任何个人身份信息或敏感数据。使用即表示您同意' - : '⚠️ 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'}{' '} - - {isZh ? '使用条款' : 'Terms of Use'} - -

-
{/* Ollama Section */} @@ -277,6 +244,48 @@ LLM_MODEL_NAME="qwen3:14b"`}
+ + {/* Production Authentication */} +
+ + {isZh ? '🔐 生产环境鉴权' : '🔐 Production Authentication'} + +

+ {isZh + ? '如果你只是将它用作个人助手,可以直接连接你的 LLM 服务。' + : 'If you only use it as a personal assistant, you can connect to your LLM service directly.'} +

+

+ {isZh ? ( + <> + 如果你计划将它集成到你的 Web 应用中,建议搭建一个后端代理来转发 LLM 请求,并使用{' '} + customFetch 携带 Cookie 或其他鉴权信息: + + ) : ( + <> + If you plan to integrate it into your web app, it's better to have a backend proxy for + the LLM and use customFetch to authenticate the request with cookies or + other methods: + + )} +

+ + fetch(url, { ...init, credentials: 'include' }), +});`} + /> +
+

+ {isZh + ? '⚠️ 永远不要把真实的 LLM API Key 提交到前端代码中' + : '⚠️ NEVER commit real LLM API keys to your frontend code'} +

+
+
) }