From 1d90960afac36aa34b46bbbeca0884e420bbe57c Mon Sep 17 00:00:00 2001 From: chioarub <59725767+chioarub@users.noreply.github.com> Date: Tue, 9 Jun 2026 01:28:17 +0300 Subject: [PATCH] fix(typecheck): add missing xai entry to deprecation retirement date maps (#1509) The LegacyAPIProvider union type includes 'xai' but the three DEPRECATED_MODELS entries were missing the corresponding key, causing TS2741 'Property xai is missing' errors. Refs: #1486 --- src/utils/model/deprecation.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/model/deprecation.ts b/src/utils/model/deprecation.ts index ef7d42348..2deb6f338 100644 --- a/src/utils/model/deprecation.ts +++ b/src/utils/model/deprecation.ts @@ -46,6 +46,7 @@ const DEPRECATED_MODELS: Record = { minimax: null, 'xiaomi-mimo': null, mistral: null, + xai: null, }, }, 'claude-3-7-sonnet': { @@ -63,6 +64,7 @@ const DEPRECATED_MODELS: Record = { minimax: null, 'xiaomi-mimo': null, mistral: null, + xai: null, }, }, 'claude-3-5-haiku': { @@ -80,6 +82,7 @@ const DEPRECATED_MODELS: Record = { minimax: null, 'xiaomi-mimo': null, mistral: null, + xai: null, }, }, }