attribution / llm_api /exceptions.py
thanhnt-cf's picture
initial commit
7a38b33
raw
history blame contribute delete
247 Bytes
class RefusalError(Exception):
"""Exception raised when the model refuses to respond."""
def __init__(self, message="The model refused to respond to the given input."):
self.message = message
super().__init__(self.message)