Download server/utils/agents/aibitat/error.js from leowuming/rag: direct link, hf CLI and curl.
- Browser
- Download file 335 Bytes
-
https://huggingface.co/spaces/leowuming/rag/resolve/main/server/utils/agents/aibitat/error.js
- Command line
-
hf download hf://spaces/leowuming/rag/server/utils/agents/aibitat/error.js
-
curl -L -o error.js https://huggingface.co/spaces/leowuming/rag/resolve/main/server/utils/agents/aibitat/error.js
335 Bytes
| class AIbitatError extends Error {} | |
| class APIError extends AIbitatError { | |
| constructor(message) { | |
| super(message); | |
| } | |
| } | |
| /** | |
| * The error when the AI provider returns an error that should be treated as something | |
| * that should be retried. | |
| */ | |
| class RetryError extends APIError {} | |
| module.exports = { | |
| APIError, | |
| RetryError, | |
| }; | |