mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: add missing functions
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import { Textarea } from "@/components/ui/textarea";
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
@@ -12,8 +11,9 @@ import {
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from "@/components/ui/select";
|
||||
import { useState } from "react";
|
||||
import { Textarea } from "@/components/ui/textarea";
|
||||
import { api } from "@/utils/api";
|
||||
import { useState } from "react";
|
||||
|
||||
const examples = [
|
||||
"Make a personal blog",
|
||||
|
||||
@@ -136,10 +136,7 @@ export const StepTwo = ({
|
||||
|
||||
setSelectedVariant({
|
||||
...selectedVariant,
|
||||
envVariables: [
|
||||
...selectedVariant.envVariables,
|
||||
{ name: "", value: "" },
|
||||
],
|
||||
envVariables: [...selectedVariant.envVariables, { name: "", value: "" }],
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ export const aiRouter = createTRPCRouter({
|
||||
aiId: z.string(),
|
||||
input: z.string(),
|
||||
serverId: z.string().optional(),
|
||||
})
|
||||
}),
|
||||
)
|
||||
.mutation(async ({ ctx, input }) => {
|
||||
return await suggestVariants({
|
||||
|
||||
@@ -69,7 +69,7 @@ export const deploySuggestionSchema = z.object({
|
||||
host: z.string().min(1),
|
||||
port: z.number().min(1),
|
||||
serviceName: z.string().min(1),
|
||||
})
|
||||
}),
|
||||
)
|
||||
.optional(),
|
||||
});
|
||||
|
||||
@@ -121,14 +121,14 @@ export const suggestVariants = async ({
|
||||
z.object({
|
||||
name: z.string(),
|
||||
value: z.string(),
|
||||
})
|
||||
}),
|
||||
),
|
||||
domains: z.array(
|
||||
z.object({
|
||||
host: z.string(),
|
||||
port: z.number(),
|
||||
serviceName: z.string(),
|
||||
})
|
||||
}),
|
||||
),
|
||||
}),
|
||||
prompt: `
|
||||
|
||||
Reference in New Issue
Block a user