ZIT prompting guide and tweaks

This commit is contained in:
2026-08-05 22:32:01 -07:00
parent 74eaa2a3e2
commit 627ab3aec6
3 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ async def handle(args: Dict[str, Any]) -> List[Dict[str, Any]]:
except (ValueError, AttributeError):
raise ToolError(f"Invalid resolution format for preset '{res_preset_name}': {res_val_str}. Expected 'WidthxHeight'.")
else:
raise ToolError(f"Resolution preset '{res_preset_name}' not found for this model. Available: {', '.join(res_set.keys())}")
raise ToolError(f"Resolution preset '{res_preset_name}' not found for this model. You MUST call get_model_info with this model_name to see the available resolution presets.")
else:
raise ToolError(f"No resolution set configured for model '{model_name}'.")
+2 -2
View File
@@ -24,7 +24,7 @@ async def handle(args: Dict[str, Any]) -> List[Dict[str, Any]]:
{
"type": "text",
"text": "Available models:\n\n" + "\n".join([f"- {m['name']}: {m['description']}" for m in catalog]) +
"\n\nTo get a detailed prompting guide and available resolutions for a specific model, call this tool again with the 'model_name' argument."
"\n\nBefore generating an image, you MUST call this tool again with your selected model as the 'model_name' argument."
}
]
@@ -41,7 +41,7 @@ async def handle(args: Dict[str, Any]) -> List[Dict[str, Any]]:
"type": "text",
"text": f"Model '{model_name}' not found.\n\nAvailable models:\n\n" +
"\n".join([f"- {m['name']}: {m['description']}" for m in catalog]) +
"\n\nTo get a detailed prompting guide and available resolutions for a specific model, call this tool again with the 'model_name' argument."
"\n\nBefore generating an image, you MUST call this tool again with selected model as the 'model_name' argument."
}
]