From 9c9e9885fe59bf2b3b121f7dffede2ab9a345700 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Fri, 22 May 2026 00:06:03 +0900 Subject: [PATCH] fix(model-core): restore OpenAI server_error retryable patterns (regression from package extraction) c85d2f9bc added 'server_error' and 'an error occurred while processing' to the retryable message patterns to fix #3799 - the OpenAI streaming server_error case where runtime fallback never fired. The package layering refactor (2748009ff) moved model-error-classifier into packages/model-core but dropped these two patterns during the move. Restore both patterns at the matching position. packages/model-core tests now pass on the server_error retryable assertion, and runtime fallback once again retries the OpenAI streaming server_error envelope. --- packages/model-core/src/model-error-classifier.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/model-core/src/model-error-classifier.ts b/packages/model-core/src/model-error-classifier.ts index 5128aa662..0786cd9fe 100644 --- a/packages/model-core/src/model-error-classifier.ts +++ b/packages/model-core/src/model-error-classifier.ts @@ -81,6 +81,8 @@ const RETRYABLE_MESSAGE_PATTERNS = [ "请求过于频繁", // "too many requests" "暂时不可用", // "temporarily unavailable" "服务不可用", // "service unavailable" + "server_error", + "an error occurred while processing", ] /**