MCPcopy Create free account
hub / github.com/TanStack/ai / handleGenerate

Function handleGenerate

examples/ts-react-chat/src/routes/generations.image.tsx:81–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79 setNumberOfImages: (v: number) => void
80}) {
81 const handleGenerate = () => {
82 if (!prompt.trim()) return
83 generate({ prompt: prompt.trim(), numberOfImages })
84 }
85
86 return (
87 <div className="space-y-6">

Callers 1

ImageGenerationUIFunction · 0.70

Calls 1

generateFunction · 0.50

Tested by

no test coverage detected