We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cf1d76 commit 0bce401Copy full SHA for 0bce401
app/api/predictions/[id]/route.js
@@ -11,8 +11,8 @@ replicate.fetch = (url, options) => {
11
return fetch(url, { cache: "no-store", ...options });
12
};
13
14
-export async function GET(request, {params}) {
15
- const { id } = params;
+export async function GET(request, context) {
+ const { id } = await context.params;
16
const prediction = await replicate.predictions.get(id);
17
18
if (prediction?.error) {
0 commit comments