@aigne/doubao 1.0.4 → 1.0.6

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +17 -4
  3. package/package.json +8 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.6](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.0.5...doubao-v1.0.6) (2025-08-05)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * The following workspace dependencies were updated
9
+ * dependencies
10
+ * @aigne/openai bumped to 0.10.12
11
+ * devDependencies
12
+ * @aigne/core bumped to 1.44.0
13
+ * @aigne/test-utils bumped to 0.5.20
14
+
15
+ ## [1.0.5](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.0.4...doubao-v1.0.5) (2025-08-05)
16
+
17
+
18
+ ### Dependencies
19
+
20
+ * The following workspace dependencies were updated
21
+ * dependencies
22
+ * @aigne/openai bumped to 0.10.11
23
+ * devDependencies
24
+ * @aigne/core bumped to 1.43.1
25
+ * @aigne/test-utils bumped to 0.5.19
26
+
3
27
  ## [1.0.4](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.0.3...doubao-v1.0.4) (2025-08-04)
4
28
 
5
29
 
package/README.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @aigne/doubao
2
2
 
3
+ <p align="center">
4
+ <picture>
5
+ <source srcset="https://raw.githubusercontent.com/AIGNE-io/aigne-framework/main/logo-dark.svg" media="(prefers-color-scheme: dark)">
6
+ <source srcset="https://raw.githubusercontent.com/AIGNE-io/aigne-framework/main/logo.svg" media="(prefers-color-scheme: light)">
7
+ <img src="https://raw.githubusercontent.com/AIGNE-io/aigne-framework/main/logo.svg" alt="AIGNE Logo" width="400" />
8
+ </picture>
9
+ </p>
10
+
3
11
  [![GitHub star chart](https://img.shields.io/github/stars/AIGNE-io/aigne-framework?style=flat-square)](https://star-history.com/#AIGNE-io/aigne-framework)
4
12
  [![Open Issues](https://img.shields.io/github/issues-raw/AIGNE-io/aigne-framework?style=flat-square)](https://github.com/AIGNE-io/aigne-framework/issues)
5
13
  [![codecov](https://codecov.io/gh/AIGNE-io/aigne-framework/graph/badge.svg?token=DO07834RQL)](https://codecov.io/gh/AIGNE-io/aigne-framework)
@@ -46,6 +54,7 @@ pnpm add @aigne/doubao @aigne/core
46
54
  ## Basic Usage
47
55
 
48
56
  // todo
57
+
49
58
  ```typescript file="test/doubao-chat-model.test.ts" region="example-doubao-chat-model"
50
59
  import { DoubaoChatModel } from "@aigne/doubao";
51
60
 
@@ -66,9 +75,12 @@ const result = await model.invoke({
66
75
  console.log(result);
67
76
  /* Output:
68
77
  {
69
- text: "Hello! I'm Doubao, an AI developed by ByteDance. My main goal is to assist you with a wide range of tasks—whether you have questions to ask, need help brainstorming ideas, want explanations on topics, or just feel like chatting. I’m here to provide helpful, clear, and friendly responses. Feel free to let me know what you need—I’m happy to help! 😊",
70
- usage: { inputTokens: 87, outputTokens: 219 },
71
- model: 'doubao-seed-1-6-250615'
78
+ text: "Hello! I'm an AI assistant powered by Doubao's language model.",
79
+ model: "doubao-seed-1-6-250615",
80
+ usage: {
81
+ inputTokens: 7,
82
+ outputTokens: 12
83
+ }
72
84
  }
73
85
  */
74
86
  ```
@@ -76,7 +88,8 @@ console.log(result);
76
88
  ## Streaming Responses
77
89
 
78
90
  // todo
79
- ```typescript file="test/doubao-seed-1-6-250615-model.test.ts" region="example-doubao-seed-1-6-250615-model-streaming"
91
+
92
+ ```typescript file="test/doubao-chat-model.test.ts" region="example-doubao-chat-model-streaming"
80
93
  import { isAgentResponseDelta } from "@aigne/core";
81
94
  import { DoubaoChatModel } from "@aigne/doubao";
82
95
 
package/package.json CHANGED
@@ -1,16 +1,20 @@
1
1
  {
2
2
  "name": "@aigne/doubao",
3
+ "version": "1.0.6",
3
4
  "description": "AIGNE doubao SDK for integrating with doubao AI models",
4
5
  "publishConfig": {
5
6
  "access": "public"
6
7
  },
7
8
  "author": "Arcblock <blocklet@arcblock.io> https://github.com/blocklet",
8
- "homepage": "https://github.com/AIGNE-io/aigne-framework",
9
+ "homepage": "https://www.aigne.io/framework",
9
10
  "license": "Elastic-2.0",
10
11
  "repository": {
11
12
  "type": "git",
12
13
  "url": "git+https://github.com/AIGNE-io/aigne-framework"
13
14
  },
15
+ "bugs": {
16
+ "url": "https://github.com/AIGNE-io/aigne-framework/issues"
17
+ },
14
18
  "files": [
15
19
  "lib/cjs",
16
20
  "lib/dts",
@@ -31,7 +35,7 @@
31
35
  }
32
36
  },
33
37
  "dependencies": {
34
- "@aigne/openai": "^0.10.10"
38
+ "@aigne/openai": "^0.10.12"
35
39
  },
36
40
  "devDependencies": {
37
41
  "@types/bun": "^1.2.18",
@@ -39,10 +43,9 @@
39
43
  "npm-run-all": "^4.1.5",
40
44
  "rimraf": "^6.0.1",
41
45
  "typescript": "^5.8.3",
42
- "@aigne/test-utils": "^0.5.18",
43
- "@aigne/core": "^1.43.0"
46
+ "@aigne/core": "^1.44.0",
47
+ "@aigne/test-utils": "^0.5.20"
44
48
  },
45
- "version": "1.0.4",
46
49
  "scripts": {
47
50
  "lint": "tsc --noEmit",
48
51
  "build": "tsc --build scripts/tsconfig.build.json",