feat: support custom pi model configs, with registry-resolvable model IDs and distinct model error codes (#450)

This commit is contained in:
ezl-keygraph authored and GitHub committed 2026-09-08 14:54:37 +05:30
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 };