|
|
@@ -6,9 +6,4 @@ export const StreamErrorCode = {
|
|
|
BUDGET_EXCEEDED: 'budget-exceeded',
|
|
|
} as const;
|
|
|
|
|
|
-export type StreamErrorCode =
|
|
|
- | 'PREREQUISITE_FAILED'
|
|
|
- | 'UNSUPPORTED_MODEL'
|
|
|
- | 'CONTEXT_LENGTH_EXCEEDED'
|
|
|
- | 'INTERNAL_ERROR'
|
|
|
- | 'INVALID_RESPONSE_FORMAT'; // JSON解析エラー用に追加
|
|
|
+export type StreamErrorCode = typeof StreamErrorCode[keyof typeof StreamErrorCode];
|