fix: reduce model enum from 35 to 8 for Figma compatibility

This commit is contained in:
hermes committed 2026-07-10 00:26:44 +02:00
1 parent 89e02c9f64
commit f676f6c098
1 file changed
+3 -2
+3 -2
View File
@@ -364,14 +364,15 @@ function registerHandlers(srv) {
'Aspect: square|landscape|portrait. ' +
'Optional: image_urls — list of HTTP(S) or data: URLs of reference images ' +
'(style ref, seed, i2i) — works with Gemini, GPT-Image, FLUX 2, Seedream. ' +
'Returns {model,filepath,bytes,provider,latency_ms}.',
'Returns {model,filepath,bytes,provider,latency_ms}. ' +
'Use list_image_models for the full 35-model catalog.',
inputSchema: {
type: 'object',
properties: {
prompt: { type: 'string', description: 'Text prompt' },
model: {
type: 'string',
enum: models,
enum: ['google/gemini-2.5-flash-image', 'openai/gpt-image-2', 'recraft/recraft-v3', 'black-forest-labs/flux.2-flex', 'bytedance-seed/seedream-4.5', 'openai/gpt-image-1', 'microsoft/mai-image-2.5', 'x-ai/grok-imagine-image-quality'],
default: 'google/gemini-2.5-flash-image',
},
aspect: {