From 125c23e2c0480d8d3b53c13c193e667a9f1dce38 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Mon, 16 Feb 2026 13:16:00 -0600 Subject: [PATCH] fix(ai): update TypeScript ignore comments for deep instantiation issue - Changed `@ts-expect-error` to `@ts-ignore` in the suggestVariants function to address TypeScript's excessively deep instantiation warning related to Zod and AI SDK output. --- packages/server/src/services/ai.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/services/ai.ts b/packages/server/src/services/ai.ts index ccb4a59c0..ccfb31fc1 100644 --- a/packages/server/src/services/ai.ts +++ b/packages/server/src/services/ai.ts @@ -120,7 +120,7 @@ export const suggestVariants = async ({ }); const suggestionsResult = await generateText({ model, - // @ts-expect-error TS2589 - Zod + AI SDK Output.object() causes excessively deep instantiation + // @ts-ignore - Zod + AI SDK Output.object() causes excessively deep instantiation output: Output.object({ schema: suggestionsSchema }), prompt: ` Act as advanced DevOps engineer and analyze the user's request to determine the appropriate suggestions (up to 3 items). @@ -199,7 +199,7 @@ export const suggestVariants = async ({ try { const dockerResult = await generateText({ model, - // @ts-expect-error TS2589 - Zod + AI SDK Output.object() causes excessively deep instantiation + // @ts-ignore - Zod + AI SDK Output.object() causes excessively deep instantiation output: Output.object({ schema: dockerSchema }), prompt: ` Act as advanced DevOps engineer and generate docker compose with environment variables and domain configurations needed to install the following project.