DataCamp provides a multitude of projects for learners to tackle. In this repository, I have tackled the project Planning a Trip to Paris with the OpenAI API. The project asks to utilize the OpenAI platform to develop a chatbot to answer three pre-defined questions about exploring Paris and offer customized recommendations.
In my solution, I have created a function that receives users' inputs on the desired model and the questions they have and provides up-to-date recommendations. The question set can be further updated to include any questions desirable for the chatbot.
To be able to work with OpenAI Platform. You need to make an account, add an API Key, and add a payment method.
- Go to API Signup page to open an account.
- Go to API keys page and create a new secret key.
- Copy the key and paste it in the designated field in the code.
- Make sure you have added a payment method as the models are subscription based and will charge you per token used. For more information check OpenAI Pricing page.