cm0002@lemmy.world to Programmer Humor@programming.dev · 7 个月前Prompt Engineerlemmy.mlimagemessage-square29fedilinkarrow-up1679cross-posted to: programmerhumor@lemmy.ml
arrow-up1679imagePrompt Engineerlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 7 个月前message-square29fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squaretowerful@programming.devlinkfedilinkarrow-up45·7 个月前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
Meh, not my money