diff options
Diffstat (limited to 'packages/core/src/utils/quotaErrorDetection.ts')
| -rw-r--r-- | packages/core/src/utils/quotaErrorDetection.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/core/src/utils/quotaErrorDetection.ts b/packages/core/src/utils/quotaErrorDetection.ts index 6fe9b312..1377b4fa 100644 --- a/packages/core/src/utils/quotaErrorDetection.ts +++ b/packages/core/src/utils/quotaErrorDetection.ts @@ -4,6 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +import { StructuredError } from '../core/turn.js'; + export interface ApiError { error: { code: number; @@ -13,11 +15,6 @@ export interface ApiError { }; } -interface StructuredError { - message: string; - status?: number; -} - export function isApiError(error: unknown): error is ApiError { return ( typeof error === 'object' && |
