Prechádzať zdrojové kódy

revert message-error.ts

Yuki Takei 1 rok pred
rodič
commit
9ba679c0c8

+ 1 - 6
apps/app/src/features/openai/interfaces/message-error.ts

@@ -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];