We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 542dd26 + a032f5e commit bca3197Copy full SHA for bca3197
1 file changed
crates/agent-gui/src/lib/chat/compaction/summarizer.ts
@@ -71,8 +71,9 @@ function isTransientError(error: unknown) {
71
}
72
73
function buildSummarizerRuntime(providerId: ProviderId, runtime: ProviderRuntimeConfig) {
74
- // Codex 用最低推理档做摘要,避免长思考挤占摘要预算。
75
- return providerId === "codex" ? { ...runtime, reasoning: "minimal" as const } : runtime;
+ // Codex 用 medium 档做摘要,避免长思考挤占摘要预算;不能用 minimal——
+ // GPT-5.6 世代已砍掉该档且 pi-ai 目录未标 null,clamp 不会兜底,API 会直接 400。
76
+ return providerId === "codex" ? { ...runtime, reasoning: "medium" as const } : runtime;
77
78
79
type SummarizerRequest = {
0 commit comments