feat: add comfy-deploy-serverless options

This commit is contained in:
BennyKok
2024-01-04 23:07:50 +08:00
parent 9937252777
commit 6478300056
7 changed files with 731 additions and 16 deletions
+1
View File
@@ -106,6 +106,7 @@ export const machinesType = pgEnum("machine_type", [
"classic",
"runpod-serverless",
"modal-serverless",
"comfy-deploy-serverless",
]);
export const machinesStatus = pgEnum("machine_status", [
+1 -1
View File
@@ -10,7 +10,7 @@ export const addMachineSchema = insertMachineSchema.pick({
export const insertCustomMachineSchema = createInsertSchema(machinesTable, {
name: (schema) => schema.name.default("My Machine"),
type: (schema) => schema.type.default("modal-serverless"),
type: (schema) => schema.type.default("comfy-deploy-serverless"),
});
export const addCustomMachineSchema = insertCustomMachineSchema.pick({
+1
View File
@@ -115,6 +115,7 @@ export const createRun = withServerPromise(
try {
switch (machine.type) {
case "comfy-deploy-serverless":
case "modal-serverless":
const _data = {
input: {