Skip to content

Commit

Permalink
update claude prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnrushefsky committed Nov 1, 2024
1 parent 90f28e2 commit 7e9297e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions claude-endpoint-creation-prompt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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<typeof ComfyNodeSchema>;

interface Workflow {
RequestSchema: z.ZodObject<any, any>;
generateWorkflow: (input: any) => Record<string, ComfyNode>;
description?: string;
summary?: string;
}

const RequestSchema = z.object({
prompt: z.string().describe("The positive prompt for image generation"),
width: z
Expand Down

0 comments on commit 7e9297e

Please sign in to comment.