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.
This commit is contained in:
Mauricio Siu
2026-02-16 13:16:00 -06:00
parent 51e005701d
commit 125c23e2c0
+2 -2
View File
@@ -120,7 +120,7 @@ export const suggestVariants = async ({
}); });
const suggestionsResult = await generateText({ const suggestionsResult = await generateText({
model, 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 }), output: Output.object({ schema: suggestionsSchema }),
prompt: ` prompt: `
Act as advanced DevOps engineer and analyze the user's request to determine the appropriate suggestions (up to 3 items). 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 { try {
const dockerResult = await generateText({ const dockerResult = await generateText({
model, 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 }), output: Output.object({ schema: dockerSchema }),
prompt: ` prompt: `
Act as advanced DevOps engineer and generate docker compose with environment variables and domain configurations needed to install the following project. Act as advanced DevOps engineer and generate docker compose with environment variables and domain configurations needed to install the following project.