@aigne/aigne-hub 0.10.5-beta.6 → 0.10.6-beta
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 +51 -0
- package/lib/cjs/utils/model.js +8 -3
- package/lib/esm/utils/model.js +8 -3
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.10.6-beta](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.5...aigne-hub-v0.10.6-beta) (2025-11-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **model:** normalize model names to support flexible provider/model format ([#712](https://github.com/AIGNE-io/aigne-framework/issues/712)) ([9f23755](https://github.com/AIGNE-io/aigne-framework/commit/9f23755406e1890e4523c778e71fd3d04c9f3e57))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @aigne/anthropic bumped to 0.14.6-beta
|
|
16
|
+
* @aigne/bedrock bumped to 0.10.11-beta
|
|
17
|
+
* @aigne/core bumped to 1.67.0-beta
|
|
18
|
+
* @aigne/deepseek bumped to 0.7.52-beta
|
|
19
|
+
* @aigne/doubao bumped to 1.1.6-beta
|
|
20
|
+
* @aigne/gemini bumped to 0.14.6-beta
|
|
21
|
+
* @aigne/ideogram bumped to 0.4.6-beta
|
|
22
|
+
* @aigne/ollama bumped to 0.7.52-beta
|
|
23
|
+
* @aigne/open-router bumped to 0.7.52-beta
|
|
24
|
+
* @aigne/openai bumped to 0.16.6-beta
|
|
25
|
+
* @aigne/poe bumped to 1.0.32-beta
|
|
26
|
+
* @aigne/transport bumped to 0.15.15-beta
|
|
27
|
+
* @aigne/xai bumped to 0.7.52-beta
|
|
28
|
+
* devDependencies
|
|
29
|
+
* @aigne/test-utils bumped to 0.5.59-beta
|
|
30
|
+
|
|
31
|
+
## [0.10.5](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.5-beta.6...aigne-hub-v0.10.5) (2025-11-07)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Dependencies
|
|
35
|
+
|
|
36
|
+
* The following workspace dependencies were updated
|
|
37
|
+
* dependencies
|
|
38
|
+
* @aigne/anthropic bumped to 0.14.5
|
|
39
|
+
* @aigne/bedrock bumped to 0.10.10
|
|
40
|
+
* @aigne/core bumped to 1.66.0
|
|
41
|
+
* @aigne/deepseek bumped to 0.7.51
|
|
42
|
+
* @aigne/doubao bumped to 1.1.5
|
|
43
|
+
* @aigne/gemini bumped to 0.14.5
|
|
44
|
+
* @aigne/ideogram bumped to 0.4.5
|
|
45
|
+
* @aigne/ollama bumped to 0.7.51
|
|
46
|
+
* @aigne/open-router bumped to 0.7.51
|
|
47
|
+
* @aigne/openai bumped to 0.16.5
|
|
48
|
+
* @aigne/poe bumped to 1.0.31
|
|
49
|
+
* @aigne/transport bumped to 0.15.14
|
|
50
|
+
* @aigne/xai bumped to 0.7.51
|
|
51
|
+
* devDependencies
|
|
52
|
+
* @aigne/test-utils bumped to 0.5.58
|
|
53
|
+
|
|
3
54
|
## [0.10.5-beta.6](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.5-beta.5...aigne-hub-v0.10.5-beta.6) (2025-11-07)
|
|
4
55
|
|
|
5
56
|
|
package/lib/cjs/utils/model.js
CHANGED
|
@@ -194,8 +194,13 @@ function findVideoModel(provider) {
|
|
|
194
194
|
}
|
|
195
195
|
const parseModel = (model) => {
|
|
196
196
|
// replace first ':' with '/' to compatible with `provider:model-name` format
|
|
197
|
-
model = model.replace(/^([\w-]+)
|
|
198
|
-
|
|
199
|
-
|
|
197
|
+
model = model.replace(/^([\w-]+):/, "$1/");
|
|
198
|
+
let { provider, name } = model.match(/(?<provider>[^/]*)(\/(?<name>.*))?/)?.groups ?? {};
|
|
199
|
+
provider = provider?.replace(/-/g, "");
|
|
200
|
+
const match = provider ? findModel(provider)?.match : undefined;
|
|
201
|
+
if (match) {
|
|
202
|
+
return { provider, model: name };
|
|
203
|
+
}
|
|
204
|
+
return { provider: "aignehub", model };
|
|
200
205
|
};
|
|
201
206
|
exports.parseModel = parseModel;
|
package/lib/esm/utils/model.js
CHANGED
|
@@ -185,7 +185,12 @@ export function findVideoModel(provider) {
|
|
|
185
185
|
}
|
|
186
186
|
export const parseModel = (model) => {
|
|
187
187
|
// replace first ':' with '/' to compatible with `provider:model-name` format
|
|
188
|
-
model = model.replace(/^([\w-]+)
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
model = model.replace(/^([\w-]+):/, "$1/");
|
|
189
|
+
let { provider, name } = model.match(/(?<provider>[^/]*)(\/(?<name>.*))?/)?.groups ?? {};
|
|
190
|
+
provider = provider?.replace(/-/g, "");
|
|
191
|
+
const match = provider ? findModel(provider)?.match : undefined;
|
|
192
|
+
if (match) {
|
|
193
|
+
return { provider, model: name };
|
|
194
|
+
}
|
|
195
|
+
return { provider: "aignehub", model };
|
|
191
196
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/aigne-hub",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6-beta",
|
|
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.
|
|
43
|
-
"@aigne/
|
|
44
|
-
"@aigne/
|
|
45
|
-
"@aigne/
|
|
46
|
-
"@aigne/
|
|
47
|
-
"@aigne/
|
|
48
|
-
"@aigne/ideogram": "^0.4.
|
|
49
|
-
"@aigne/open-router": "^0.7.
|
|
50
|
-
"@aigne/
|
|
51
|
-
"@aigne/ollama": "^0.7.51-beta.6",
|
|
42
|
+
"@aigne/anthropic": "^0.14.6-beta",
|
|
43
|
+
"@aigne/core": "^1.67.0-beta",
|
|
44
|
+
"@aigne/bedrock": "^0.10.11-beta",
|
|
45
|
+
"@aigne/deepseek": "^0.7.52-beta",
|
|
46
|
+
"@aigne/doubao": "^1.1.6-beta",
|
|
47
|
+
"@aigne/gemini": "^0.14.6-beta",
|
|
48
|
+
"@aigne/ideogram": "^0.4.6-beta",
|
|
49
|
+
"@aigne/open-router": "^0.7.52-beta",
|
|
50
|
+
"@aigne/ollama": "^0.7.52-beta",
|
|
52
51
|
"@aigne/platform-helpers": "^0.6.3",
|
|
53
|
-
"@aigne/
|
|
54
|
-
"@aigne/
|
|
55
|
-
"@aigne/
|
|
52
|
+
"@aigne/openai": "^0.16.6-beta",
|
|
53
|
+
"@aigne/poe": "^1.0.32-beta",
|
|
54
|
+
"@aigne/transport": "^0.15.15-beta",
|
|
55
|
+
"@aigne/xai": "^0.7.52-beta"
|
|
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.
|
|
64
|
+
"@aigne/test-utils": "^0.5.59-beta"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"lint": "tsc --noEmit",
|