Hacker GitHub

← All repos

adamkdean/gpt-unicorn

View on GitHub ↗ ★ 80 JavaScript archived

Getting GPT-4 to draw a new unicorn every day

10 mentions on Hacker News by 9 people: 0 stories, 10 comments · first 2023-04-13 · latest 2023-08-10

Mentions per year 10 mentions · busiest year 2023 (10)
20082026
  1. …500x500. Respond ONLY with a single SVG string. Do not respond with conversation or codeblocks. https://github.com/adamkdean/gpt-unicorn/blob/master/src/lib... I just asked this and got the following result: <svg…
    comment by esafak · 2023-08-10 · in GPT Unicorn has drawn a unicorn
  2. …this.fetchImage(messages) } console.log('Generated image:', response.content) return response } [1] https://github.com/adamkdean/gpt-unicorn/blob/master/src/lib...
    comment by mmh0000 · 2023-08-10 · in GPT Unicorn has drawn a unicorn
  3. …Respond ONLY with a single SVG string. Do not respond with conversation or codeblocks. See: https://github.com/adamkdean/gpt-unicorn/blob/master/src/lib...
    comment by imdsm · 2023-08-10 · in GPT Unicorn has drawn a unicorn
  4. Looks like it just reprompts for a valid SVG if the result isn't valid: https://github.com/adamkdean/gpt-unicorn/blob/master/src/lib...
    comment by jwestbury · 2023-08-10 · in GPT Unicorn has drawn a unicorn
  5. This part: https://github.com/adamkdean/gpt-unicorn/blob/master/src/lib...
    comment by dannyw · 2023-08-10 · in GPT Unicorn has drawn a unicorn
  6. It's using GPT-4, see the config file: https://github.com/adamkdean/gpt-unicorn/blob/357a466c366f67...
    comment by kachnuv_ocasek · 2023-08-10 · in GPT Unicorn has drawn a unicorn
  7. …five images were sadly lost just now as I made a few updates to the repo. Apologies for this. [1] https://github.com/adamkdean/gpt-unicorn/commit/08e400dbc437...
  8. I filed an issue: https://github.com/adamkdean/gpt-unicorn/issues/2 "Running this project daily doesn't make sense if GPT-4 is not being constantly updated" With a suggestion to run it monthly instead, and generate 16 images at a time, and…
  9. Also unclear if he's sampling at temp=0. Looks like he doesn't set a temp? https://github.com/adamkdean/gpt-unicorn/blob/8ad76ec7161682... So not sure what he's really doing.
  10. They appear to be here: https://github.com/adamkdean/gpt-unicorn/blob/master/src/lib... { role: 'system', content: `You are a helpful assistant that generates SVG drawings. You respond only with SVG. You do not respond with text.` }, {…