The Artist Prompts API is a Rails application that leverages OpenAI's GPT-3.5 Turbo model to generate prompts and suggestions for artists. It allows artists to receive personalized recommendations for their goals, action steps, and resources based on their input.
git@github.com:garussell/artist_assist.git
bundle install
rails db:create
rails db:migrate
$ EDITOR="code --wait" rails credentials:edit
open_ai:
api_key: your_openai_api_key
rails server
/api/v1/:id/post_idea
POST /api/v1/post_idea
{
"goals": "I want to learn to play the drums"
}
Status Code: 200
{
"data": {
"id": null,
"type": "response",
"attributes": {
"id": null,
"action_steps": "Stuf about drumming:,
"resources": "Resources with links",
"goals": "I want to learn to play the drums",
"image_url": "https://oaidalleapiprodscus.blob.core.windows.net/private/org-DUWm0ko8w9epxLgtftuHr2ZP/user-C3kDGpQ319mqmHmO4pjG7bKq/img-7aiQAzBdz1lPJJN2adBKBMSg.png?st=2023-11-20T19%3A35%3A08Z&se=2023-11-20T21%3A35%3A08Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2023-11-20T20%3A28%3A47Z&ske=2023-11-21T20%3A28%3A47Z&sks=b&skv=2021-08-06&sig=Qk6szB/AlQ7eUIZnuO4Fdbh0YVl5%2BFluLWuUGJ87Crs%3D"
}
}
}
Status Code: 404 :not_found
{
"error": "Artist not found"
}
Status Code: 422 :unprocessable_enity
{
"error": "You must provide your creative goals."
}
If you'd like to contribute to the project, please follow these steps:
git checkout -b feature/your-feature
git commit -m "Add your feature"
git push origin feature/your-feature