Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/vision/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type ObjectDetectionParams = {
url?: string;
file_store_key?: string;
prompts?: string[];
features?: ("object_detection" | "gui")[];
features?: ("object" | "gui")[];
annotated_image?: boolean;
return_type?: "url" | "base64";
return_masks?: boolean;
Expand Down
6 changes: 3 additions & 3 deletions tests/vision.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ describe("Object Detection API", () => {
test("should work with object_detection feature", async () => {
const result = await client.vision.object_detection({
url: TEST_URLS.image,
features: ["object_detection"],
features: ["object"],
});

expectSuccess(result);
Expand Down Expand Up @@ -506,7 +506,7 @@ describe("Object Detection API", () => {
test("should work with both object_detection and gui features", async () => {
const result = await client.vision.object_detection({
url: TEST_URLS.image,
features: ["object_detection", "gui"],
features: ["object", "gui"],
});

expectSuccess(result);
Expand Down Expand Up @@ -727,7 +727,7 @@ describe("Object Detection API", () => {
const result = await client.vision.object_detection({
url: TEST_URLS.image,
prompts: ["detect all objects", "find text elements"],
features: ["object_detection", "gui"],
features: ["object", "gui"],
annotated_image: true,
return_type: "url",
});
Expand Down