Skip to content

Commit 9f488d1

Browse files
Merge pull request #65 from JigsawStack/feat/object-detection-feature
now takes object instead of object detection
2 parents 1ce4b30 + a4a5457 commit 9f488d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/vision/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

tests/vision.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)