News for hackers. Stuff that matters.
Re:Infinite AI Array, the Python Library by iamflimflam1 on Tuesday January 03, 2023 @05:06PM (#34238790)
I was just messing around with ChatGPT for a similar use case. Amazing what comes out of you ask for:

    Give me a list of imaginary products that might be found in a magic shop formatted as json array including an id name, description, sku, price. Use syntax highlighting for the output and pretty print it.
Re:Infinite AI Array, the Python Library by aldanor on Wednesday January 04, 2023 @01:33PM (#34249494)
Actually, ChatGPT should be real nice for generating test data for whatever schema you want.
Re:Infinite AI Array, the Python Library by snowflakeandrey on Friday January 06, 2023 @07:00AM (#34273763)
Editing the kind of magic shop it is, add "very high end" to that sentence and see the difference. Specifically —

  {
    "id": 2,
    "name": "Magic Wand",
    "description": "A magical wand that can cast powerful spells.",
    "sku": "MAGIC-WAND-001",
    "price": 49.99
  },
Is instead:

  {
    "id": 4,
    "name": "Magic Wand",
    "description": "A powerful wand made from a magical tree.",
    "sku": "MAGIC-WAND-001",
    "price": 1500.00
  }

Or with "fancy", it is —

  {
    "id": 3,
    "name": "Mystic Wand",
    "description": "A powerful wand that grants the wielder the ability to cast powerful spells.",
    "sku": "WAND-001",
    "price": "199.99"
  },
And if the magic shop is "run down", it might have —

  {
    "id": 3,
    "name": "Mystical Wand",
    "description": "A powerful wand that grants the wielder the ability to cast spells.",
    "sku": "WAND-001",
    "price": 29.99
  }
What a joy :)