@aigne/aigne-hub 0.10.2-beta → 0.10.2-beta.10
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/CHANGELOG.md +245 -0
- package/README.md +11 -11
- package/lib/cjs/utils/model.js +4 -1
- package/lib/cjs/utils/type.d.ts +3 -3
- package/lib/cjs/utils/type.js +1 -1
- package/lib/dts/utils/type.d.ts +3 -3
- package/lib/esm/utils/model.js +4 -1
- package/lib/esm/utils/type.d.ts +3 -3
- package/lib/esm/utils/type.js +1 -1
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,250 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.10.2-beta.10](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.2-beta.9...aigne-hub-v0.10.2-beta.10) (2025-10-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* The following workspace dependencies were updated
|
|
9
|
+
* dependencies
|
|
10
|
+
* @aigne/anthropic bumped to 0.14.2-beta.10
|
|
11
|
+
* @aigne/bedrock bumped to 0.10.7-beta.10
|
|
12
|
+
* @aigne/core bumped to 1.63.0-beta.10
|
|
13
|
+
* @aigne/deepseek bumped to 0.7.48-beta.10
|
|
14
|
+
* @aigne/doubao bumped to 1.1.2-beta.10
|
|
15
|
+
* @aigne/gemini bumped to 0.14.2-beta.10
|
|
16
|
+
* @aigne/ideogram bumped to 0.4.2-beta.10
|
|
17
|
+
* @aigne/ollama bumped to 0.7.48-beta.10
|
|
18
|
+
* @aigne/open-router bumped to 0.7.48-beta.10
|
|
19
|
+
* @aigne/openai bumped to 0.16.2-beta.10
|
|
20
|
+
* @aigne/poe bumped to 1.0.28-beta.10
|
|
21
|
+
* @aigne/transport bumped to 0.15.11-beta.10
|
|
22
|
+
* @aigne/xai bumped to 0.7.48-beta.10
|
|
23
|
+
* devDependencies
|
|
24
|
+
* @aigne/test-utils bumped to 0.5.55-beta.10
|
|
25
|
+
|
|
26
|
+
## [0.10.2-beta.9](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.2-beta.8...aigne-hub-v0.10.2-beta.9) (2025-10-16)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* **models:** enhance gemini model tool use with status fields ([#634](https://github.com/AIGNE-io/aigne-framework/issues/634)) ([067b175](https://github.com/AIGNE-io/aigne-framework/commit/067b175c8e31bb5b1a6d0fc5a5cfb2d070d8d709))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Dependencies
|
|
35
|
+
|
|
36
|
+
* The following workspace dependencies were updated
|
|
37
|
+
* dependencies
|
|
38
|
+
* @aigne/anthropic bumped to 0.14.2-beta.9
|
|
39
|
+
* @aigne/bedrock bumped to 0.10.7-beta.9
|
|
40
|
+
* @aigne/core bumped to 1.63.0-beta.9
|
|
41
|
+
* @aigne/deepseek bumped to 0.7.48-beta.9
|
|
42
|
+
* @aigne/doubao bumped to 1.1.2-beta.9
|
|
43
|
+
* @aigne/gemini bumped to 0.14.2-beta.9
|
|
44
|
+
* @aigne/ideogram bumped to 0.4.2-beta.9
|
|
45
|
+
* @aigne/ollama bumped to 0.7.48-beta.9
|
|
46
|
+
* @aigne/open-router bumped to 0.7.48-beta.9
|
|
47
|
+
* @aigne/openai bumped to 0.16.2-beta.9
|
|
48
|
+
* @aigne/poe bumped to 1.0.28-beta.9
|
|
49
|
+
* @aigne/transport bumped to 0.15.11-beta.9
|
|
50
|
+
* @aigne/xai bumped to 0.7.48-beta.9
|
|
51
|
+
* devDependencies
|
|
52
|
+
* @aigne/test-utils bumped to 0.5.55-beta.9
|
|
53
|
+
|
|
54
|
+
## [0.10.2-beta.8](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.2-beta.7...aigne-hub-v0.10.2-beta.8) (2025-10-16)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Dependencies
|
|
58
|
+
|
|
59
|
+
* The following workspace dependencies were updated
|
|
60
|
+
* dependencies
|
|
61
|
+
* @aigne/anthropic bumped to 0.14.2-beta.8
|
|
62
|
+
* @aigne/bedrock bumped to 0.10.7-beta.8
|
|
63
|
+
* @aigne/core bumped to 1.63.0-beta.8
|
|
64
|
+
* @aigne/deepseek bumped to 0.7.48-beta.8
|
|
65
|
+
* @aigne/doubao bumped to 1.1.2-beta.8
|
|
66
|
+
* @aigne/gemini bumped to 0.14.2-beta.8
|
|
67
|
+
* @aigne/ideogram bumped to 0.4.2-beta.8
|
|
68
|
+
* @aigne/ollama bumped to 0.7.48-beta.8
|
|
69
|
+
* @aigne/open-router bumped to 0.7.48-beta.8
|
|
70
|
+
* @aigne/openai bumped to 0.16.2-beta.8
|
|
71
|
+
* @aigne/poe bumped to 1.0.28-beta.8
|
|
72
|
+
* @aigne/transport bumped to 0.15.11-beta.8
|
|
73
|
+
* @aigne/xai bumped to 0.7.48-beta.8
|
|
74
|
+
* devDependencies
|
|
75
|
+
* @aigne/test-utils bumped to 0.5.55-beta.8
|
|
76
|
+
|
|
77
|
+
## [0.10.2-beta.7](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.2-beta.6...aigne-hub-v0.10.2-beta.7) (2025-10-15)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### Dependencies
|
|
81
|
+
|
|
82
|
+
* The following workspace dependencies were updated
|
|
83
|
+
* dependencies
|
|
84
|
+
* @aigne/anthropic bumped to 0.14.2-beta.7
|
|
85
|
+
* @aigne/bedrock bumped to 0.10.7-beta.7
|
|
86
|
+
* @aigne/core bumped to 1.63.0-beta.7
|
|
87
|
+
* @aigne/deepseek bumped to 0.7.48-beta.7
|
|
88
|
+
* @aigne/doubao bumped to 1.1.2-beta.7
|
|
89
|
+
* @aigne/gemini bumped to 0.14.2-beta.7
|
|
90
|
+
* @aigne/ideogram bumped to 0.4.2-beta.7
|
|
91
|
+
* @aigne/ollama bumped to 0.7.48-beta.7
|
|
92
|
+
* @aigne/open-router bumped to 0.7.48-beta.7
|
|
93
|
+
* @aigne/openai bumped to 0.16.2-beta.7
|
|
94
|
+
* @aigne/poe bumped to 1.0.28-beta.7
|
|
95
|
+
* @aigne/transport bumped to 0.15.11-beta.7
|
|
96
|
+
* @aigne/xai bumped to 0.7.48-beta.7
|
|
97
|
+
* devDependencies
|
|
98
|
+
* @aigne/test-utils bumped to 0.5.55-beta.7
|
|
99
|
+
|
|
100
|
+
## [0.10.2-beta.6](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.2-beta.5...aigne-hub-v0.10.2-beta.6) (2025-10-15)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Bug Fixes
|
|
104
|
+
|
|
105
|
+
* **blocklet:** tune observability detail list ux ([#618](https://github.com/AIGNE-io/aigne-framework/issues/618)) ([3ad83b6](https://github.com/AIGNE-io/aigne-framework/commit/3ad83b6be347831125806be7bee19294aa85ed58))
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### Dependencies
|
|
109
|
+
|
|
110
|
+
* The following workspace dependencies were updated
|
|
111
|
+
* dependencies
|
|
112
|
+
* @aigne/anthropic bumped to 0.14.2-beta.6
|
|
113
|
+
* @aigne/bedrock bumped to 0.10.7-beta.6
|
|
114
|
+
* @aigne/core bumped to 1.63.0-beta.6
|
|
115
|
+
* @aigne/deepseek bumped to 0.7.48-beta.6
|
|
116
|
+
* @aigne/doubao bumped to 1.1.2-beta.6
|
|
117
|
+
* @aigne/gemini bumped to 0.14.2-beta.6
|
|
118
|
+
* @aigne/ideogram bumped to 0.4.2-beta.6
|
|
119
|
+
* @aigne/ollama bumped to 0.7.48-beta.6
|
|
120
|
+
* @aigne/open-router bumped to 0.7.48-beta.6
|
|
121
|
+
* @aigne/openai bumped to 0.16.2-beta.6
|
|
122
|
+
* @aigne/poe bumped to 1.0.28-beta.6
|
|
123
|
+
* @aigne/transport bumped to 0.15.11-beta.6
|
|
124
|
+
* @aigne/xai bumped to 0.7.48-beta.6
|
|
125
|
+
* devDependencies
|
|
126
|
+
* @aigne/test-utils bumped to 0.5.55-beta.6
|
|
127
|
+
|
|
128
|
+
## [0.10.2-beta.5](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.2-beta.4...aigne-hub-v0.10.2-beta.5) (2025-10-13)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### Dependencies
|
|
132
|
+
|
|
133
|
+
* The following workspace dependencies were updated
|
|
134
|
+
* dependencies
|
|
135
|
+
* @aigne/anthropic bumped to 0.14.2-beta.5
|
|
136
|
+
* @aigne/bedrock bumped to 0.10.7-beta.5
|
|
137
|
+
* @aigne/core bumped to 1.63.0-beta.5
|
|
138
|
+
* @aigne/deepseek bumped to 0.7.48-beta.5
|
|
139
|
+
* @aigne/doubao bumped to 1.1.2-beta.5
|
|
140
|
+
* @aigne/gemini bumped to 0.14.2-beta.5
|
|
141
|
+
* @aigne/ideogram bumped to 0.4.2-beta.5
|
|
142
|
+
* @aigne/ollama bumped to 0.7.48-beta.5
|
|
143
|
+
* @aigne/open-router bumped to 0.7.48-beta.5
|
|
144
|
+
* @aigne/openai bumped to 0.16.2-beta.5
|
|
145
|
+
* @aigne/poe bumped to 1.0.28-beta.5
|
|
146
|
+
* @aigne/transport bumped to 0.15.11-beta.5
|
|
147
|
+
* @aigne/xai bumped to 0.7.48-beta.5
|
|
148
|
+
* devDependencies
|
|
149
|
+
* @aigne/test-utils bumped to 0.5.55-beta.5
|
|
150
|
+
|
|
151
|
+
## [0.10.2-beta.4](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.2-beta.3...aigne-hub-v0.10.2-beta.4) (2025-10-12)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
### Dependencies
|
|
155
|
+
|
|
156
|
+
* The following workspace dependencies were updated
|
|
157
|
+
* dependencies
|
|
158
|
+
* @aigne/anthropic bumped to 0.14.2-beta.4
|
|
159
|
+
* @aigne/bedrock bumped to 0.10.7-beta.4
|
|
160
|
+
* @aigne/core bumped to 1.63.0-beta.4
|
|
161
|
+
* @aigne/deepseek bumped to 0.7.48-beta.4
|
|
162
|
+
* @aigne/doubao bumped to 1.1.2-beta.4
|
|
163
|
+
* @aigne/gemini bumped to 0.14.2-beta.4
|
|
164
|
+
* @aigne/ideogram bumped to 0.4.2-beta.4
|
|
165
|
+
* @aigne/ollama bumped to 0.7.48-beta.4
|
|
166
|
+
* @aigne/open-router bumped to 0.7.48-beta.4
|
|
167
|
+
* @aigne/openai bumped to 0.16.2-beta.4
|
|
168
|
+
* @aigne/poe bumped to 1.0.28-beta.4
|
|
169
|
+
* @aigne/transport bumped to 0.15.11-beta.4
|
|
170
|
+
* @aigne/xai bumped to 0.7.48-beta.4
|
|
171
|
+
* devDependencies
|
|
172
|
+
* @aigne/test-utils bumped to 0.5.55-beta.4
|
|
173
|
+
|
|
174
|
+
## [0.10.2-beta.3](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.2-beta.2...aigne-hub-v0.10.2-beta.3) (2025-10-11)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### Bug Fixes
|
|
178
|
+
|
|
179
|
+
* update aigne hub params ([#607](https://github.com/AIGNE-io/aigne-framework/issues/607)) ([9ea9e0b](https://github.com/AIGNE-io/aigne-framework/commit/9ea9e0bce7119abe496a463ecb779b120d48f4bc))
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
### Dependencies
|
|
183
|
+
|
|
184
|
+
* The following workspace dependencies were updated
|
|
185
|
+
* dependencies
|
|
186
|
+
* @aigne/anthropic bumped to 0.14.2-beta.3
|
|
187
|
+
* @aigne/bedrock bumped to 0.10.7-beta.3
|
|
188
|
+
* @aigne/core bumped to 1.63.0-beta.3
|
|
189
|
+
* @aigne/deepseek bumped to 0.7.48-beta.3
|
|
190
|
+
* @aigne/doubao bumped to 1.1.2-beta.3
|
|
191
|
+
* @aigne/gemini bumped to 0.14.2-beta.3
|
|
192
|
+
* @aigne/ideogram bumped to 0.4.2-beta.3
|
|
193
|
+
* @aigne/ollama bumped to 0.7.48-beta.3
|
|
194
|
+
* @aigne/open-router bumped to 0.7.48-beta.3
|
|
195
|
+
* @aigne/openai bumped to 0.16.2-beta.3
|
|
196
|
+
* @aigne/poe bumped to 1.0.28-beta.3
|
|
197
|
+
* @aigne/transport bumped to 0.15.11-beta.3
|
|
198
|
+
* @aigne/xai bumped to 0.7.48-beta.3
|
|
199
|
+
* devDependencies
|
|
200
|
+
* @aigne/test-utils bumped to 0.5.55-beta.3
|
|
201
|
+
|
|
202
|
+
## [0.10.2-beta.2](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.2-beta.1...aigne-hub-v0.10.2-beta.2) (2025-10-09)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### Dependencies
|
|
206
|
+
|
|
207
|
+
* The following workspace dependencies were updated
|
|
208
|
+
* dependencies
|
|
209
|
+
* @aigne/anthropic bumped to 0.14.2-beta.2
|
|
210
|
+
* @aigne/bedrock bumped to 0.10.7-beta.2
|
|
211
|
+
* @aigne/core bumped to 1.63.0-beta.2
|
|
212
|
+
* @aigne/deepseek bumped to 0.7.48-beta.2
|
|
213
|
+
* @aigne/doubao bumped to 1.1.2-beta.2
|
|
214
|
+
* @aigne/gemini bumped to 0.14.2-beta.2
|
|
215
|
+
* @aigne/ideogram bumped to 0.4.2-beta.2
|
|
216
|
+
* @aigne/ollama bumped to 0.7.48-beta.2
|
|
217
|
+
* @aigne/open-router bumped to 0.7.48-beta.2
|
|
218
|
+
* @aigne/openai bumped to 0.16.2-beta.2
|
|
219
|
+
* @aigne/poe bumped to 1.0.28-beta.2
|
|
220
|
+
* @aigne/transport bumped to 0.15.11-beta.2
|
|
221
|
+
* @aigne/xai bumped to 0.7.48-beta.2
|
|
222
|
+
* devDependencies
|
|
223
|
+
* @aigne/test-utils bumped to 0.5.55-beta.2
|
|
224
|
+
|
|
225
|
+
## [0.10.2-beta.1](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.2-beta...aigne-hub-v0.10.2-beta.1) (2025-10-09)
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
### Dependencies
|
|
229
|
+
|
|
230
|
+
* The following workspace dependencies were updated
|
|
231
|
+
* dependencies
|
|
232
|
+
* @aigne/anthropic bumped to 0.14.2-beta.1
|
|
233
|
+
* @aigne/bedrock bumped to 0.10.7-beta.1
|
|
234
|
+
* @aigne/core bumped to 1.63.0-beta.1
|
|
235
|
+
* @aigne/deepseek bumped to 0.7.48-beta.1
|
|
236
|
+
* @aigne/doubao bumped to 1.1.2-beta.1
|
|
237
|
+
* @aigne/gemini bumped to 0.14.2-beta.1
|
|
238
|
+
* @aigne/ideogram bumped to 0.4.2-beta.1
|
|
239
|
+
* @aigne/ollama bumped to 0.7.48-beta.1
|
|
240
|
+
* @aigne/open-router bumped to 0.7.48-beta.1
|
|
241
|
+
* @aigne/openai bumped to 0.16.2-beta.1
|
|
242
|
+
* @aigne/poe bumped to 1.0.28-beta.1
|
|
243
|
+
* @aigne/transport bumped to 0.15.11-beta.1
|
|
244
|
+
* @aigne/xai bumped to 0.7.48-beta.1
|
|
245
|
+
* devDependencies
|
|
246
|
+
* @aigne/test-utils bumped to 0.5.55-beta.1
|
|
247
|
+
|
|
3
248
|
## [0.10.2-beta](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.1...aigne-hub-v0.10.2-beta) (2025-10-07)
|
|
4
249
|
|
|
5
250
|
|
package/README.md
CHANGED
|
@@ -90,8 +90,8 @@ pnpm add @aigne/aigne-hub @aigne/core
|
|
|
90
90
|
import { AIGNEHubChatModel } from "@aigne/aigne-hub";
|
|
91
91
|
|
|
92
92
|
const model = new AIGNEHubChatModel({
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
baseUrl: "https://your-aigne-hub-instance/ai-kit",
|
|
94
|
+
apiKey: "your-access-key-secret",
|
|
95
95
|
model: "openai/gpt-4o-mini",
|
|
96
96
|
});
|
|
97
97
|
|
|
@@ -122,8 +122,8 @@ AIGNE Hub supports multiple image generation models from different providers. He
|
|
|
122
122
|
import { AIGNEHubImageModel } from "@aigne/aigne-hub";
|
|
123
123
|
|
|
124
124
|
const model = new AIGNEHubImageModel({
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
baseUrl: "https://your-aigne-hub-instance/ai-kit",
|
|
126
|
+
apiKey: "your-access-key-secret",
|
|
127
127
|
model: "openai/dall-e-3",
|
|
128
128
|
});
|
|
129
129
|
|
|
@@ -158,8 +158,8 @@ console.log(result);
|
|
|
158
158
|
import { AIGNEHubImageModel } from "@aigne/aigne-hub";
|
|
159
159
|
|
|
160
160
|
const model = new AIGNEHubImageModel({
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
baseUrl: "https://your-aigne-hub-instance/ai-kit",
|
|
162
|
+
apiKey: "your-access-key-secret",
|
|
163
163
|
model: "google/imagen-4.0-generate-001",
|
|
164
164
|
});
|
|
165
165
|
|
|
@@ -187,7 +187,7 @@ console.log(result);
|
|
|
187
187
|
|
|
188
188
|
**Note:** Gemini image models currently only support base64 format output.
|
|
189
189
|
|
|
190
|
-
**Reference:**
|
|
190
|
+
**Reference:**
|
|
191
191
|
- **Imagen Models**: Refer to [Google GenAI Models.generateImages()](https://googleapis.github.io/js-genai/release_docs/classes/models.Models.html#generateimages)
|
|
192
192
|
- **Gemini Models**: Refer to [Google GenAI Models.generateContent()](https://googleapis.github.io/js-genai/release_docs/classes/models.Models.html#generatecontent)
|
|
193
193
|
|
|
@@ -197,8 +197,8 @@ console.log(result);
|
|
|
197
197
|
import { AIGNEHubImageModel } from "@aigne/aigne-hub";
|
|
198
198
|
|
|
199
199
|
const model = new AIGNEHubImageModel({
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
baseUrl: "https://your-aigne-hub-instance/ai-kit",
|
|
201
|
+
apiKey: "your-access-key-secret",
|
|
202
202
|
model: "ideogram/ideogram-v3",
|
|
203
203
|
});
|
|
204
204
|
|
|
@@ -235,8 +235,8 @@ console.log(result);
|
|
|
235
235
|
import { AIGNEHubChatModel } from "@aigne/aigne-hub";
|
|
236
236
|
|
|
237
237
|
const model = new AIGNEHubChatModel({
|
|
238
|
-
|
|
239
|
-
|
|
238
|
+
baseUrl: "https://your-aigne-hub-instance/ai-kit",
|
|
239
|
+
apiKey: "your-access-key-secret",
|
|
240
240
|
model: "openai/gpt-4o-mini",
|
|
241
241
|
});
|
|
242
242
|
|
package/lib/cjs/utils/model.js
CHANGED
|
@@ -68,7 +68,10 @@ function availableModels() {
|
|
|
68
68
|
{
|
|
69
69
|
name: [gemini_1.GeminiChatModel.name, "google"],
|
|
70
70
|
apiKeyEnvName: ["GEMINI_API_KEY", "GOOGLE_API_KEY"],
|
|
71
|
-
create: (params) => new gemini_1.GeminiChatModel({
|
|
71
|
+
create: (params) => new gemini_1.GeminiChatModel({
|
|
72
|
+
...params,
|
|
73
|
+
clientOptions: { httpOptions: clientOptions.fetchOptions },
|
|
74
|
+
}),
|
|
72
75
|
},
|
|
73
76
|
{
|
|
74
77
|
name: ollama_1.OllamaChatModel.name,
|
package/lib/cjs/utils/type.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ChatModelOptions, ImageModelOptions } from "@aigne/core";
|
|
|
2
2
|
import type { OpenAIChatModelOptions } from "@aigne/openai";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
export declare const aigneHubModelOptionsSchema: z.ZodObject<{
|
|
5
|
-
|
|
5
|
+
baseURL: z.ZodOptional<z.ZodString>;
|
|
6
6
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
7
7
|
model: z.ZodOptional<z.ZodString>;
|
|
8
8
|
modelOptions: z.ZodOptional<z.ZodObject<{
|
|
@@ -30,7 +30,7 @@ export declare const aigneHubModelOptionsSchema: z.ZodObject<{
|
|
|
30
30
|
clientOptions: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
model?: string | undefined;
|
|
33
|
-
|
|
33
|
+
baseURL?: string | undefined;
|
|
34
34
|
apiKey?: string | undefined;
|
|
35
35
|
modelOptions?: {
|
|
36
36
|
parallelToolCalls: boolean;
|
|
@@ -43,7 +43,7 @@ export declare const aigneHubModelOptionsSchema: z.ZodObject<{
|
|
|
43
43
|
clientOptions?: {} | undefined;
|
|
44
44
|
}, {
|
|
45
45
|
model?: string | undefined;
|
|
46
|
-
|
|
46
|
+
baseURL?: string | undefined;
|
|
47
47
|
apiKey?: string | undefined;
|
|
48
48
|
modelOptions?: {
|
|
49
49
|
model?: string | undefined;
|
package/lib/cjs/utils/type.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.aigneHubModelOptionsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.aigneHubModelOptionsSchema = zod_1.z.object({
|
|
6
|
-
|
|
6
|
+
baseURL: zod_1.z.string().optional(),
|
|
7
7
|
apiKey: zod_1.z.string().optional(),
|
|
8
8
|
model: zod_1.z.string().optional(),
|
|
9
9
|
modelOptions: zod_1.z
|
package/lib/dts/utils/type.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ChatModelOptions, ImageModelOptions } from "@aigne/core";
|
|
|
2
2
|
import type { OpenAIChatModelOptions } from "@aigne/openai";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
export declare const aigneHubModelOptionsSchema: z.ZodObject<{
|
|
5
|
-
|
|
5
|
+
baseURL: z.ZodOptional<z.ZodString>;
|
|
6
6
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
7
7
|
model: z.ZodOptional<z.ZodString>;
|
|
8
8
|
modelOptions: z.ZodOptional<z.ZodObject<{
|
|
@@ -30,7 +30,7 @@ export declare const aigneHubModelOptionsSchema: z.ZodObject<{
|
|
|
30
30
|
clientOptions: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
model?: string | undefined;
|
|
33
|
-
|
|
33
|
+
baseURL?: string | undefined;
|
|
34
34
|
apiKey?: string | undefined;
|
|
35
35
|
modelOptions?: {
|
|
36
36
|
parallelToolCalls: boolean;
|
|
@@ -43,7 +43,7 @@ export declare const aigneHubModelOptionsSchema: z.ZodObject<{
|
|
|
43
43
|
clientOptions?: {} | undefined;
|
|
44
44
|
}, {
|
|
45
45
|
model?: string | undefined;
|
|
46
|
-
|
|
46
|
+
baseURL?: string | undefined;
|
|
47
47
|
apiKey?: string | undefined;
|
|
48
48
|
modelOptions?: {
|
|
49
49
|
model?: string | undefined;
|
package/lib/esm/utils/model.js
CHANGED
|
@@ -61,7 +61,10 @@ export function availableModels() {
|
|
|
61
61
|
{
|
|
62
62
|
name: [GeminiChatModel.name, "google"],
|
|
63
63
|
apiKeyEnvName: ["GEMINI_API_KEY", "GOOGLE_API_KEY"],
|
|
64
|
-
create: (params) => new GeminiChatModel({
|
|
64
|
+
create: (params) => new GeminiChatModel({
|
|
65
|
+
...params,
|
|
66
|
+
clientOptions: { httpOptions: clientOptions.fetchOptions },
|
|
67
|
+
}),
|
|
65
68
|
},
|
|
66
69
|
{
|
|
67
70
|
name: OllamaChatModel.name,
|
package/lib/esm/utils/type.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ChatModelOptions, ImageModelOptions } from "@aigne/core";
|
|
|
2
2
|
import type { OpenAIChatModelOptions } from "@aigne/openai";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
export declare const aigneHubModelOptionsSchema: z.ZodObject<{
|
|
5
|
-
|
|
5
|
+
baseURL: z.ZodOptional<z.ZodString>;
|
|
6
6
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
7
7
|
model: z.ZodOptional<z.ZodString>;
|
|
8
8
|
modelOptions: z.ZodOptional<z.ZodObject<{
|
|
@@ -30,7 +30,7 @@ export declare const aigneHubModelOptionsSchema: z.ZodObject<{
|
|
|
30
30
|
clientOptions: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
model?: string | undefined;
|
|
33
|
-
|
|
33
|
+
baseURL?: string | undefined;
|
|
34
34
|
apiKey?: string | undefined;
|
|
35
35
|
modelOptions?: {
|
|
36
36
|
parallelToolCalls: boolean;
|
|
@@ -43,7 +43,7 @@ export declare const aigneHubModelOptionsSchema: z.ZodObject<{
|
|
|
43
43
|
clientOptions?: {} | undefined;
|
|
44
44
|
}, {
|
|
45
45
|
model?: string | undefined;
|
|
46
|
-
|
|
46
|
+
baseURL?: string | undefined;
|
|
47
47
|
apiKey?: string | undefined;
|
|
48
48
|
modelOptions?: {
|
|
49
49
|
model?: string | undefined;
|
package/lib/esm/utils/type.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/aigne-hub",
|
|
3
|
-
"version": "0.10.2-beta",
|
|
3
|
+
"version": "0.10.2-beta.10",
|
|
4
4
|
"description": "AIGNE Hub SDK for integrating with Hub AI models",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -39,20 +39,20 @@
|
|
|
39
39
|
"https-proxy-agent": "^7.0.6",
|
|
40
40
|
"ufo": "^1.6.1",
|
|
41
41
|
"zod": "^3.25.67",
|
|
42
|
-
"@aigne/anthropic": "^0.14.2-beta",
|
|
43
|
-
"@aigne/bedrock": "^0.10.7-beta",
|
|
44
|
-
"@aigne/
|
|
45
|
-
"@aigne/
|
|
46
|
-
"@aigne/doubao": "^1.1.2-beta",
|
|
47
|
-
"@aigne/gemini": "^0.14.2-beta",
|
|
48
|
-
"@aigne/ideogram": "^0.4.2-beta",
|
|
49
|
-
"@aigne/
|
|
50
|
-
"@aigne/
|
|
51
|
-
"@aigne/openai": "^0.16.2-beta",
|
|
52
|
-
"@aigne/poe": "^1.0.28-beta",
|
|
53
|
-
"@aigne/transport": "^0.15.11-beta",
|
|
42
|
+
"@aigne/anthropic": "^0.14.2-beta.10",
|
|
43
|
+
"@aigne/bedrock": "^0.10.7-beta.10",
|
|
44
|
+
"@aigne/core": "^1.63.0-beta.10",
|
|
45
|
+
"@aigne/deepseek": "^0.7.48-beta.10",
|
|
46
|
+
"@aigne/doubao": "^1.1.2-beta.10",
|
|
47
|
+
"@aigne/gemini": "^0.14.2-beta.10",
|
|
48
|
+
"@aigne/ideogram": "^0.4.2-beta.10",
|
|
49
|
+
"@aigne/ollama": "^0.7.48-beta.10",
|
|
50
|
+
"@aigne/open-router": "^0.7.48-beta.10",
|
|
51
|
+
"@aigne/openai": "^0.16.2-beta.10",
|
|
54
52
|
"@aigne/platform-helpers": "^0.6.3",
|
|
55
|
-
"@aigne/
|
|
53
|
+
"@aigne/poe": "^1.0.28-beta.10",
|
|
54
|
+
"@aigne/transport": "^0.15.11-beta.10",
|
|
55
|
+
"@aigne/xai": "^0.7.48-beta.10"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/bun": "^1.2.22",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"npm-run-all": "^4.1.5",
|
|
62
62
|
"rimraf": "^6.0.1",
|
|
63
63
|
"typescript": "^5.9.2",
|
|
64
|
-
"@aigne/test-utils": "^0.5.55-beta"
|
|
64
|
+
"@aigne/test-utils": "^0.5.55-beta.10"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"lint": "tsc --noEmit",
|