refactor(agents): narrow deepseek filter type · openclaw/openclaw@10f3e52
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -15,7 +15,7 @@ const DSML_CLOSE_TOKENS = DSML_BARS.flatMap((bar) =>
|
15 | 15 | const MAX_OPEN_TOKEN_LEN = Math.max(...DSML_OPEN_TOKENS.map((token) => token.length)); |
16 | 16 | const MAX_CLOSE_TOKEN_LEN = Math.max(...DSML_CLOSE_TOKENS.map((token) => token.length)); |
17 | 17 | |
18 | | -export interface DeepSeekTextFilter { |
| 18 | +interface DeepSeekTextFilter { |
19 | 19 | /** Push one streamed text chunk and receive any safe visible text segments. */ |
20 | 20 | push(chunk: string): string[]; |
21 | 21 | /** Flush buffered text at stream end, dropping any unterminated DSML block. */ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。