Skip to content

Commit

Permalink
update start cli
Browse files Browse the repository at this point in the history
  • Loading branch information
ysfscream committed Apr 4, 2023
1 parent 912874d commit 8f9e4ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ This project aims to provide a simple and efficient way to integrate OpenAI's Ch
node index.js
````
or
```bash
npm run start
```
2. The application will automatically connect to the MQTT broker and subscribe to the chatgpt/request topic.
3. To interact with the ChatGPT, publish a message to the chatgpt/request topic. The application will receive the message, send it to the OpenAI API, and publish the response to the chatgpt/demo topic.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Node.js project that combines OpenAI's API with MQTT for real-time AI-driven interactions in IoT ecosystems.",
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand Down

0 comments on commit 8f9e4ea

Please sign in to comment.