modelSupportsToolReference method
Check if a model supports tool_reference blocks (required for tool search).
Uses a negative test: models are assumed to support tool_reference UNLESS they match a pattern in the unsupported list.
Implementation
bool modelSupportsToolReference(String model) {
final normalizedModel = model.toLowerCase();
for (final pattern in _unsupportedModelPatterns) {
if (normalizedModel.contains(pattern.toLowerCase())) {
return false;
}
}
return true;
}