fix(consult): BUG-945~949 领域截断、思考分片、Pass 4 按模式分流
schema 上限与执行上限解耦;校正思考改分片门;日期观察不删字,保证句与无分钟个人盘退回重写。
This commit is contained in:
@@ -22,7 +22,7 @@ import {
|
||||
type PublicRectificationPhase,
|
||||
type PublicRectificationTool,
|
||||
} from "./public-receipt";
|
||||
import { acceptThinkStepText } from "../../think-step-gate";
|
||||
import { acceptThinkingFragment } from "../../think-step-gate";
|
||||
import { isToolInputRejection, toolResultFromChunk } from "./host-fallback";
|
||||
|
||||
export type PublicPhaseStreamEvent = Readonly<{
|
||||
@@ -187,7 +187,7 @@ export type InternalThinkingDeltaEvent = Readonly<{
|
||||
}>;
|
||||
|
||||
export function toPublicThinkingDelta(text: string): InternalThinkingDeltaEvent | null {
|
||||
const cleaned = acceptThinkStepText(text);
|
||||
const cleaned = acceptThinkingFragment(text);
|
||||
if (!cleaned) return null;
|
||||
return { type: "thinking.delta", text: cleaned };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user