Files
2026-07-13 13:32:05 +08:00

14 lines
287 B
Python

from typing import Optional
from deepeval.models import DeepEvalBaseLLM
def should_use_batch(model: DeepEvalBaseLLM, batch_size: Optional[int] = None):
if batch_size is None:
return False
if not hasattr(model, "batch_generate"):
return False
return True