mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-09-25 03:01:07 +02:00
feat: support custom pi model configs, with registry-resolvable model IDs and distinct model error codes (#450)
This commit is contained in:
@@ -34,6 +34,9 @@ const SAFE_ERROR_MESSAGES: Readonly<Record<ErrorCode, string>> = {
|
||||
[ErrorCode.TARGET_UNREACHABLE]: 'The target could not be reached.',
|
||||
[ErrorCode.AUTH_FAILED]: 'Authentication validation failed.',
|
||||
[ErrorCode.AUTH_LOGIN_FAILED]: 'The configured login could not be completed.',
|
||||
[ErrorCode.MODEL_NOT_FOUND]:
|
||||
'The selected model was not found in the harness catalogue. Check SHANNON_AI_MODEL, or supply the model with --models-config.',
|
||||
[ErrorCode.MODEL_CONFIG_INVALID]: 'The model configuration file could not be used.',
|
||||
};
|
||||
|
||||
const ERROR_CATEGORIES = new Set<PentestErrorType>([
|
||||
|
||||
Reference in New Issue
Block a user