()
| 64 | setFiles: (files: File[]) => void |
| 65 | }) { |
| 66 | const handleReplicateFlowchart = async () => { |
| 67 | setInput("Replicate this flowchart.") |
| 68 | |
| 69 | try { |
| 70 | const response = await fetch("/example.png") |
| 71 | const blob = await response.blob() |
| 72 | const file = new File([blob], "example.png", { type: "image/png" }) |
| 73 | setFiles([file]) |
| 74 | } catch (error) { |
| 75 | console.error("Error loading example image:", error) |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | const handleReplicateArchitecture = async () => { |
| 80 | setInput("Replicate this in aws style") |
nothing calls this directly
no outgoing calls
no test coverage detected