Open Ali-Hussein-dev opened 8 months ago
Version: 2.2.35 Nextjs: 14.1.0 React: 18.2.0 after updating from 2.2.27 I found the onFinish (useCompletion) is called twice which is triggering a bug in my app.
onFinish
const res = useCompletion({ api: "...", onFinish: (prompt, completion) => { console.log("onFinish running...") // runs twice }); return { }; };
No response
@Ali-Hussein-dev Did you find a solution, i am experiencing this on "ai": "^3.2.37",
"ai": "^3.2.37",
Description
Version: 2.2.35 Nextjs: 14.1.0 React: 18.2.0 after updating from 2.2.27 I found the
onFinish
(useCompletion) is called twice which is triggering a bug in my app.Code example
Additional context
No response