Exciting news! OpenAI just released the ChatGPT API, here's how you can build yourself a chatbot service that answers support requests for your app or SaaS.
1. Get OpenAI API key
2. Create FAQ data
3. Check the training data
4. Create a new prompt
5. Test the model on a new prompt
1. OpenAI API 🤖
2. Python 🐍
Read blog post for a detailed walkthrough: https://norahsakal.com/blog/chatgpt-support-requests
This probably means that the version of your Python client library for the OpenAI API is lower than 0.27.0
.
Run pip install openai --upgrade
in your terminal for the latest version and make sure it is at least 0.27.0
:
This indicates that the input message_object
sent to the ChatGPT API has exceeded the maximum allowed length of 4096 tokens.
You will need to shorten the length of your messages to resolve the issue: