Sample bot to demonstrate how to integrate with the new gpt-3.5 turbo model that powers ChatGPT.
This bot has been created using Bot Framework, it shows how to create a simple bot that accepts input from the user and runs it via the newly released gpt-3.5-turbo model that powers ChatGPT to respond to the user.
-
Node.js version 10.14.1 or higher
# determine node version node --version
-
Make a copy of .env.example to .env, get your OpenAI key from https://beta.openai.com/account/api-keys and paste it in the .env file.
-
Install modules
npm install
-
Start the bot
npm start
Bot Framework Emulator is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel.
- Install the Bot Framework Emulator version 4.9.0 or greater from here
- Launch Bot Framework Emulator
- File -> Open Bot
- Enter a Bot URL of
http://localhost:3978/api/messages
To learn more about deploying a bot to Azure, see Deploy your bot to Azure for a complete list of deployment instructions.