@aigne/aigne-hub 0.10.12 → 0.10.13-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 +28 -0
- package/lib/cjs/aigne-hub-image-model.js +0 -1
- package/lib/cjs/aigne-hub-model.js +2 -3
- package/lib/cjs/utils/model.d.ts +2 -2
- package/lib/dts/utils/model.d.ts +2 -2
- package/lib/esm/aigne-hub-image-model.js +0 -1
- package/lib/esm/aigne-hub-model.js +2 -3
- package/lib/esm/utils/model.d.ts +2 -2
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.10.13-beta](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.12...aigne-hub-v0.10.13-beta) (2025-12-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **core:** add nested getter pattern support for model options ([#796](https://github.com/AIGNE-io/aigne-framework/issues/796)) ([824b2fe](https://github.com/AIGNE-io/aigne-framework/commit/824b2fe55cb2a24620e2bb73b470532918fa2996))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @aigne/anthropic bumped to 0.14.13-beta
|
|
16
|
+
* @aigne/bedrock bumped to 0.10.18-beta
|
|
17
|
+
* @aigne/core bumped to 1.70.0-beta
|
|
18
|
+
* @aigne/deepseek bumped to 0.7.59-beta
|
|
19
|
+
* @aigne/doubao bumped to 1.2.3-beta
|
|
20
|
+
* @aigne/gemini bumped to 0.14.13-beta
|
|
21
|
+
* @aigne/ideogram bumped to 0.4.13-beta
|
|
22
|
+
* @aigne/ollama bumped to 0.7.59-beta
|
|
23
|
+
* @aigne/open-router bumped to 0.7.59-beta
|
|
24
|
+
* @aigne/openai bumped to 0.16.13-beta
|
|
25
|
+
* @aigne/poe bumped to 1.1.3-beta
|
|
26
|
+
* @aigne/transport bumped to 0.15.22-beta
|
|
27
|
+
* @aigne/xai bumped to 0.7.59-beta
|
|
28
|
+
* devDependencies
|
|
29
|
+
* @aigne/test-utils bumped to 0.5.66-beta
|
|
30
|
+
|
|
3
31
|
## [0.10.12](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.12-beta.1...aigne-hub-v0.10.12) (2025-11-28)
|
|
4
32
|
|
|
5
33
|
|
|
@@ -59,7 +59,6 @@ class AIGNEHubImageModel extends core_1.ImageModel {
|
|
|
59
59
|
const response = await (await this.client).__invoke(undefined, {
|
|
60
60
|
...input,
|
|
61
61
|
modelOptions: {
|
|
62
|
-
...this.options.modelOptions,
|
|
63
62
|
...input.modelOptions,
|
|
64
63
|
model: input.modelOptions?.model || (await this.credential).model,
|
|
65
64
|
},
|
|
@@ -56,12 +56,11 @@ class AIGNEHubChatModel extends core_1.ChatModel {
|
|
|
56
56
|
BLOCKLET_APP_PID ||
|
|
57
57
|
ABT_NODE_DID ||
|
|
58
58
|
`@aigne/aigne-hub:${typeof process !== "undefined" ? index_js_1.nodejs.os.hostname() : "unknown"}`;
|
|
59
|
-
const modelOptions = await this.getModelOptions(input, options);
|
|
60
59
|
return (await this.client).__invoke(undefined, {
|
|
61
60
|
...input,
|
|
62
61
|
modelOptions: {
|
|
63
|
-
...modelOptions,
|
|
64
|
-
model: modelOptions
|
|
62
|
+
...input.modelOptions,
|
|
63
|
+
model: input.modelOptions?.model || (await this.credential).model,
|
|
65
64
|
},
|
|
66
65
|
// Shouldn't use `local` output type for remote AIGNE Hub call, client can not access the remote filesystem
|
|
67
66
|
outputFileType: "url",
|
package/lib/cjs/utils/model.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChatModel, ChatModelInputOptionsWithGetter, ImageModel,
|
|
1
|
+
import type { ChatModel, ChatModelInputOptionsWithGetter, ImageModel, ImageModelInputOptionsWithGetter, VideoModel } from "@aigne/core";
|
|
2
2
|
export interface LoadableModel {
|
|
3
3
|
name: string | string[];
|
|
4
4
|
apiKeyEnvName?: string | string[];
|
|
@@ -17,7 +17,7 @@ export interface LoadableImageModel {
|
|
|
17
17
|
apiKey?: string;
|
|
18
18
|
baseURL?: string;
|
|
19
19
|
model?: string;
|
|
20
|
-
modelOptions?:
|
|
20
|
+
modelOptions?: ImageModelInputOptionsWithGetter;
|
|
21
21
|
}) => ImageModel;
|
|
22
22
|
}
|
|
23
23
|
export interface LoadableVideoModel {
|
package/lib/dts/utils/model.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChatModel, ChatModelInputOptionsWithGetter, ImageModel,
|
|
1
|
+
import type { ChatModel, ChatModelInputOptionsWithGetter, ImageModel, ImageModelInputOptionsWithGetter, VideoModel } from "@aigne/core";
|
|
2
2
|
export interface LoadableModel {
|
|
3
3
|
name: string | string[];
|
|
4
4
|
apiKeyEnvName?: string | string[];
|
|
@@ -17,7 +17,7 @@ export interface LoadableImageModel {
|
|
|
17
17
|
apiKey?: string;
|
|
18
18
|
baseURL?: string;
|
|
19
19
|
model?: string;
|
|
20
|
-
modelOptions?:
|
|
20
|
+
modelOptions?: ImageModelInputOptionsWithGetter;
|
|
21
21
|
}) => ImageModel;
|
|
22
22
|
}
|
|
23
23
|
export interface LoadableVideoModel {
|
|
@@ -56,7 +56,6 @@ export class AIGNEHubImageModel extends ImageModel {
|
|
|
56
56
|
const response = await (await this.client).__invoke(undefined, {
|
|
57
57
|
...input,
|
|
58
58
|
modelOptions: {
|
|
59
|
-
...this.options.modelOptions,
|
|
60
59
|
...input.modelOptions,
|
|
61
60
|
model: input.modelOptions?.model || (await this.credential).model,
|
|
62
61
|
},
|
|
@@ -53,12 +53,11 @@ export class AIGNEHubChatModel extends ChatModel {
|
|
|
53
53
|
BLOCKLET_APP_PID ||
|
|
54
54
|
ABT_NODE_DID ||
|
|
55
55
|
`@aigne/aigne-hub:${typeof process !== "undefined" ? nodejs.os.hostname() : "unknown"}`;
|
|
56
|
-
const modelOptions = await this.getModelOptions(input, options);
|
|
57
56
|
return (await this.client).__invoke(undefined, {
|
|
58
57
|
...input,
|
|
59
58
|
modelOptions: {
|
|
60
|
-
...modelOptions,
|
|
61
|
-
model: modelOptions
|
|
59
|
+
...input.modelOptions,
|
|
60
|
+
model: input.modelOptions?.model || (await this.credential).model,
|
|
62
61
|
},
|
|
63
62
|
// Shouldn't use `local` output type for remote AIGNE Hub call, client can not access the remote filesystem
|
|
64
63
|
outputFileType: "url",
|
package/lib/esm/utils/model.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChatModel, ChatModelInputOptionsWithGetter, ImageModel,
|
|
1
|
+
import type { ChatModel, ChatModelInputOptionsWithGetter, ImageModel, ImageModelInputOptionsWithGetter, VideoModel } from "@aigne/core";
|
|
2
2
|
export interface LoadableModel {
|
|
3
3
|
name: string | string[];
|
|
4
4
|
apiKeyEnvName?: string | string[];
|
|
@@ -17,7 +17,7 @@ export interface LoadableImageModel {
|
|
|
17
17
|
apiKey?: string;
|
|
18
18
|
baseURL?: string;
|
|
19
19
|
model?: string;
|
|
20
|
-
modelOptions?:
|
|
20
|
+
modelOptions?: ImageModelInputOptionsWithGetter;
|
|
21
21
|
}) => ImageModel;
|
|
22
22
|
}
|
|
23
23
|
export interface LoadableVideoModel {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/aigne-hub",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.13-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/
|
|
43
|
-
"@aigne/
|
|
44
|
-
"@aigne/
|
|
45
|
-
"@aigne/doubao": "^1.2.
|
|
46
|
-
"@aigne/
|
|
47
|
-
"@aigne/
|
|
48
|
-
"@aigne/
|
|
49
|
-
"@aigne/
|
|
50
|
-
"@aigne/
|
|
51
|
-
"@aigne/ollama": "^0.7.58",
|
|
52
|
-
"@aigne/poe": "^1.1.2",
|
|
53
|
-
"@aigne/transport": "^0.15.21",
|
|
42
|
+
"@aigne/anthropic": "^0.14.13-beta",
|
|
43
|
+
"@aigne/bedrock": "^0.10.18-beta",
|
|
44
|
+
"@aigne/core": "^1.70.0-beta",
|
|
45
|
+
"@aigne/doubao": "^1.2.3-beta",
|
|
46
|
+
"@aigne/deepseek": "^0.7.59-beta",
|
|
47
|
+
"@aigne/gemini": "^0.14.13-beta",
|
|
48
|
+
"@aigne/ideogram": "^0.4.13-beta",
|
|
49
|
+
"@aigne/openai": "^0.16.13-beta",
|
|
50
|
+
"@aigne/ollama": "^0.7.59-beta",
|
|
54
51
|
"@aigne/platform-helpers": "^0.6.5",
|
|
55
|
-
"@aigne/
|
|
52
|
+
"@aigne/poe": "^1.1.3-beta",
|
|
53
|
+
"@aigne/transport": "^0.15.22-beta",
|
|
54
|
+
"@aigne/xai": "^0.7.59-beta",
|
|
55
|
+
"@aigne/open-router": "^0.7.59-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.66-beta"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"lint": "tsc --noEmit",
|