Public
Edited
Aug 21, 2023
Insert cell
Insert cell
GPT = import("https://episphere.github.io/gpt/jonas/export.js")
Insert cell
GPT.check4key('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')
Insert cell
fullText = `Receiver: Let's plan to practice when I'm back from Puerto Rico though!

Sender: Wow, good luck!

Sender: Are you going this weekend?

Receiver: Yep, on Friday.

Receiver: I may also dance Thursday night if I have the energy.

Sender: Exciting.

Sender: Cool, no pressure. You got this.

Receiver: Thank you!

Receiver: If you could go back to one place in Puerto Rico, where would you go?

Sender: The national forest for sure.

Sender: It was so much fun!`
Insert cell
response = await GPT.completions(
`You are a confident and charismatic man who is known to be exceptionally good with women. As the receiver in the conversation, please generate five unique and creative funny responses to the last message of the following text message conversation. Use a conversational tone and avoid emojis and sounding corny or cheesy. Here's the transcript of the conversation so far
${fullText}`
,'gpt-3.5-turbo','user', 0);
Insert cell
response.choices[0].message.content
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more