Prompting guide
This commit is contained in:
+3
-3
@@ -128,7 +128,7 @@ TOOL_REGISTRY = [
|
||||
),
|
||||
Tool(
|
||||
name="get_model_info",
|
||||
description="Returns a list of available models and their short descriptions. If a specific model name is provided, it returns the comprehensive prompting guide, available resolution presets, and active configuration tips for that model. CRITICAL: You must call this for any model you are unfamiliar with, as prompting styles vary wildly (e.g., tag-based vs. natural language) and using the wrong style will result in poor image quality.",
|
||||
description="Returns a list of available txt2img models and their short descriptions. If a specific model name is provided, it returns the comprehensive prompting guide, available resolution presets, and active configuration tips for that model. CRITICAL: You must call this for any model you are unfamiliar with, as prompting styles vary wildly (e.g., tag-based vs. natural language) and using the wrong style will result in poor image quality.",
|
||||
schema={
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -140,7 +140,7 @@ TOOL_REGISTRY = [
|
||||
),
|
||||
Tool(
|
||||
name="generate_image",
|
||||
description="Generates an image using the specified model and parameters. Note: To ensure high quality, verify the model's prompting requirements via get_model_info before calling this tool.",
|
||||
description="Generates an image using the specified model and parameters. To ensure high quality, verify the model's prompting requirements via get_model_info before calling this tool. You will usually not get the correct result the first time. If the generated image needs work, change the prompt and call this tool again. If it's good, use the provided markdown to display it to the user.",
|
||||
schema={
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -148,7 +148,7 @@ TOOL_REGISTRY = [
|
||||
"prompt": {"type": "string", "description": "The prompt for the image. Required."},
|
||||
"negative_prompt": {"type": "string", "description": "The negative prompt to exclude unwanted elements."},
|
||||
"resolution_preset": {"type": "string", "description": "A named resolution preset (e.g., 'square', 'portrait'). Available options depend on the model."},
|
||||
"cfg_scale": {"type": "number", "description": "CFG scale for prompt adherence."},
|
||||
"cfg_scale": {"type": "number", "description": "CFG scale for prompt adherence. Usually should be left omitted to select the default."},
|
||||
},
|
||||
"required": ["model_name", "prompt"],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user