mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-10-13 19:30:46 +02:00
feat: support custom pi model configs, with registry-resolvable model IDs and distinct model error codes (#450)
This commit is contained in:
1 parent
4b8131fdd5
commit
d41d52f17d
20 files changed
+441
-124
No files matched your search
@@ -332,6 +332,14 @@ function classifyByErrorCode(code: ErrorCode, retryableFromError: boolean): { ty
|
||||
case ErrorCode.AUTH_FAILED:
|
||||
return { type: 'AuthenticationError', retryable: false };
|
||||
|
||||
// Not AuthenticationError: the credential is not in question, and the pipeline
|
||||
// appends an "is your API key valid" hint to anything classified that way.
|
||||
case ErrorCode.MODEL_NOT_FOUND:
|
||||
return { type: 'ModelNotFoundError', retryable: false };
|
||||
|
||||
case ErrorCode.MODEL_CONFIG_INVALID:
|
||||
return { type: 'ModelConfigError', retryable: false };
|
||||
|
||||
case ErrorCode.AUTH_LOGIN_FAILED:
|
||||
return { type: 'AuthLoginFailedError', retryable: false };
|
||||
|
||||
|
||||
Reference in new issue
Block a user