@aigne/aigne-hub 0.8.6 → 0.8.8

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,61 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.8.8](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.8.7...aigne-hub-v0.8.8) (2025-09-05)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * should not return local path from aigne hub service ([#460](https://github.com/AIGNE-io/aigne-framework/issues/460)) ([c959717](https://github.com/AIGNE-io/aigne-framework/commit/c95971774f7e84dbeb3313f60b3e6464e2bb22e4))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @aigne/anthropic bumped to 0.12.1
16
+ * @aigne/bedrock bumped to 0.9.19
17
+ * @aigne/core bumped to 1.58.1
18
+ * @aigne/deepseek bumped to 0.7.38
19
+ * @aigne/doubao bumped to 1.0.32
20
+ * @aigne/gemini bumped to 0.12.1
21
+ * @aigne/ideogram bumped to 0.3.8
22
+ * @aigne/ollama bumped to 0.7.38
23
+ * @aigne/open-router bumped to 0.7.38
24
+ * @aigne/openai bumped to 0.14.1
25
+ * @aigne/poe bumped to 1.0.18
26
+ * @aigne/transport bumped to 0.15.1
27
+ * @aigne/xai bumped to 0.7.38
28
+ * devDependencies
29
+ * @aigne/test-utils bumped to 0.5.45
30
+
31
+ ## [0.8.7](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.8.6...aigne-hub-v0.8.7) (2025-09-05)
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * add model for image mode input params ([#450](https://github.com/AIGNE-io/aigne-framework/issues/450)) ([3500a5a](https://github.com/AIGNE-io/aigne-framework/commit/3500a5ae5d420c7e735f2fa57729a9fe524320e8))
37
+
38
+
39
+ ### Dependencies
40
+
41
+ * The following workspace dependencies were updated
42
+ * dependencies
43
+ * @aigne/anthropic bumped to 0.12.0
44
+ * @aigne/bedrock bumped to 0.9.18
45
+ * @aigne/core bumped to 1.58.0
46
+ * @aigne/deepseek bumped to 0.7.37
47
+ * @aigne/doubao bumped to 1.0.31
48
+ * @aigne/gemini bumped to 0.12.0
49
+ * @aigne/ideogram bumped to 0.3.7
50
+ * @aigne/ollama bumped to 0.7.37
51
+ * @aigne/open-router bumped to 0.7.37
52
+ * @aigne/openai bumped to 0.14.0
53
+ * @aigne/poe bumped to 1.0.17
54
+ * @aigne/transport bumped to 0.15.0
55
+ * @aigne/xai bumped to 0.7.37
56
+ * devDependencies
57
+ * @aigne/test-utils bumped to 0.5.44
58
+
3
59
  ## [0.8.6](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.8.5...aigne-hub-v0.8.6) (2025-09-01)
4
60
 
5
61
 
@@ -56,7 +56,13 @@ class AIGNEHubImageModel extends core_1.ImageModel {
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 response = await (await this.client).__invoke(undefined, input, {
59
+ const response = await (await this.client).__invoke(undefined, {
60
+ ...input,
61
+ modelOptions: {
62
+ ...this.options.modelOptions,
63
+ model: input.model || (await this.credential).model,
64
+ },
65
+ }, {
60
66
  ...options,
61
67
  streaming: false,
62
68
  fetchOptions: {
@@ -63,6 +63,8 @@ class AIGNEHubChatModel extends core_1.ChatModel {
63
63
  ...input.modelOptions,
64
64
  model: input.modelOptions?.model || (await this.credential).model,
65
65
  },
66
+ // Shouldn't use `local` output type for remote AIGNE Hub call, client can not access the remote filesystem
67
+ fileOutputType: core_1.FileOutputType.file,
66
68
  }, {
67
69
  ...options,
68
70
  fetchOptions: {
@@ -53,7 +53,13 @@ export class AIGNEHubImageModel extends ImageModel {
53
53
  BLOCKLET_APP_PID ||
54
54
  ABT_NODE_DID ||
55
55
  `@aigne/aigne-hub:${typeof process !== "undefined" ? nodejs.os.hostname() : "unknown"}`;
56
- const response = await (await this.client).__invoke(undefined, input, {
56
+ const response = await (await this.client).__invoke(undefined, {
57
+ ...input,
58
+ modelOptions: {
59
+ ...this.options.modelOptions,
60
+ model: input.model || (await this.credential).model,
61
+ },
62
+ }, {
57
63
  ...options,
58
64
  streaming: false,
59
65
  fetchOptions: {
@@ -1,4 +1,4 @@
1
- import { ChatModel, } from "@aigne/core";
1
+ import { ChatModel, FileOutputType, } from "@aigne/core";
2
2
  import { checkArguments } from "@aigne/core/utils/type-utils.js";
3
3
  import { nodejs } from "@aigne/platform-helpers/nodejs/index.js";
4
4
  import { BaseClient, } from "@aigne/transport/http-client/base-client.js";
@@ -60,6 +60,8 @@ export class AIGNEHubChatModel extends ChatModel {
60
60
  ...input.modelOptions,
61
61
  model: input.modelOptions?.model || (await this.credential).model,
62
62
  },
63
+ // Shouldn't use `local` output type for remote AIGNE Hub call, client can not access the remote filesystem
64
+ fileOutputType: FileOutputType.file,
63
65
  }, {
64
66
  ...options,
65
67
  fetchOptions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/aigne-hub",
3
- "version": "0.8.6",
3
+ "version": "0.8.8",
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.11.17",
43
- "@aigne/bedrock": "^0.9.17",
44
- "@aigne/deepseek": "^0.7.36",
45
- "@aigne/core": "^1.57.5",
46
- "@aigne/gemini": "^0.11.6",
47
- "@aigne/ideogram": "^0.3.6",
48
- "@aigne/ollama": "^0.7.36",
49
- "@aigne/open-router": "^0.7.36",
50
- "@aigne/doubao": "^1.0.30",
51
- "@aigne/openai": "^0.13.7",
42
+ "@aigne/anthropic": "^0.12.1",
43
+ "@aigne/bedrock": "^0.9.19",
44
+ "@aigne/core": "^1.58.1",
45
+ "@aigne/deepseek": "^0.7.38",
46
+ "@aigne/doubao": "^1.0.32",
47
+ "@aigne/gemini": "^0.12.1",
48
+ "@aigne/ideogram": "^0.3.8",
49
+ "@aigne/ollama": "^0.7.38",
50
+ "@aigne/open-router": "^0.7.38",
51
+ "@aigne/openai": "^0.14.1",
52
52
  "@aigne/platform-helpers": "^0.6.2",
53
- "@aigne/poe": "^1.0.16",
54
- "@aigne/transport": "^0.14.16",
55
- "@aigne/xai": "^0.7.36"
53
+ "@aigne/poe": "^1.0.18",
54
+ "@aigne/xai": "^0.7.38",
55
+ "@aigne/transport": "^0.15.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/bun": "^1.2.18",
@@ -61,7 +61,7 @@
61
61
  "npm-run-all": "^4.1.5",
62
62
  "rimraf": "^6.0.1",
63
63
  "typescript": "^5.8.3",
64
- "@aigne/test-utils": "^0.5.43"
64
+ "@aigne/test-utils": "^0.5.45"
65
65
  },
66
66
  "scripts": {
67
67
  "lint": "tsc --noEmit",