Perl-Advent icon indicating copy to clipboard operation
Perl-Advent copied to clipboard

Generating a Christmas Card with OpenAI::API and LWP

Open lstein opened this issue 1 year ago • 1 comments

Which Perl module do you want to write about: OpenAI::API and LWP.

I haven't fully fleshed this idea out, but the goal will be to have the user enter a short thematic idea and their OpenAI key. The advent script will then go to ChatGPT's text generator, generate an appropriate prompt for a christmas card, and then pass this prompt back to OpenAI to generate a PNG image of the card.

lstein avatar Aug 25 '24 15:08 lstein

This sounds great @lstein. We are looking forward to it!

oalders avatar Aug 25 '24 16:08 oalders

Hello! This is your mid-November reminder that Advent is fast approaching. The first articles will go live in less than 3 weeks. We are very much looking forward to preparing your article for publication. If you could update this ticket with an ETA for your first draft that would be very helpful when it comes to planning ahead for editing, proofreading etc. 🌲🤶🎅🧝

oalders avatar Nov 13 '24 22:11 oalders

Oh dear. This slipped off my radar -- there was a shakeup at my workplace and I'm now holding two jobs at once. Can I promise this for end of November?

Lincoln

On Wed, Nov 13, 2024 at 5:51 PM Olaf Alders @.***> wrote:

Hello! This is your mid-November reminder that Advent is fast approaching. The first articles will go live in less than 3 weeks. We are very much looking forward to preparing your article for publication. If you could update this ticket with an ETA for your first draft that would be very helpful when it comes to planning ahead for editing, proofreading etc. 🌲🤶🎅🧝

— Reply to this email directly, view it on GitHub https://github.com/perladvent/Perl-Advent/issues/436#issuecomment-2474985022, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA3EVJBBHWZRGXXOWJFY2L2APJYZAVCNFSM6AAAAABNCURN3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZUHE4DKMBSGI . You are receiving this because you were mentioned.Message ID: @.***>

--

Lincoln Stein (he/him/his)

Scientific Director (Acting), and Head, Adaptive Oncology

Ontario Institute for CancerResearch

@.***

Tel: 416-673-8514 | Cell: 416-817-8240

Executive Assistant

Michelle Xin

@.***

Tel: 647-260-7927

Ontario Institute for Cancer Research

MaRS Centre, 661 University Avenue, Suite 510, Toronto, Ontario, Canada M5G 0A3

www.oicr.on.ca

Collaborate. Translate. Change lives.

This message and any attachments may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this message in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this message may not be that of the organization.

lstein avatar Nov 14 '24 14:11 lstein

Hi Lincoln. That sounds stressful. 😬 End of November would be great, but we can also do early December seeing that you've got a lot on your plate. Maybe try for Dec 10?

oalders avatar Nov 17 '24 01:11 oalders

Hi,

I’ve written the code and am ready to start the write-up itself. Could someone direct me to instructions for formatting and submitting the advent entry?

Thanks,

Lincoln

Written on my cell phone. Anything that seems odd is the fault of auto-correct.

On Sun, Aug 25, 2024 at 12:30 PM Olaf Alders @.***> wrote:

This sounds great @lstein https://github.com/lstein. We are looking forward to it!

— Reply to this email directly, view it on GitHub https://github.com/perladvent/Perl-Advent/issues/436#issuecomment-2308916065, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA3EVOSEZ6ZLGDKG2MVFTLZTIBD7AVCNFSM6AAAAABNCURN3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYHEYTMMBWGU . You are receiving this because you were mentioned.Message ID: @.***>

lstein avatar Nov 25 '24 21:11 lstein

NVM, I realized that the instructions anre all in the repo.

Lincoln

Written on my cell phone. Anything that seems odd is the fault of auto-correct.

On Mon, Nov 25, 2024 at 4:00 PM Lincoln Stein @.***> wrote:

Hi,

I’ve written the code and am ready to start the write-up itself. Could someone direct me to instructions for formatting and submitting the advent entry?

Thanks,

Lincoln

Written on my cell phone. Anything that seems odd is the fault of auto-correct.

On Sun, Aug 25, 2024 at 12:30 PM Olaf Alders @.***> wrote:

This sounds great @lstein https://github.com/lstein. We are looking forward to it!

— Reply to this email directly, view it on GitHub https://github.com/perladvent/Perl-Advent/issues/436#issuecomment-2308916065, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA3EVOSEZ6ZLGDKG2MVFTLZTIBD7AVCNFSM6AAAAABNCURN3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYHEYTMMBWGU . You are receiving this because you were mentioned.Message ID: @.***>

lstein avatar Nov 25 '24 21:11 lstein

If you run into any issues with the article creation (and after), please do ping me here. We want to make sure the process is fairly low in friction.

oalders avatar Nov 25 '24 21:11 oalders

Thanks for this article @lstein!

oalders avatar Dec 15 '24 17:12 oalders

You're welcome!

Lincoln

On Sun, Dec 15, 2024 at 12:41 PM Olaf Alders @.***> wrote:

Thanks for this article @lstein https://github.com/lstein!

— Reply to this email directly, view it on GitHub https://github.com/perladvent/Perl-Advent/issues/436#issuecomment-2543971381, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA3EVNVFPM3QLFVGVP6AAD2FW5NLAVCNFSM6AAAAABNCURN3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBTHE3TCMZYGE . You are receiving this because you were mentioned.Message ID: @.***>

--

Lincoln Stein (he/him/his)

Scientific Director (Acting), and Head, Adaptive Oncology

Ontario Institute for CancerResearch

@.***

Tel: 416-673-8514 | Cell: 416-817-8240

Executive Assistant

Michelle Xin

@.***

Tel: 647-260-7927

Ontario Institute for Cancer Research

MaRS Centre, 661 University Avenue, Suite 510, Toronto, Ontario, Canada M5G 0A3

www.oicr.on.ca

Collaborate. Translate. Change lives.

This message and any attachments may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this message in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this message may not be that of the organization.

lstein avatar Dec 15 '24 18:12 lstein