From 632f22962e441190c598f0f76ca4c767878e4c6f Mon Sep 17 00:00:00 2001 From: Simon <10131203+gaomeng1900@users.noreply.github.com> Date: Tue, 3 Mar 2026 21:59:02 +0800 Subject: [PATCH] docs: add recommended startup parameters for Ollama --- .../src/pages/docs/features/models/page.tsx | 32 +++++++++++++++---- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/packages/website/src/pages/docs/features/models/page.tsx b/packages/website/src/pages/docs/features/models/page.tsx index b3819a1..b1fd6db 100644 --- a/packages/website/src/pages/docs/features/models/page.tsx +++ b/packages/website/src/pages/docs/features/models/page.tsx @@ -247,16 +247,34 @@ LLM_MODEL_NAME="qwen3:14b"`} {isZh ? '确保上下文长度大于输入 token 数,否则 Ollama 会静默截断 prompt。普通页面约需 15k token,随步骤增加。默认 4k 上下文长度无法正常工作' : 'Ensure context length exceeds input tokens, or Ollama will silently truncate prompts. ~15k tokens for a typical page, increases with steps. Default 4k context length will NOT work'} - + +
+

+ {isZh ? '建议启动参数' : 'Recommended Startup'} +

+

+ {isZh + ? '启动 Ollama 时建议配置以下环境变量:扩大上下文窗口、允许跨域访问、监听所有网络接口。' + : 'Start Ollama with these environment variables: larger context window, allow cross-origin access, and listen on all interfaces.'} +

+ +
+

macOS / Linux

+ + +

+ Windows (PowerShell) +

+ +
+
)