From 8f9e4ea29e729ff86623dda916c6642a72d4f71f Mon Sep 17 00:00:00 2001 From: YuShifan <894402575bt@gmail.com> Date: Tue, 4 Apr 2023 10:48:06 +0800 Subject: [PATCH] update start cli --- README.md | 6 ++++++ package.json | 1 + 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 6a8be93..1b7a7b2 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/package.json b/package.json index ad015e5..cac06c7 100644 --- a/package.json +++ b/package.json @@ -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": {