- install GUIDE
YOU NEED G++
YOU NEED lcurl
YOU NEED JSON LIBRARY
- Build Time
g++ main.cpp -o binary -lcurl
export API_KEY="YOUR_API_KEY_HERE"
# add execute permission
chmod +x openai
# this optional
mv openai ~/.local/bin
chatgpt written in c++
YOU NEED G++
YOU NEED lcurl
YOU NEED JSON LIBRARY
g++ main.cpp -o binary -lcurl
export API_KEY="YOUR_API_KEY_HERE"
# add execute permission
chmod +x openai
# this optional
mv openai ~/.local/bin
chatgpt written in c++