Skip to content

Commit 79e535b

Browse files
committed
feat(saved-extensions): update example for creating saved extension to use AI tasks for fashion item categorization
1 parent 71910d6 commit 79e535b

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/resources/saved-extensions.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,19 @@ export class SavedExtensions extends APIResource {
1919
* @example
2020
* ```ts
2121
* const savedExtension = await client.savedExtensions.create({
22-
* config: { name: 'remove-bg' },
23-
* description:
24-
* 'Analyzes vehicle images for type, condition, and quality assessment',
25-
* name: 'Car Quality Analysis',
22+
* config: {
23+
* name: 'ai-tasks',
24+
* tasks: [
25+
* {
26+
* instruction: 'What types of clothing items are visible in this image?',
27+
* type: 'select_tags',
28+
* vocabulary: ['shirt', 'dress', 'pants', 'jacket', 'shoes'],
29+
* max_selections: 3,
30+
* },
31+
* ],
32+
* },
33+
* description: 'Automatically categorizes clothing items in fashion images',
34+
* name: 'Fashion Item Categorization',
2635
* });
2736
* ```
2837
*/

0 commit comments

Comments
 (0)