shouldDisableTopP static method
Check if top_p should be disabled for reasoning models
Implementation
static bool shouldDisableTopP(String model) {
// OpenAI reasoning models don't support top_p
if (isOpenAIReasoningModel(model)) {
return true;
}
// Other known reasoning models that might not support top_p
return false;
}