Let’s code this for the AI. gpt-3.5-turbo-0301 because it is not as dumb.
System:
You are a dungeon master’s AI assistant.
User:
"""
I host a Dungeons and Dragons game. I need AI-generated names for the stores and shops in a town where players can purchase items, total 50 store numbers (store number are not output).
"""
# shop naming
if store_number % 4:
store name begins with "The"
if store_number % 3:
store name is only a one-word name
# output object specification
{
"shops": [
{
"name": "str",
"type": "str"
},
...
]
}
Response (finish_reason: 999 tokens):
{
"shops": [
{
"name": "The Gilded Hammer",
"type": "Blacksmith"
},
{
"name": "Arcanum",
"type": "Magic Shop"
},
{
"name": "The Silver Chalice",
"type": "Tavern"
},
{
"name": "The Rusty Anchor",
"type": "General Store"
},
{
"name": "Mystique",
"type": "Jewelry Store"
},
{
"name": "The Parchment Scroll",
"type": "Bookstore"
},
{
"name": "The Emerald Flask",
"type": "Alchemy Shop"
},
{
"name": "Bounty",
"type": "Hunting Store"
},
{
"name": "The Soaring Eagle",
"type": "Inn"
},
{
"name": "The Crimson Shield",
"type": "Armory"
},
{
"name": "Sundries",
"type": "General Store"
},
{
"name": "The Golden Quill",
"type": "Scribe Shop"
},
{
"name": "The Mystic's Eye",
"type": "Divination Shop"
},
{
"name": "The Laughing Dragon",
"type": "Tavern"
},
{
"name": "Enchantress",
"type": "Magic Shop"
},
{
"name": "The Sturdy Oak",
"type": "Carpentry Shop"
},
{
"name": "The Prancing Pony",
"type": "Stable"
},
{
"name": "Gems",
"type": "Jewelry Store"
},
{
"name": "The Wandering Minstrel",
"type": "Music Store"
},
{
"name": "The Silent Whisper",
"type": "Thieves' Guild"
},
{
"name": "The Shining Beacon",
"type": "Temple"
},
{
"name": "Elixirs",
"type": "Potion Shop"
},
{
"name": "The Hungry Wolf",
"type": "Butcher Shop"
},
{
"name": "The Silver Loom",
"type": "Tailor Shop"
},
{
"name": "Majesty",
"type": "Royal Court"
},
{
"name": "The Iron Fist",
"type": "Fighter's Guild"
},
{
"name": "The Gentle Touch",
"type": "Healer's Guild"
},
{
"name": "The Arcane Library",
"type": "Mage's Guild"
},
{
"name": "The Lucky Horseshoe",
"type": "Stable"
},
{
"name": "The Singing Siren",
"type": "Tavern"
},
{
"name": "The Jade Serpent",
"type": "Exotic Goods Store"
},
{
"name": "The Celestial Compass",
"type": "Navigation Shop"
},
{
"name": "The Copper Kettle",
"type": "Cookware Store"
},
{
"name": "The Swift Arrow",
"type": "Fletcher Shop"
},
{
"name": "The Crystal Ball",
"type": "Divination Shop"
},
{
"name": "The Feathered Quiver",
"type": "Archery Store"
},
{
"name": "The Siren's Song",
"type": "Bard's College"
},
{
"name": "The Fiery Forge",
"type": "Blacksmith"
},
{
"name": "The Worn Tome",
"type": "Bookstore"
},
{
"name": "The Royal Jewel",
"type": "Jewelry Store"
},
{
"name": "The Glistening Scale",
"type": "Armory"
},
{
"name": "The Golden Apple",
"type": "Fruit Stand"
},
{
"name": "The Crescent Moon",
"type": "Inn"
},
{
"name": "The Woven Basket",
"type": "Weaver's Shop"
},
{
"name
A sample from gpt-4 which might simulate the math better, or get the idea.
Sure, here are the names and types of 50 stores and shops in the town:
```json
{
"shops": [
{
"name": "The Gilded Griffin",
"type": "Blacksmith"
},
{
"name": "Frostfire",
"type": "Magic Shop"
},
{
"name": "The Prancing Pony",
"type": "Tavern"
},
{
"name": "Moonstone",
"type": "Jewelry Store"
},
{
"name": "The Cursed Scroll",
"type": "Bookstore"
},
{
"name": "Dragonhide",
"type": "Leather Goods Store"
},
{
"name": "The Wandering Wyvern",
"type": "Inn"
},
{
"name": "Starfall",
"type": "Apothecary"
},
{
"name": "The Shimmering Shield",
"type": "Armory"
},
{
"name": "Mystic",
"type": "Occult Shop"
},
I threw another factor in to consider, but you can just use one mod %, and then also include an index key in your json for counting as the output is produced.