diff options
| author | Adam Weidman <[email protected]> | 2025-08-13 17:57:11 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-13 17:57:11 +0000 |
| commit | b61a63aef4bcce9cb56fe46f10f0dc90b8fd6597 (patch) | |
| tree | 278aa096f82fbad8f0b75cdfefdd108531ccc4a0 /packages/core/src/utils/quotaErrorDetection.ts | |
| parent | 9c7fb870c1a7c80741fafdfc6837d4b92e373b2d (diff) | |
move errorParsing.ts to core (#6159)
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' && |
