Added input validation to prevent unnecessary API calls toOpenAI when the input is empty or null.
Introduced a boolean flag to allow configuration of the behaviour:
If set to true, an exception is raised when an empty (or blank) input is encountered.
If false, the API call is silently skipped.
This change improves efficiency by streamlining the process and giving flexibility in handling empty input.
Fixes #4156
Added input validation to prevent unnecessary API calls toOpenAI when the input is empty or null. Introduced a boolean flag to allow configuration of the behaviour:
true
, an exception is raised when an empty (or blank) input is encountered.false
, the API call is silently skipped.This change improves efficiency by streamlining the process and giving flexibility in handling empty input.