From 00b8643231cbe3842e800f8fcf4071bd3c9793ae Mon Sep 17 00:00:00 2001 From: SaladDay Date: Mon, 19 Oct 2026 14:33:22 +0800 Subject: [PATCH] fix(agent): send effort for omp M3.1 Flash low/medium/high --- src/agent/configurator.ts | 1 + test/agent/oh-my-pi.test.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/agent/configurator.ts b/src/agent/configurator.ts index 90455dc2..514bd5ee 100644 --- a/src/agent/configurator.ts +++ b/src/agent/configurator.ts @@ -1019,6 +1019,7 @@ function prepareOhMyPi(options: AgentSetupOptions, paths: string[]): PreparedAge efforts: ['low', 'medium', 'high', 'xhigh', 'max'], defaultLevel: 'max', requiresEffort: true, + effortMap: { low: 'low', medium: 'medium', high: 'high' }, }, } : {}), }; diff --git a/test/agent/oh-my-pi.test.ts b/test/agent/oh-my-pi.test.ts index a9df711f..850a8dd7 100644 --- a/test/agent/oh-my-pi.test.ts +++ b/test/agent/oh-my-pi.test.ts @@ -50,6 +50,7 @@ describe('Oh my Pi configuration', () => { thinking: { mode: 'anthropic-adaptive', efforts: ['low', 'medium', 'high', 'xhigh', 'max'], defaultLevel: 'max', requiresEffort: true, + effortMap: { low: 'low', medium: 'medium', high: 'high' }, }, }); expect(modelsText).toContain('# keep models comment');