File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export type ObjectDetectionParams = {
3232 url ?: string ;
3333 file_store_key ?: string ;
3434 prompts ?: string [ ] ;
35- features ?: ( "object_detection " | "gui" ) [ ] ;
35+ features ?: ( "object " | "gui" ) [ ] ;
3636 annotated_image ?: boolean ;
3737 return_type ?: "url" | "base64" ;
3838 return_masks ?: boolean ;
Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ describe("Object Detection API", () => {
466466 test ( "should work with object_detection feature" , async ( ) => {
467467 const result = await client . vision . object_detection ( {
468468 url : TEST_URLS . image ,
469- features : [ "object_detection " ] ,
469+ features : [ "object " ] ,
470470 } ) ;
471471
472472 expectSuccess ( result ) ;
@@ -506,7 +506,7 @@ describe("Object Detection API", () => {
506506 test ( "should work with both object_detection and gui features" , async ( ) => {
507507 const result = await client . vision . object_detection ( {
508508 url : TEST_URLS . image ,
509- features : [ "object_detection " , "gui" ] ,
509+ features : [ "object " , "gui" ] ,
510510 } ) ;
511511
512512 expectSuccess ( result ) ;
@@ -727,7 +727,7 @@ describe("Object Detection API", () => {
727727 const result = await client . vision . object_detection ( {
728728 url : TEST_URLS . image ,
729729 prompts : [ "detect all objects" , "find text elements" ] ,
730- features : [ "object_detection " , "gui" ] ,
730+ features : [ "object " , "gui" ] ,
731731 annotated_image : true ,
732732 return_type : "url" ,
733733 } ) ;
You can’t perform that action at this time.
0 commit comments