Source code for openai_batch_helper.exceptions

from __future__ import annotations

[docs] class BatchHelperError(Exception): """Base exception for openai_batch_helper."""
[docs] class EmptyBatchError(BatchHelperError): """Raised when attempting to submit an empty JSONL file."""
[docs] class BatchNotCompletedError(BatchHelperError): """Raised when results are requested before the batch is completed."""