From a8fc27e830e4378581f5bd69a3f1040bced2b909 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sun, 2 Mar 2025 01:54:39 -0600 Subject: [PATCH] feat(ai): add configuration files support for AI template generation - Enhance template generation with configFiles feature - Update StepTwo and StepThree components to display and edit configuration files - Modify AI router and schemas to support configuration file mounting - Refine AI service prompt to provide stricter guidelines for config file usage --- .../dashboard/project/ai/step-three.tsx | 16 ++++ .../dashboard/project/ai/step-two.tsx | 82 +++++++++++++++++-- .../project/ai/template-generator.tsx | 8 ++ apps/dokploy/server/api/routers/ai.ts | 17 +++- packages/server/src/db/schema/ai.ts | 8 ++ packages/server/src/services/ai.ts | 34 ++++---- 6 files changed, 137 insertions(+), 28 deletions(-) diff --git a/apps/dokploy/components/dashboard/project/ai/step-three.tsx b/apps/dokploy/components/dashboard/project/ai/step-three.tsx index efd899010..8aa014e30 100644 --- a/apps/dokploy/components/dashboard/project/ai/step-three.tsx +++ b/apps/dokploy/components/dashboard/project/ai/step-three.tsx @@ -85,6 +85,22 @@ export const StepThree = ({ templateInfo }: StepProps) => { )} +
+ Will be mounted as: ../files + {config.filePath} +
++ This template doesn't require any configuration + files. +
++ All necessary configurations are handled through + environment variables. +
+