Skip to content

The agent that grows with you

fix(docs): state the real stream-loop bound for newline-free loops

kshitijk4poordb827a1b2b18
diff --git a/website/docs/integrations/providers.md b/website/docs/integrations/providers.md
index b24fe878504..17c3a2f62cf 100644
--- a/website/docs/integrations/providers.md
+++ b/website/docs/integrations/providers.md
@@ -1270,7 +1270,7 @@ Hermes no longer reads `model.max_tokens`, `HERMES_MAX_TOKENS`, provider output-
settings, or `model_overrides.*.*.max_output_tokens`. Remove these legacy settings.
Custom OpenAI-compatible endpoints receive no automatic catalog-sized output cap.
Their server defaults apply; these can be lower than the model maximum.
-A reply that degenerates into a repetition loop is still stopped: within about 100,000
+A reply that degenerates into a repetition loop is still stopped: within about 130,000
characters of the loop starting (visible or reasoning text), Hermes closes the stream
and ends the turn with a "Repetition Detected" notice, so an uncapped endpoint cannot keep a
looping model running.
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/providers.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/providers.md
index 659b6ae9454..565edf9d8b8 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/providers.md
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/providers.md
@@ -1090,7 +1090,7 @@ model:
:::note 两个设置,容易混淆
**`context_length`** 是**总上下文窗口**——输入和输出 token 的合计预算(例如 Claude Opus 4.6 为 200,000)。Hermes 用它来决定何时压缩历史记录以及验证 API 请求。
-**输出上限**限制单次响应,而非对话历史。Hermes 不再读取 `model.max_tokens`、`HERMES_MAX_TOKENS` 或提供商及模型的输出上限设置。兼容端点使用服务器默认值;该值不一定是模型最大值。回复在流式输出中陷入重复循环时仍会被停止:循环(可见内容或推理内容)开始后约 100,000 个字符以内,Hermes 会关闭该流并以“Repetition Detected”提示结束本轮,因此没有输出上限的端点也不会让循环中的模型一直运行下去。原生 Anthropic Messages 仍要求 `max_tokens`,Hermes 会提供内部值。Bedrock Converse 的可选输出限制默认省略。
+**输出上限**限制单次响应,而非对话历史。Hermes 不再读取 `model.max_tokens`、`HERMES_MAX_TOKENS` 或提供商及模型的输出上限设置。兼容端点使用服务器默认值;该值不一定是模型最大值。回复在流式输出中陷入重复循环时仍会被停止:循环(可见内容或推理内容)开始后约 130,000 个字符以内,Hermes 会关闭该流并以“Repetition Detected”提示结束本轮,因此没有输出上限的端点也不会让循环中的模型一直运行下去。原生 Anthropic Messages 仍要求 `max_tokens`,Hermes 会提供内部值。Bedrock Converse 的可选输出限制默认省略。
当自动检测获取的窗口大小不正确时,设置 `context_length`。
请删除旧的用户输出上限配置;内部任务预算与 MCP 采样安全预算保持不变。