mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-22 11:58:46 +00:00
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:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user