@acedatacloud/piece-gpt-image 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Create a GPT Image task and retrieve the **same task ID** through Ace Data Cloud. The Piece has two actions: **Create GPT Image task** and **Get GPT Image task**. Submission returns an ID; the image is ready only after the lookup reports `succeeded`.
4
4
 
5
- **Distribution:** Install `@acedatacloud/piece-gpt-image@0.1.1` as a custom Piece in your Activepieces instance. A public npm package does not automatically enter the shared Activepieces catalog. [中文指南](README.zh-CN.md)
5
+ **Distribution:** Install `@acedatacloud/piece-gpt-image@0.1.3` as a custom Piece in your Activepieces instance. A public npm package does not automatically enter the shared Activepieces catalog. [中文指南](README.zh-CN.md)
6
6
 
7
7
  ## Install and connect
8
8
 
9
- In Activepieces 0.92.2+, open **Platform Admin → Catalogue → Pieces → Install Piece → NPM Registry**. Enter `@acedatacloud/piece-gpt-image` and version `0.1.1`, then install it. Search for **GPT Image by Ace Data Cloud** when adding a flow action. Confirm the Ace Data Cloud logo and both actions.
9
+ In Activepieces 0.92.2+, open **Platform Admin → Catalogue → Pieces → Install Piece → NPM Registry**. Enter `@acedatacloud/piece-gpt-image` and version `0.1.3`, then install it. Search for **GPT Image by Ace Data Cloud** when adding a flow action. Confirm the Ace Data Cloud logo and both actions.
10
10
 
11
11
  1. Register or sign in at [Ace Data Cloud Applications](https://platform.acedata.cloud/console/applications?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen&utm_content=gpt_image_activepieces_readme_api_key). If you have no General application, choose **Initialize General Application**.
12
12
  2. Open a General application or an application with **GPT Image** access. A General key can access the services your account is entitled to use; a service-specific key is limited to that service.
@@ -15,16 +15,18 @@ In Activepieces 0.92.2+, open **Platform Admin → Catalogue → Pieces → Inst
15
15
 
16
16
  ## First flow
17
17
 
18
- 1. Add **Create GPT Image task**. Enter a prompt, choose `gpt-image-2`, quality `low`, size `1024x1024`, and image count `1`.
18
+ 1. Add **Create GPT Image task**. The **Model** and **Quality** dropdowns read the current public image-generation API catalog. Choose an exact model, including any supported compatibility alias. The model, size, and image-count defaults remain `gpt-image-2`, `1024x1024`, and `1`. Quality is optional with no preset: leave it empty to omit the field and let the API use the selected model’s default.
19
19
  2. Run creation **once** and save its `task_id`. The action uses `callback_url` to submit asynchronously and has no HTTP retry. If a timeout or 5xx occurs, inspect [request history](https://platform.acedata.cloud/console/usages?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen&utm_content=gpt_image_activepieces_readme_request_history) before submitting again: the task may already exist.
20
20
  3. Add **Get GPT Image task**. Map its **Task ID** from the creation output. Query this same ID until `status=succeeded` or `failed`. Pending media is never returned as final output.
21
21
  4. Open a URL from `media_urls` only after `success=true`. The lookup can alternatively use a trace ID if the original request supplied a custom trace ID and its task ID was lost. This creation action does not set a custom trace ID.
22
22
 
23
23
  The [credential-free quickstart flow](https://raw.githubusercontent.com/AceDataCloud/GPTImageActivepieces/main/examples/gpt-image-quickstart.json) imports with both connections empty and the task-ID mapping intact. Add your own connection before running it. Its creation action has automatic retries disabled.
24
24
 
25
- Image count is 1–10 and each successful image can incur a charge. `size` must use `WIDTHxHEIGHT`; the GPT Image 2 public guide gives current custom-size limits. A task lookup does not create or bill another image.
25
+ The validation snapshot contains 24 model IDs and eight quality values; the dropdowns read the current catalog when refreshed. DALL-E 2 quality choices are limited to `standard`; DALL-E 3 to `standard` or `hd`, with image count `1`. An explicit unsupported DALL-E quality is rejected before submission. Other models have their own limits; consult the current API descriptions. Image count is 1–10 and each successful image can incur a charge. `size` accepts `auto` or `WIDTHxHEIGHT`. A task lookup does not create or bill another image.
26
26
 
27
- An isolated Activepieces CE 0.92.2 instance accepted the build archive and ran **Get GPT Image task** against an existing completed task. The flow returned `succeeded` and one final image URL. The creation action has not been used to submit a new paid image in this validation.
27
+ Catalog lookup is anonymous and sends no connection, prompt or API key. If metadata is unavailable, the dropdown shows an explicit error instead of a partial fallback list; refresh it to retry. Existing saved flows continue using their stored model IDs and explicit quality values without a catalog lookup during execution; an unsupported explicit DALL-E quality must be corrected or cleared. The quickstart leaves quality unset so changing its model does not carry a GPT-specific quality value. This Piece implements generation and task lookup; it does not yet expose an image-editing action.
28
+
29
+ Earlier validation in an isolated Activepieces CE 0.92.2 instance accepted the build archive and ran **Get GPT Image task** against an existing completed task. The flow returned `succeeded` and one final image URL. The creation action has not been used to submit a new paid image in this validation.
28
30
 
29
31
  ## Troubleshoot
30
32
 
@@ -39,7 +41,7 @@ An isolated Activepieces CE 0.92.2 instance accepted the build archive and ran *
39
41
 
40
42
  The Piece sends chosen inputs and the API key only to `https://api.acedata.cloud`. It returns final media URLs and removes internal routing fields from task results. [Source](https://github.com/AceDataCloud/GPTImageActivepieces) · [Support](https://github.com/AceDataCloud/GPTImageActivepieces/issues) · dev@acedata.cloud.
41
43
 
42
- API requests verify HTTPS certificates and stay on `api.acedata.cloud`. Transport failures and HTTP errors are not retried automatically; inspect request history before resubmitting a creation. HTTPS proxy configuration is not supported by this transport.
44
+ Generation and task requests verify HTTPS certificates and stay on `api.acedata.cloud`. Public catalog reads use the fixed `platform.acedata.cloud` API schema endpoint without authentication, verify certificates, and do not follow redirects. Transport failures and HTTP errors are not retried automatically; inspect request history before resubmitting a creation. The Piece does not provide its own proxy setting.
43
45
 
44
46
  ## Visual setup references
45
47
 
package/README.zh-CN.md CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  通过 Ace Data Cloud 创建 GPT Image 任务,并按**同一个任务 ID**查询结果。Piece 提供 **Create GPT Image task** 和 **Get GPT Image task** 两个动作。提交返回 ID 并不代表图片已完成;查询到 `succeeded` 后才可使用成品。[English](README.md)
4
4
 
5
- **分发方式:**在 Activepieces 实例中将 `@acedatacloud/piece-gpt-image@0.1.1` 作为自定义 Piece 安装。公开 npm 包不会自动进入 Activepieces 共享目录。
5
+ **分发方式:**在 Activepieces 实例中将 `@acedatacloud/piece-gpt-image@0.1.3` 作为自定义 Piece 安装。公开 npm 包不会自动进入 Activepieces 共享目录。
6
6
 
7
7
  ## 安装与连接
8
8
 
9
- Activepieces 0.92.2+ 中进入 **Platform Admin → Catalogue → Pieces → Install Piece → NPM Registry**,填写 `@acedatacloud/piece-gpt-image` 和版本 `0.1.1`。在流程中搜索 **GPT Image by Ace Data Cloud**,核对 Ace Data Cloud Logo 和两个动作。
9
+ Activepieces 0.92.2+ 中进入 **Platform Admin → Catalogue → Pieces → Install Piece → NPM Registry**,填写 `@acedatacloud/piece-gpt-image` 和版本 `0.1.3`。在流程中搜索 **GPT Image by Ace Data Cloud**,核对 Ace Data Cloud Logo 和两个动作。
10
10
 
11
11
  1. 在 [Ace Data Cloud Applications](https://platform.acedata.cloud/console/applications?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen&utm_content=gpt_image_activepieces_readme_api_key) 注册或登录。若没有通用应用,点击 **Initialize General Application**。
12
12
  2. 打开通用应用或具备 **GPT Image** 权限的应用。通用 Key 可访问账号已获授权的服务;专用 Key 仅限对应服务。
@@ -15,16 +15,18 @@ Activepieces 0.92.2+ 中进入 **Platform Admin → Catalogue → Pieces → Ins
15
15
 
16
16
  ## 首次流程
17
17
 
18
- 1. 添加 **Create GPT Image task**,填写提示词,选择 `gpt-image-2`、`low`、`1024x1024` 和图片数量 `1`。
18
+ 1. 添加 **Create GPT Image task**。**Model** 与 **Quality** 下拉框读取当前公开图片生成接口目录,选择精确型号及其支持的参数,目录包含兼容别名。模型、尺寸和数量默认值仍为 `gpt-image-2`、`1024x1024` 和 `1`。质量为可选项且不预填;留空时请求不发送 quality 字段,由 API 使用所选模型的默认值。
19
19
  2. **只运行一次**创建动作,保存输出的 `task_id`。动作使用 `callback_url` 异步提交,不设置 HTTP 重试。若超时或返回 5xx,先查[请求历史](https://platform.acedata.cloud/console/usages?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen&utm_content=gpt_image_activepieces_readme_request_history)再考虑重提,任务可能已被接收。
20
20
  3. 添加 **Get GPT Image task**,把 **Task ID** 映射为创建动作的输出。只查询同一个 ID,直至 `status=succeeded` 或 `failed`。pending 时不会把预览当作最终媒体。
21
21
  4. 仅当 `success=true` 时打开 `media_urls`。若原始请求自带自定义 Trace ID 且丢失任务 ID,也可按 Trace ID 查询;本 Piece 的创建动作不设置自定义 Trace ID。
22
22
 
23
23
  [无密钥首跑流程](https://raw.githubusercontent.com/AceDataCloud/GPTImageActivepieces/main/examples/gpt-image-quickstart.json) 导入后两个连接均为空,任务 ID 映射保留。运行前请配置自己的连接;创建动作已关闭自动重试。
24
24
 
25
- 图片数量为 1–10;每张成功图片可能单独计费。`size` 使用 `WIDTHxHEIGHT`,自定义尺寸限制以 GPT Image 2 公开指南为准。查询任务不会再次生成或计费。
25
+ 本次校验的目录包含 24 个型号和 8 个质量选项;下拉框刷新时读取当前目录。DALL-E 2 的质量选项仅含 `standard`;DALL-E 3 仅含 `standard` 或 `hd`,图片数量固定为 `1`。明确填写了不支持的 DALL-E 质量时,会在提交前报错。其它型号的参数限制以当前接口说明为准。图片数量为 1–10,每张成功图片可能单独计费;`size` 支持 `auto` 或 `WIDTHxHEIGHT`。查询任务不会再次生成或计费。
26
26
 
27
- 隔离的 Activepieces CE 0.92.2 实例已接受构建归档,并通过 **Get GPT Image task** 查询一条既有完成任务;流程返回 `succeeded` 和 1 个最终图片 URL。本轮未通过创建动作提交新的付费图片任务。
27
+ 目录读取不携带连接、提示词或 API Key。元数据不可用时,下拉框明确显示错误,不返回缩水的备用列表;刷新字段可重试。已有保存流程继续使用其保存的模型 ID 和明确指定的质量,执行时无需查询目录;不合法的 DALL-E 质量需改为支持值或清空。首跑模板不预填质量,避免切换型号时带入 GPT 专用的质量值。本 Piece 实现图片生成与任务查询,尚未提供图片编辑动作。
28
+
29
+ 此前隔离的 Activepieces CE 0.92.2 验证已接受构建归档,并通过 **Get GPT Image task** 查询一条既有完成任务;流程返回 `succeeded` 和 1 个最终图片 URL。本轮未通过创建动作提交新的付费图片任务。
28
30
 
29
31
  ## 排障
30
32
 
@@ -39,7 +41,7 @@ Activepieces 0.92.2+ 中进入 **Platform Admin → Catalogue → Pieces → Ins
39
41
 
40
42
  Piece 只向 `https://api.acedata.cloud` 发送所选输入和 API Key,仅在终态返回媒体 URL,并过滤内部路由字段。[源码](https://github.com/AceDataCloud/GPTImageActivepieces) · [支持](https://github.com/AceDataCloud/GPTImageActivepieces/issues) · dev@acedata.cloud。
41
43
 
42
- API 请求验证 HTTPS 证书,且仅访问 `api.acedata.cloud`。网络失败与 HTTP 错误不自动重试;重新创建前先查请求历史。此传输方式不支持 HTTPS 代理配置。
44
+ 生成及任务请求验证 HTTPS 证书,且仅访问 `api.acedata.cloud`。公开目录从固定的 `platform.acedata.cloud` 接口 schema 地址读取,不携带认证信息,验证 HTTPS 证书且不跟随重定向。网络失败与 HTTP 错误不自动重试;重新创建前先查请求历史。Piece 不提供独立代理设置。
43
45
 
44
46
  ## 图文配置参考
45
47
 
@@ -1,7 +1,7 @@
1
1
  export declare const generateImage: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
2
  prompt: import("@activepieces/pieces-framework").LongTextProperty<true>;
3
- model: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
4
- quality: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
3
+ model: import("@activepieces/pieces-framework").DropdownProperty<string, true, undefined>;
4
+ quality: import("@activepieces/pieces-framework").DropdownProperty<string, false, undefined>;
5
5
  size: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
6
  count: import("@activepieces/pieces-framework").NumberProperty<true>;
7
7
  }>;
@@ -4,6 +4,7 @@ exports.generateImage = void 0;
4
4
  const pieces_framework_1 = require("@activepieces/pieces-framework");
5
5
  const auth_1 = require("../auth");
6
6
  const client_1 = require("../common/client");
7
+ const catalog_1 = require("../common/catalog");
7
8
  exports.generateImage = (0, pieces_framework_1.createAction)({
8
9
  name: 'generate_image',
9
10
  displayName: 'Create GPT Image task',
@@ -15,34 +16,32 @@ exports.generateImage = (0, pieces_framework_1.createAction)({
15
16
  description: 'Describe the image. Use Get GPT Image task with the returned task ID to check the result.',
16
17
  required: true,
17
18
  }),
18
- model: pieces_framework_1.Property.StaticDropdown({
19
+ model: pieces_framework_1.Property.Dropdown({
20
+ auth: undefined,
19
21
  displayName: 'Model',
22
+ description: 'Current image-generation models from Ace Data Cloud, including supported compatibility aliases.',
20
23
  required: true,
21
24
  defaultValue: 'gpt-image-2',
22
- options: { options: [{ label: 'GPT Image 2', value: 'gpt-image-2' }] },
25
+ refreshers: [],
26
+ options: async () => (0, catalog_1.imageCatalogOptions)('model'),
23
27
  }),
24
- quality: pieces_framework_1.Property.StaticDropdown({
28
+ quality: pieces_framework_1.Property.Dropdown({
29
+ auth: undefined,
25
30
  displayName: 'Quality',
26
- required: true,
27
- defaultValue: 'low',
28
- options: {
29
- options: [
30
- { label: 'Low', value: 'low' },
31
- { label: 'Medium', value: 'medium' },
32
- { label: 'High', value: 'high' },
33
- { label: 'Auto', value: 'auto' },
34
- ],
35
- },
31
+ description: 'Optional: leave empty to let the API use this model’s default. DALL-E 2 accepts standard; DALL-E 3 accepts standard or hd.',
32
+ required: false,
33
+ refreshers: ['model'],
34
+ options: async ({ model }) => (0, catalog_1.imageCatalogOptions)('quality', model),
36
35
  }),
37
36
  size: pieces_framework_1.Property.ShortText({
38
37
  displayName: 'Size',
39
- description: 'WIDTHxHEIGHT, such as 1024x1024. Read current model limits before using a custom size.',
38
+ description: 'WIDTHxHEIGHT, such as 1024x1024, or auto. Read current model limits before using a custom size.',
40
39
  required: true,
41
40
  defaultValue: '1024x1024',
42
41
  }),
43
42
  count: pieces_framework_1.Property.Number({
44
43
  displayName: 'Image count',
45
- description: 'Each generated image is billed. Choose a whole number from 1 to 10.',
44
+ description: 'Each generated image is billed. Choose a whole number from 1 to 10; DALL-E 3 requires 1.',
46
45
  required: true,
47
46
  defaultValue: 1,
48
47
  }),
@@ -52,8 +51,15 @@ exports.generateImage = (0, pieces_framework_1.createAction)({
52
51
  if (!prompt.trim()) {
53
52
  throw new Error('An image description is required.');
54
53
  }
55
- if (!/^\d+x\d+$/.test(size)) {
56
- throw new Error('Size must use WIDTHxHEIGHT, such as 1024x1024.');
54
+ if (typeof model !== 'string' || !model.trim()) {
55
+ throw new Error('Choose a model explicitly.');
56
+ }
57
+ const explicitQuality = quality?.trim();
58
+ if (explicitQuality && !(0, catalog_1.supportsExplicitQuality)(model, explicitQuality)) {
59
+ throw new Error('This quality is not supported by the selected model. Choose a listed quality or leave it empty for the model default.');
60
+ }
61
+ if (!/^(auto|\d+x\d+)$/.test(size)) {
62
+ throw new Error('Size must use auto or WIDTHxHEIGHT, such as 1024x1024.');
57
63
  }
58
64
  if (!Number.isInteger(count) || count < 1 || count > 10) {
59
65
  throw new Error('Image count must be a whole number from 1 to 10.');
@@ -64,7 +70,7 @@ exports.generateImage = (0, pieces_framework_1.createAction)({
64
70
  body: {
65
71
  model,
66
72
  prompt,
67
- quality,
73
+ ...(explicitQuality ? { quality: explicitQuality } : {}),
68
74
  size,
69
75
  n: count,
70
76
  callback_url: 'https://api.acedata.cloud/health',
@@ -4,6 +4,6 @@ exports.gptImageAuth = void 0;
4
4
  const pieces_framework_1 = require("@activepieces/pieces-framework");
5
5
  exports.gptImageAuth = pieces_framework_1.PieceAuth.SecretText({
6
6
  displayName: 'Ace Data Cloud API key',
7
- description: 'Register or sign in at [Applications](https://platform.acedata.cloud/console/applications?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen&utm_content=gpt_image_activepieces_connection_api_key). If needed choose Initialize General Application, then copy the key or use Manage Keys → Create for a dedicated Activepieces key. Check service permissions, balance, current pricing and Allowed APIs in the guide. Paste only the API key without Bearer; a platform management token is not a generation key.',
7
+ description: 'Register or sign in at [Applications](https://platform.acedata.cloud/console/applications?utm_source=activepieces&utm_medium=referral&utm_campaign=evergreen&utm_content=gpt_image_activepieces_connection_api_key). If needed choose Initialize General Application, then copy the key or use Manage Keys → Create for a dedicated Activepieces key. Check service permissions, balance, current pricing and Allowed APIs in the guide. Paste only the API key without Bearer; a platform management token is not a generation key.',
8
8
  required: true,
9
9
  });
@@ -0,0 +1,3 @@
1
+ import { DropdownState } from '@activepieces/pieces-framework';
2
+ export declare function supportsExplicitQuality(model: unknown, quality: string): boolean;
3
+ export declare function imageCatalogOptions(field: 'model' | 'quality', model?: unknown): Promise<DropdownState<string>>;
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.supportsExplicitQuality = supportsExplicitQuality;
37
+ exports.imageCatalogOptions = imageCatalogOptions;
38
+ const https = __importStar(require("node:https"));
39
+ const CATALOG_URL = 'https://platform.acedata.cloud/api/v1/apis/8f01fe72-8a3e-4872-8d8d-330cde179b3a/';
40
+ const GENERATION_PATH = '/openai/images/generations';
41
+ // Public metadata uses a separate fixed destination and never receives the
42
+ // action's connection, prompt or API key. HTTPS redirects are not followed.
43
+ function readCatalog() {
44
+ return new Promise((resolve, reject) => {
45
+ const request = https.get(CATALOG_URL, {
46
+ rejectUnauthorized: true,
47
+ headers: { Accept: 'application/json' },
48
+ }, (response) => {
49
+ let body = '';
50
+ response.setEncoding('utf8');
51
+ response.on('data', (chunk) => { body += chunk; });
52
+ response.on('error', () => reject(new Error('Catalog response interrupted.')));
53
+ response.on('end', () => {
54
+ if (response.statusCode !== 200) {
55
+ reject(new Error('Catalog request failed.'));
56
+ return;
57
+ }
58
+ try {
59
+ resolve(JSON.parse(body));
60
+ }
61
+ catch {
62
+ reject(new Error('Invalid catalog response.'));
63
+ }
64
+ });
65
+ });
66
+ request.setTimeout(15_000, () => request.destroy(new Error('Catalog timeout')));
67
+ request.on('error', () => reject(new Error('Catalog network or TLS error.')));
68
+ });
69
+ }
70
+ // The public image API documents these legacy-model quality constraints.
71
+ // Unknown models keep the service enum rather than inheriting another model's rules.
72
+ function supportsExplicitQuality(model, quality) {
73
+ if (model === 'dall-e-2')
74
+ return quality === 'standard';
75
+ if (model === 'dall-e-3')
76
+ return quality === 'standard' || quality === 'hd';
77
+ return true;
78
+ }
79
+ async function imageCatalogOptions(field, model) {
80
+ try {
81
+ const catalog = await readCatalog();
82
+ const values = catalog.definition?.paths?.[GENERATION_PATH]?.post?.requestBody
83
+ ?.content?.['application/json']?.schema?.properties?.[field]?.enum;
84
+ if (!Array.isArray(values) || values.length === 0 ||
85
+ !values.every((value) => typeof value === 'string' && value.trim().length > 0)) {
86
+ throw new Error('Missing catalog enum.');
87
+ }
88
+ return {
89
+ ...(field === 'quality' ? { placeholder: 'Leave empty to use the selected model’s default.' } : {}),
90
+ options: [...new Set(values)]
91
+ .filter((value) => field !== 'quality' || supportsExplicitQuality(model, value))
92
+ .map((value) => ({ label: value, value })),
93
+ };
94
+ }
95
+ catch {
96
+ return {
97
+ disabled: true,
98
+ placeholder: `Current ${field} catalog unavailable. Refresh the field and try again.`,
99
+ options: [],
100
+ };
101
+ }
102
+ }
@@ -31,14 +31,13 @@
31
31
  "auth": "",
32
32
  "prompt": "A small red kite above a green meadow, watercolor illustration.",
33
33
  "model": "gpt-image-2",
34
- "quality": "low",
35
34
  "size": "1024x1024",
36
35
  "count": 1
37
36
  },
38
37
  "pieceName": "@acedatacloud/piece-gpt-image",
39
38
  "actionName": "generate_image",
40
39
  "sampleData": {},
41
- "pieceVersion": "0.1.1",
40
+ "pieceVersion": "0.1.3",
42
41
  "propertySettings": {
43
42
  "prompt": {
44
43
  "type": "MANUAL"
@@ -46,9 +45,6 @@
46
45
  "model": {
47
46
  "type": "MANUAL"
48
47
  },
49
- "quality": {
50
- "type": "MANUAL"
51
- },
52
48
  "size": {
53
49
  "type": "MANUAL"
54
50
  },
@@ -79,7 +75,7 @@
79
75
  "pieceName": "@acedatacloud/piece-gpt-image",
80
76
  "actionName": "get_task",
81
77
  "sampleData": {},
82
- "pieceVersion": "0.1.1",
78
+ "pieceVersion": "0.1.3",
83
79
  "propertySettings": {
84
80
  "taskId": {
85
81
  "type": "MANUAL"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acedatacloud/piece-gpt-image",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "GPT Image generation and task lookup through Ace Data Cloud for Activepieces",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/src/index.js",