55 FREEBUFF_GEMINI_THINKER_STEP_PROMPT ,
66 FREEBUFF_GEMINI_THINKER_SYSTEM_INSTRUCTION ,
77} from '@codebuff/common/constants/freebuff-gemini-thinker'
8+ import { FREEBUFF_REVIEWER_AGENT_ID_BY_MODEL } from '@codebuff/common/constants/free-agents'
89import {
910 canFreebuffModelSpawnGeminiThinker ,
1011 FREEBUFF_MINIMAX_MODEL_ID ,
@@ -24,7 +25,6 @@ export function createBase2(
2425 noAskUser ?: boolean
2526 model ?: SecretAgentDefinition [ 'model' ]
2627 providerOptions ?: SecretAgentDefinition [ 'providerOptions' ]
27- freeCodeReviewerAgentId ?: string
2828 } ,
2929) : Omit < SecretAgentDefinition , 'id' > {
3030 const {
@@ -33,7 +33,6 @@ export function createBase2(
3333 noAskUser = false ,
3434 model : modelOverride ,
3535 providerOptions,
36- freeCodeReviewerAgentId = 'code-reviewer-lite' ,
3736 } = options ?? { }
3837 const isDefault = mode === 'default'
3938 const isFast = mode === 'fast'
@@ -56,6 +55,8 @@ export function createBase2(
5655 // reasoning. Fast MiniMax omits the extra round trip by construction.
5756 const hasFreeGeminiThinker =
5857 isFree && canFreebuffModelSpawnGeminiThinker ( model )
58+ const freeCodeReviewerAgentId =
59+ FREEBUFF_REVIEWER_AGENT_ID_BY_MODEL [ model ] ?? 'code-reviewer-lite'
5960 const defaultProviderOptions = isFree
6061 ? {
6162 data_collection : 'deny' as const ,
0 commit comments