@aigne/aigne-hub 0.10.12 → 0.10.13-beta.1

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 CHANGED
@@ -1,5 +1,56 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.10.13-beta.1](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.13-beta...aigne-hub-v0.10.13-beta.1) (2025-12-05)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * The following workspace dependencies were updated
9
+ * dependencies
10
+ * @aigne/anthropic bumped to 0.14.13-beta.1
11
+ * @aigne/bedrock bumped to 0.10.18-beta.1
12
+ * @aigne/core bumped to 1.70.0-beta.1
13
+ * @aigne/deepseek bumped to 0.7.59-beta.1
14
+ * @aigne/doubao bumped to 1.2.3-beta.1
15
+ * @aigne/gemini bumped to 0.14.13-beta.1
16
+ * @aigne/ideogram bumped to 0.4.13-beta.1
17
+ * @aigne/ollama bumped to 0.7.59-beta.1
18
+ * @aigne/open-router bumped to 0.7.59-beta.1
19
+ * @aigne/openai bumped to 0.16.13-beta.1
20
+ * @aigne/poe bumped to 1.1.3-beta.1
21
+ * @aigne/transport bumped to 0.15.22-beta.1
22
+ * @aigne/xai bumped to 0.7.59-beta.1
23
+ * devDependencies
24
+ * @aigne/test-utils bumped to 0.5.66-beta.1
25
+
26
+ ## [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)
27
+
28
+
29
+ ### Features
30
+
31
+ * **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))
32
+
33
+
34
+ ### Dependencies
35
+
36
+ * The following workspace dependencies were updated
37
+ * dependencies
38
+ * @aigne/anthropic bumped to 0.14.13-beta
39
+ * @aigne/bedrock bumped to 0.10.18-beta
40
+ * @aigne/core bumped to 1.70.0-beta
41
+ * @aigne/deepseek bumped to 0.7.59-beta
42
+ * @aigne/doubao bumped to 1.2.3-beta
43
+ * @aigne/gemini bumped to 0.14.13-beta
44
+ * @aigne/ideogram bumped to 0.4.13-beta
45
+ * @aigne/ollama bumped to 0.7.59-beta
46
+ * @aigne/open-router bumped to 0.7.59-beta
47
+ * @aigne/openai bumped to 0.16.13-beta
48
+ * @aigne/poe bumped to 1.1.3-beta
49
+ * @aigne/transport bumped to 0.15.22-beta
50
+ * @aigne/xai bumped to 0.7.59-beta
51
+ * devDependencies
52
+ * @aigne/test-utils bumped to 0.5.66-beta
53
+
3
54
  ## [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
55
 
5
56
 
@@ -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.model || (await this.credential).model,
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",
@@ -1,4 +1,4 @@
1
- import type { ChatModel, ChatModelInputOptionsWithGetter, ImageModel, ImageModelInputOptions, VideoModel } from "@aigne/core";
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?: ImageModelInputOptions;
20
+ modelOptions?: ImageModelInputOptionsWithGetter;
21
21
  }) => ImageModel;
22
22
  }
23
23
  export interface LoadableVideoModel {
@@ -1,4 +1,4 @@
1
- import type { ChatModel, ChatModelInputOptionsWithGetter, ImageModel, ImageModelInputOptions, VideoModel } from "@aigne/core";
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?: ImageModelInputOptions;
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.model || (await this.credential).model,
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",
@@ -1,4 +1,4 @@
1
- import type { ChatModel, ChatModelInputOptionsWithGetter, ImageModel, ImageModelInputOptions, VideoModel } from "@aigne/core";
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?: ImageModelInputOptions;
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.12",
3
+ "version": "0.10.13-beta.1",
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/deepseek": "^0.7.58",
43
- "@aigne/core": "^1.69.2",
44
- "@aigne/bedrock": "^0.10.17",
45
- "@aigne/doubao": "^1.2.2",
46
- "@aigne/anthropic": "^0.14.12",
47
- "@aigne/ideogram": "^0.4.12",
48
- "@aigne/open-router": "^0.7.58",
49
- "@aigne/gemini": "^0.14.12",
50
- "@aigne/openai": "^0.16.12",
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.1",
43
+ "@aigne/core": "^1.70.0-beta.1",
44
+ "@aigne/deepseek": "^0.7.59-beta.1",
45
+ "@aigne/bedrock": "^0.10.18-beta.1",
46
+ "@aigne/gemini": "^0.14.13-beta.1",
47
+ "@aigne/ideogram": "^0.4.13-beta.1",
48
+ "@aigne/doubao": "^1.2.3-beta.1",
49
+ "@aigne/ollama": "^0.7.59-beta.1",
50
+ "@aigne/open-router": "^0.7.59-beta.1",
51
+ "@aigne/openai": "^0.16.13-beta.1",
54
52
  "@aigne/platform-helpers": "^0.6.5",
55
- "@aigne/xai": "^0.7.58"
53
+ "@aigne/poe": "^1.1.3-beta.1",
54
+ "@aigne/xai": "^0.7.59-beta.1",
55
+ "@aigne/transport": "^0.15.22-beta.1"
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.65"
64
+ "@aigne/test-utils": "^0.5.66-beta.1"
65
65
  },
66
66
  "scripts": {
67
67
  "lint": "tsc --noEmit",