- const APP_PORT = process.env.APP_PORT || 3000;
- const APP_HOST = process.env.APP_HOST || 'localhost';
- const APP_PROTOCOL = process.env.APP_PROTOCOL || 'http://';
- const SONGS_LIMIT = 50; // limit returned list of songs (chatGPT plugin response limitations)
- npm install
- node app.js
- The server will listen on port "APP_PORT if set or port 3000. You can connect to the server using any web browser.
- Currently works only on MacOS
- Only plays local content
To use the plugin with ChatGPT, follow the steps in the "Develop your own plugin" section of the ChatGPT API documentation". You need to enter the plugin's URL to use it as a plugin (localhost:3000) After you've set up the plugin, you can use it through ChatGPT.
- ask chatGPT for list of available songs, for example: "Get me list of songs"
- now you can ask fo more info: "Add year and Artists to this list (based on your knowledge)"
- or just play one of these songs: "Play a song from 80's" or "Play a song: Bohemian Rhapsody"