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

Function handleGenerate

examples/ts-react-chat/src/routes/generations.audio.tsx:129–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127 setSelectedModel: (v: string) => void
128}) {
129 const handleGenerate = () => {
130 if (!prompt.trim()) return
131 generate({ prompt: prompt.trim(), duration })
132 }
133
134 // Track the last object URL we created so we can revoke it when the
135 // result changes, reset is invoked, or the component unmounts.

Callers

nothing calls this directly

Calls 1

generateFunction · 0.50

Tested by

no test coverage detected