refactor(athena): extract applyModelThinkingConfig shared utility

This commit is contained in:
ismeth
2026-02-20 14:26:23 +01:00
committed by YeonGyu-Kim
parent ad481472eb
commit de8746226f
4 changed files with 76 additions and 12 deletions
+2 -6
View File
@@ -1,7 +1,7 @@
import type { AgentConfig } from "@opencode-ai/sdk"
import type { AgentMode } from "../types"
import { isGptModel } from "../types"
import { createAgentToolRestrictions } from "../../shared/permission-compat"
import { applyModelThinkingConfig } from "./model-thinking-config"
const MODE: AgentMode = "subagent"
@@ -43,10 +43,6 @@ export function createCouncilMemberAgent(model: string): AgentConfig {
...restrictions,
}
if (isGptModel(model)) {
return { ...base, reasoningEffort: "medium" }
}
return { ...base, thinking: { type: "enabled", budgetTokens: 32000 } }
return applyModelThinkingConfig(base, model)
}
createCouncilMemberAgent.mode = MODE