• psmgx@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    8 days ago

    “Sorry, we’ll format correctly in JSON this time.”

    [Proceeds to shit out the exact same garbage output]

  • Engraver3825@piefed.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 days ago

    True story:

    AI: 42, ]

    Vibe coder: oh no, a syntax error, programming is too difficult, software engineers are gatekeeping with their black magic.

    • towerful@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      8 days ago
      let data = null
      do {
          const response = await openai.prompt(prompt)
          if (response.error !== null) continue;
          try {
              data = JSON.parse(response.text)
          } catch {
              data = null // just in case
          }
      } while (data === null)
      return data
      

      Meh, not my money

  • Undaunted@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    8 days ago

    I need to look it up again, but I read about a study that showed that the results improve if you tell the AI that your job depends on it or similar drastic things. It’s kinda weird.