Spaces:
Sleeping
Sleeping
Download llm_api/exceptions.py from creativeforce/attribution: direct link, hf CLI and curl.
- Browser
- Download file 247 Bytes
-
https://huggingface.co/spaces/creativeforce/attribution/resolve/main/llm_api/exceptions.py
- Command line
-
hf download hf://spaces/creativeforce/attribution/llm_api/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/creativeforce/attribution/resolve/main/llm_api/exceptions.py
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) | |