shouldDisableTemperature static method

bool shouldDisableTemperature(
  1. String model
)

Check if temperature should be disabled for reasoning models

Implementation

static bool shouldDisableTemperature(String model) {
  // OpenAI reasoning models don't support temperature
  if (isOpenAIReasoningModel(model)) {
    return true;
  }

  // Other known reasoning models that might not support temperature
  // This can be expanded based on provider documentation
  return false;
}