@aigne/example-workflow-group-chat 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/index.ts +0 -3
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -33,6 +33,7 @@ class illustrator processing
|
|
|
33
33
|
## Prerequisites
|
|
34
34
|
|
|
35
35
|
- [Node.js](https://nodejs.org) and npm installed on your machine
|
|
36
|
+
- [Bun](https://bun.sh) installed on your machine
|
|
36
37
|
- [OpenAI API key](https://platform.openai.com/api-keys) used to interact with OpenAI API
|
|
37
38
|
- [Pnpm](https://pnpm.io) [Optional] if you want to run the example from source code
|
|
38
39
|
|
package/index.ts
CHANGED
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
getMessage,
|
|
13
13
|
} from "@aigne/core";
|
|
14
14
|
import { OpenAIChatModel } from "@aigne/core/models/openai-chat-model.js";
|
|
15
|
-
import { logger } from "@aigne/core/utils/logger.js";
|
|
16
15
|
import inquirer from "inquirer";
|
|
17
16
|
import { z } from "zod";
|
|
18
17
|
|
|
@@ -93,7 +92,6 @@ const user = UserAgent.from({
|
|
|
93
92
|
publishTopic: DEFAULT_TOPIC,
|
|
94
93
|
memory: { subscribeTopic: DEFAULT_TOPIC },
|
|
95
94
|
async process() {
|
|
96
|
-
logger.globalSpinner?.stop();
|
|
97
95
|
const { question } = await inquirer.prompt([
|
|
98
96
|
{
|
|
99
97
|
type: "input",
|
|
@@ -106,7 +104,6 @@ const user = UserAgent.from({
|
|
|
106
104
|
},
|
|
107
105
|
]);
|
|
108
106
|
isFirstQuestion = false;
|
|
109
|
-
logger.globalSpinner?.start();
|
|
110
107
|
return createMessage(question);
|
|
111
108
|
},
|
|
112
109
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/example-workflow-group-chat",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "A demonstration of using AIGNE Framework to build a group chat workflow",
|
|
5
5
|
"author": "Arcblock <blocklet@arcblock.io> https://github.com/blocklet",
|
|
6
6
|
"homepage": "https://github.com/AIGNE-io/aigne-framework/tree/main/examples/workflow-group-chat",
|
|
@@ -16,12 +16,13 @@
|
|
|
16
16
|
"README.md"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"openai": "^4.
|
|
19
|
+
"openai": "^4.94.0",
|
|
20
20
|
"zod": "^3.24.2",
|
|
21
|
-
"@aigne/core": "^1.
|
|
21
|
+
"@aigne/core": "^1.8.0",
|
|
22
|
+
"@aigne/cli": "^1.3.0"
|
|
22
23
|
},
|
|
23
24
|
"scripts": {
|
|
24
|
-
"start": "
|
|
25
|
+
"start": "bun run index.ts",
|
|
25
26
|
"lint": "tsc --noEmit"
|
|
26
27
|
}
|
|
27
28
|
}
|