feat: add effort support for opencode

This commit is contained in:
Haileyesus
2026-07-01 23:32:13 +03:00
parent 85e8facfbb
commit 7785763c14
7 changed files with 268 additions and 6 deletions

View File

@@ -5,6 +5,7 @@ export const DEFAULT_EFFORT_VALUE = 'default';
export const FALLBACK_PROVIDER_EFFORT_VALUES: Partial<Record<LLMProvider, readonly string[]>> = {
claude: ['low', 'medium', 'high', 'xhigh', 'max'],
codex: ['low', 'medium', 'high', 'xhigh'],
opencode: ['none', 'low', 'medium', 'high', 'xhigh', 'max'],
};
export const toProviderEffortOptions = (