Hallucinating invalid setting types

The AI is hallucinating invalid section types, such as list. This type does not exist, according to the Shopify documentation: https://shopify.dev/docs/storefronts/themes/architecture/settings/input-settings.

Maybe add a whitelist to the system prompt and only allow valid types to fix this, but I don't know if this is possible.

{

"name": "Product Bundle Builder",

"class": "shopdev",

"tag": "section",

"settings": [

{

"type": "header",

"content": "Bundle Builder Settings"

},

{

"type": "text",

"id": "title",

"label": "Section Title",

"default": "Create Your Custom Bundle"

},

{

"type": "textarea",

"id": "subtitle",

"label": "Section Subtitle",

"default": "Mix and match your favorite products to create a personalized bundle and save."

},

{

"type": "text",

"id": "bundle_title",

"label": "Bundle Box Title",

"default": "Your Bundle"

},

{

"type": "textarea",

"id": "bundle_description",

"label": "Bundle Box Description",

"default": "Add at least 3 items to your bundle to receive a special discount."

},

{

"type": "range",

"id": "min_bundle_size",

"min": 2,

"max": 10,

"step": 1,

"label": "Minimum Bundle Size for Discount",

"default": 3

},

{

"type": "range",

"id": "discount_percentage",

"min": 5,

"max": 30,

"step": 5,

"label": "Bundle Discount Percentage",

"default": 15

},

{

"type": "text",

"id": "add_to_cart_text",

"label": "Add to Cart Button Text",

"default": "Add Bundle to Cart"

},

{

"type": "textarea",

"id": "bundle_note",

"label": "Bundle Note",

"default": "Bundle items will be added to your cart with the discount applied. Items can be removed individually from your cart if needed."

},

{

"type": "header",

"content": "Product Selection"

},

{

"type": "list",

"id": "product_handles",

"label": "Product Handles",

"default": [

"classic-jumper",

"basic-t-shirt",

"classic-sneaker",

"active-sports-bra",

"zipped-top",

"classic-sweatpants",

"maxi-long-dress",

"knee-high-socks",

"sports-active-skirt",

"windbreaker-jacket"

]

},

{

"type": "list",

"id": "collections",

"label": "Collection Filters",

"default": [

"leasure",

"activewear"

]

}

],

"presets": [

{

"name": "Product Bundle Builder",

"settings": {

"title": "Create Your Custom Bundle",

"subtitle": "Mix and match your favorite products to create a personalized bundle and save.",

"bundle_title": "Your Bundle",

"bundle_description": "Add at least 3 items to your bundle to receive a special discount.",

"min_bundle_size": 3,

"discount_percentage": 15,

"add_to_cart_text": "Add Bundle to Cart",

"bundle_note": "Bundle items will be added to your cart with the discount applied. Items can be removed individually from your cart if needed.",

"product_handles": [

"classic-jumper",

"basic-t-shirt",

"classic-sneaker",

"active-sports-bra",

"zipped-top",

"classic-sweatpants",

"maxi-long-dress",

"knee-high-socks",

"sports-active-skirt",

"windbreaker-jacket"

],

"collections": [

"leasure",

"activewear"

]

}

}

]

}

{% endschema %}


This does not exist:


{

"type": "list",

"id": "product_handles",

"label": "Product Handles",

"default": [

"classic-jumper",

"basic-t-shirt",

"classic-sneaker",

"active-sports-bra",

"zipped-top",

"classic-sweatpants",

"maxi-long-dress",

"knee-high-socks",

"sports-active-skirt",

"windbreaker-jacket"

]

},

Please authenticate to join the conversation.

Upvoters
Status

Accepted

Board
πŸ›

Bug Reports

Date

11 months ago

Author

Dennis Hartenfels

Subscribe to post

Get notified by email when there are changes.