Submiting a project to be part of the examples and playground section

Hi there! I am excited to share that I have developed an awesome web app using ChatGPT. I would love to submit it to OpenAI for consideration and potential inclusion in their examples and playground section. Could you provide guidance on the process? Thank you in advance!

1 Like

Welcome to the forum!

Can you show an example? show some code? maybe explained what your app does?

Hi @Foxalabs,

Thanks for the welcome!

Sure, let me tell you about my project. I have built a web app that generates Spotify playlists based on a book’s theme using ChatGPT & Google Books.

If you want more info, my repo is on Github, my username is m-vila and the name of the project is bookbeats.

I thought that it would be very cool to see OpenAI add this functionality as part of the examples section of the documentation as well as the playground, and if you could mention me or the project it would be amazing.

This is the code that does the magic:

app.post(‘/fetch-chat-gpt-response’, async (req, res) => {
try {
const bookName = req.body.bookName;
const numSongs = req.body.numSongs;
const response = await fetch(“COMPLETIONSURL”, {
method: “POST”,
headers: {
Authorization: Bearer ${API_KEY},
“Content-Type”: “application/json”
},
body: JSON.stringify({
model: “gpt-3.5-turbo”,
messages: [{
role: “system”,
content: “You are a helpful assistant.”
}, {
role: “user”,
content: Suggest a playlist of ${numSongs} songs for the book ${bookName}. Show the list of songs only.
}],
max_tokens: 500,
temperature: 0.5
})
});
const data = await response.json();
res.json(data);
} catch (error) {
console.error(‘Server error:’, error);
res.status(500).json({ error: ‘Internal Server Error’ });
}
});

But I have noticed that in the playground the model used is “Text-Davinci-003” and it is run on Python so this would be my proposal:

import os
import openai

openai.api_key = os.getenv(“OPENAI_API_KEY”)

response = openai.Completion.create(
model=“Text-Davinci-003”,
prompt=‘’'Suggest playlists of 5 songs for books.

Pride and Prejudice by Jane Austen:

  1. “Unchained Melody” by The Righteous Brothers
  2. “Something” by The Beatles
  3. “Every Breath You Take” by The Police
  4. “Time After Time” by Cyndi Lauper
  5. “Can’t Help Falling in Love” by Elvis Presley

The Martian by Andy Weir:

  1. “Space Oddity” by David Bowie
  2. “Rocket Man” by Elton John
  3. “Life on Mars?” by David Bowie
  4. “Interstellar Overdrive” by Pink Floyd
  5. “Survivor” by Destiny’s Child

Frankenstein by Mary Shelley:

‘’',
temperature=0.5,
max_tokens=200,
top_p=1.0,
frequency_penalty=0.52,
presence_penalty=0.5,
stop=[“11.”]
)

I just ran it and these are the suggestions for Frankenstein, aren’t they cool?

Frankenstein by Mary Shelley:

  1. “Monsters” by All Time Low
  2. “The Scientist” by Coldplay
  3. “Electric Feel” by MGMT
  4. “Alive” by Pearl Jam
  5. “Frankenstein” by Edgar Winter Group
2 Likes