Yuki Takei 1 год назад
Родитель
Сommit
9ba679c0c8
1 измененных файлов с 1 добавлено и 6 удалено
  1. 1 6
      apps/app/src/features/openai/interfaces/message-error.ts

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