From d0697549f0499eb6282f59fdfa89a832c61e2bfb Mon Sep 17 00:00:00 2001 From: zhangheng Date: Fri, 27 Mar 2026 16:19:00 +0800 Subject: [PATCH] fix(sam2): fix api --- components/label/api/label/index.ts | 2 +- components/label/components/PaperContainer.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/label/api/label/index.ts b/components/label/api/label/index.ts index b4a3e1b..8762c52 100644 --- a/components/label/api/label/index.ts +++ b/components/label/api/label/index.ts @@ -122,7 +122,7 @@ export const getAuxiliaryAnnotation = (data: any) => { export const getAuxiliaryAnnotation2 = (data: { project_id: string - image_name: string + image: string prompt: { foreground_points?: Array<[number, number]> background_points?: Array<[number, number]> diff --git a/components/label/components/PaperContainer.tsx b/components/label/components/PaperContainer.tsx index 60af9e9..ad87855 100644 --- a/components/label/components/PaperContainer.tsx +++ b/components/label/components/PaperContainer.tsx @@ -514,7 +514,7 @@ const PaperContainer = ( try { const data = await getAuxiliaryAnnotation2({ project_id: projectId, - image_name: activeImage, + image: activeImage, // project_id: "image_test_bk", prompt: { foreground_points: promptPoints,