warnDroppedConfigField function
Warns (once per model and field) that a config field isn't supported by the model and was ignored.
Implementation
void warnDroppedConfigField(String model, String field) {
if (!_warnedDroppedConfigFields.add('$model:$field')) return;
if (field == 'thinkingConfig.thinkingBudget: 0') {
logger.warning(
"thinkingConfig.thinkingBudget: 0 (thinking off) was ignored: '$model' "
"can't turn thinking off (the Interactions API has no thinking "
'budget). For the least thinking, set thinkingConfig.thinkingLevel to '
"the model's lowest level ('LOW', or 'MINIMAL' where the model "
'supports it).',
);
return;
}
logger.warning(
"$field is not supported by '$model' and was ignored."
'${_droppedConfigFieldHints[field] ?? ''}',
);
}