feat: add comfy-deploy-serverless options
This commit is contained in:
@@ -106,6 +106,7 @@ export const machinesType = pgEnum("machine_type", [
|
||||
"classic",
|
||||
"runpod-serverless",
|
||||
"modal-serverless",
|
||||
"comfy-deploy-serverless",
|
||||
]);
|
||||
|
||||
export const machinesStatus = pgEnum("machine_status", [
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -115,6 +115,7 @@ export const createRun = withServerPromise(
|
||||
|
||||
try {
|
||||
switch (machine.type) {
|
||||
case "comfy-deploy-serverless":
|
||||
case "modal-serverless":
|
||||
const _data = {
|
||||
input: {
|
||||
|
||||
Reference in New Issue
Block a user