- Added a `hashUserID` function to generate a collision-safe hash for user IDs, improving metadata handling. - Updated the environment setup in `buildEnv` to override `metadata.user_id` with a sanitized value, ensuring compatibility with third-party APIs. - Enhanced logging for the environment variables to aid in debugging and monitoring.
29 lines
1.1 KiB
JSON
29 lines
1.1 KiB
JSON
{
|
|
"name": "image_generate",
|
|
"description": "Generate an image from a text prompt using an image generation model (e.g. DALL-E, Seedream).",
|
|
"process": "tools.image_generate",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"prompt": {
|
|
"type": "string",
|
|
"description": "Text description of the image to generate."
|
|
},
|
|
"provider": {
|
|
"type": "string",
|
|
"description": "Provider connector ID (e.g. 'llm.my-openai:dall-e-3'). Use image_providers to list available options. If omitted, the first available image generation provider is used."
|
|
},
|
|
"size": {
|
|
"type": "string",
|
|
"description": "Image dimensions (default: 1024x1024). Common values: 1024x1024, 1024x1792, 1792x1024.",
|
|
"default": "1024x1024"
|
|
},
|
|
"model": {
|
|
"type": "string",
|
|
"description": "Model name to use (e.g. 'doubao-seedream-4-5-251128', 'dall-e-3'). Overrides the provider's default model. If omitted, the provider's default model is used."
|
|
}
|
|
},
|
|
"required": ["prompt"]
|
|
},
|
|
"x-process-args": ["$args.prompt", "$args.provider", "$args.size", "$args.model"]
|
|
}
|