From 7e9297e5b2443a745fb6537586681b059dda34ed Mon Sep 17 00:00:00 2001 From: Shawn Date: Fri, 1 Nov 2024 10:40:29 -0400 Subject: [PATCH] update claude prompt --- claude-endpoint-creation-prompt.txt | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/claude-endpoint-creation-prompt.txt b/claude-endpoint-creation-prompt.txt index d4e60ff..a61276c 100644 --- a/claude-endpoint-creation-prompt.txt +++ b/claude-endpoint-creation-prompt.txt @@ -10,14 +10,28 @@ Here is an example output: ```typescript import { z } from "zod"; -import { ComfyNode, Workflow } from "../../src/types"; -import config from "../../src/config"; +import config from "../config"; let checkpoint: any = config.models.checkpoints.enum.optional(); if (config.warmupCkpt) { checkpoint = checkpoint.default(config.warmupCkpt); } +const ComfyNodeSchema = z.object({ + inputs: z.any(), + class_type: z.string(), + _meta: z.any().optional(), +}); + +type ComfyNode = z.infer; + +interface Workflow { + RequestSchema: z.ZodObject; + generateWorkflow: (input: any) => Record; + description?: string; + summary?: string; +} + const RequestSchema = z.object({ prompt: z.string().describe("The positive prompt for image generation"), width: z