gpteam 0.1.26 → 0.1.27
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 +1 -1
- package/lib/config.js +1 -1
- package/lib/help.js +2 -2
- package/lib/image-mcp/image.js +1 -1
- package/lib/image-mcp/server.js +4 -4
- package/lib/nodes.js +0 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ The Image MCP exposes an async-first local job flow plus a legacy compatibility
|
|
|
21
21
|
- `create_image_job`: recommended for normal use. It starts a local background image job and returns `job_id` quickly, which avoids losing the whole generation when a VPN, proxy, or client has a 60-second idle timeout.
|
|
22
22
|
- `get_image_job_status`: checks whether the local job is queued, running, succeeded, failed, canceled, or expired.
|
|
23
23
|
- `cancel_image_job`: cancels a queued/running local job.
|
|
24
|
-
- `download_image_result`: returns the completed file metadata and
|
|
24
|
+
- `download_image_result`: returns the completed file metadata and image content. Use `metadata_only`, `include_image`, and `include_revised_prompt` to control large result payloads.
|
|
25
25
|
- `get_capabilities`: returns supported sizes, formats, quality values, async support, cancellation semantics, queue limits, and image-to-image support.
|
|
26
26
|
- `generate_image`: legacy compatibility alias. It now creates the same async job and returns `job_id` immediately instead of blocking until the image is complete.
|
|
27
27
|
|
package/lib/config.js
CHANGED
|
@@ -54,7 +54,7 @@ export function writeCodexConfig(settings) {
|
|
|
54
54
|
`base_url = ${tomlString(settings.node.baseUrl)}`,
|
|
55
55
|
'wire_api = "responses"',
|
|
56
56
|
'requires_openai_auth = true',
|
|
57
|
-
'supports_websockets =
|
|
57
|
+
'supports_websockets = true'
|
|
58
58
|
];
|
|
59
59
|
const mcpCommand = codexImageMCPCommand();
|
|
60
60
|
const managedImageMCP = [
|
package/lib/help.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const PACKAGE_NAME = 'gpteam';
|
|
2
|
-
export const PACKAGE_VERSION = '0.1.
|
|
2
|
+
export const PACKAGE_VERSION = '0.1.27';
|
|
3
3
|
|
|
4
4
|
export function getHelpText() {
|
|
5
5
|
return [
|
|
@@ -15,7 +15,7 @@ export function getHelpText() {
|
|
|
15
15
|
' --model <id> 预选模型,例如 gpt-5.5',
|
|
16
16
|
' --context <tokens> 预设可配置上下文长度',
|
|
17
17
|
' --effort <level> 按模型支持项预选,常见为 none / low / medium / high / xhigh',
|
|
18
|
-
' --node <id> jp-direct / jp-split / hk-split
|
|
18
|
+
' --node <id> jp-direct / jp-split / hk-split',
|
|
19
19
|
' --rounds <n> 每个入口测速轮数,默认 3',
|
|
20
20
|
' --max-output-tokens <n> 测速输出上限,默认 648',
|
|
21
21
|
' --install-client 客户端命令缺失时直接安装,不再二次确认',
|
package/lib/image-mcp/image.js
CHANGED
|
@@ -651,7 +651,7 @@ function normalizeIdempotencyKey(value) {
|
|
|
651
651
|
}
|
|
652
652
|
|
|
653
653
|
function shapeDownloadResult(result, input = {}) {
|
|
654
|
-
const includeImage = input.
|
|
654
|
+
const includeImage = !input.metadata_only && input.include_image !== false;
|
|
655
655
|
const includeRevisedPrompt = input.include_revised_prompt !== false;
|
|
656
656
|
const output = {
|
|
657
657
|
...result,
|
package/lib/image-mcp/server.js
CHANGED
|
@@ -238,13 +238,13 @@ function downloadSchema() {
|
|
|
238
238
|
const schema = jobIDSchema();
|
|
239
239
|
schema.properties.metadata_only = {
|
|
240
240
|
type: 'boolean',
|
|
241
|
-
description: '
|
|
242
|
-
default:
|
|
241
|
+
description: 'Return only metadata without MCP image content.',
|
|
242
|
+
default: false
|
|
243
243
|
};
|
|
244
244
|
schema.properties.include_image = {
|
|
245
245
|
type: 'boolean',
|
|
246
|
-
description: '
|
|
247
|
-
default:
|
|
246
|
+
description: 'Include image content when the job succeeded.',
|
|
247
|
+
default: true
|
|
248
248
|
};
|
|
249
249
|
schema.properties.include_revised_prompt = {
|
|
250
250
|
type: 'boolean',
|
package/lib/nodes.js
CHANGED
|
@@ -22,14 +22,6 @@ export const INGRESS_NODES = [
|
|
|
22
22
|
split: true,
|
|
23
23
|
baseUrl: 'https://api-hk.gpteamservices.com/v1',
|
|
24
24
|
healthUrl: 'https://api-hk.gpteamservices.com/api/health'
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
id: 'us-split',
|
|
28
|
-
label: '美国入口',
|
|
29
|
-
region: 'US',
|
|
30
|
-
split: true,
|
|
31
|
-
baseUrl: 'https://api-us.gpteamservices.com/v1',
|
|
32
|
-
healthUrl: 'https://api-us.gpteamservices.com/api/health'
|
|
33
25
|
}
|
|
34
26
|
];
|
|
35
27
|
|