@aigne/aigne-hub 0.10.0-beta.1 → 0.10.0-beta.2

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,33 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.10.0-beta.2](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.0-beta.1...aigne-hub-v0.10.0-beta.2) (2025-09-23)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * standardize file parameter naming across models ([#534](https://github.com/AIGNE-io/aigne-framework/issues/534)) ([f159a9d](https://github.com/AIGNE-io/aigne-framework/commit/f159a9d6af21ec0e99641996b150560929845845))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @aigne/anthropic bumped to 0.13.5-beta.1
16
+ * @aigne/bedrock bumped to 0.10.5-beta.1
17
+ * @aigne/core bumped to 1.61.0-beta.1
18
+ * @aigne/deepseek bumped to 0.7.46-beta.2
19
+ * @aigne/doubao bumped to 1.1.0-beta.2
20
+ * @aigne/gemini bumped to 0.14.0-beta.2
21
+ * @aigne/ideogram bumped to 0.4.0-beta.1
22
+ * @aigne/ollama bumped to 0.7.46-beta.2
23
+ * @aigne/open-router bumped to 0.7.46-beta.2
24
+ * @aigne/openai bumped to 0.16.0-beta.2
25
+ * @aigne/poe bumped to 1.0.26-beta.2
26
+ * @aigne/transport bumped to 0.15.9-beta.2
27
+ * @aigne/xai bumped to 0.7.46-beta.2
28
+ * devDependencies
29
+ * @aigne/test-utils bumped to 0.5.53-beta.1
30
+
3
31
  ## [0.10.0-beta.1](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.0-beta...aigne-hub-v0.10.0-beta.1) (2025-09-23)
4
32
 
5
33
 
@@ -60,10 +60,11 @@ class AIGNEHubImageModel extends core_1.ImageModel {
60
60
  ...input,
61
61
  modelOptions: {
62
62
  ...this.options.modelOptions,
63
- model: input.model || (await this.credential).model,
63
+ ...input.modelOptions,
64
+ model: input.modelOptions?.model || (await this.credential).model,
64
65
  },
65
66
  // Shouldn't use `local` output type for remote AIGNE Hub call, client can not access the remote filesystem
66
- outputType: core_1.FileOutputType.file,
67
+ outputType: "file",
67
68
  }, {
68
69
  ...options,
69
70
  streaming: false,
@@ -64,7 +64,7 @@ class AIGNEHubChatModel extends core_1.ChatModel {
64
64
  model: input.modelOptions?.model || (await this.credential).model,
65
65
  },
66
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,
67
+ outputFileType: "file",
68
68
  }, {
69
69
  ...options,
70
70
  fetchOptions: {
@@ -1,10 +1,10 @@
1
- import type { ChatModel, ImageModel, ModelOptions } from "@aigne/core";
1
+ import type { ChatModel, ChatModelInputOptions, ImageModel, ImageModelInputOptions } from "@aigne/core";
2
2
  export interface LoadableModel {
3
3
  name: string | string[];
4
4
  apiKeyEnvName?: string | string[];
5
5
  create: (options: {
6
6
  model?: string;
7
- modelOptions?: ModelOptions;
7
+ modelOptions?: ChatModelInputOptions;
8
8
  apiKey?: string;
9
9
  url?: string;
10
10
  }) => ChatModel;
@@ -17,7 +17,7 @@ export interface LoadableImageModel {
17
17
  apiKey?: string;
18
18
  url?: string;
19
19
  model?: string;
20
- modelOptions?: any;
20
+ modelOptions?: ImageModelInputOptions;
21
21
  }) => ImageModel;
22
22
  }
23
23
  export declare function availableImageModels(): LoadableImageModel[];
@@ -1,10 +1,10 @@
1
- import type { ChatModel, ImageModel, ModelOptions } from "@aigne/core";
1
+ import type { ChatModel, ChatModelInputOptions, ImageModel, ImageModelInputOptions } from "@aigne/core";
2
2
  export interface LoadableModel {
3
3
  name: string | string[];
4
4
  apiKeyEnvName?: string | string[];
5
5
  create: (options: {
6
6
  model?: string;
7
- modelOptions?: ModelOptions;
7
+ modelOptions?: ChatModelInputOptions;
8
8
  apiKey?: string;
9
9
  url?: string;
10
10
  }) => ChatModel;
@@ -17,7 +17,7 @@ export interface LoadableImageModel {
17
17
  apiKey?: string;
18
18
  url?: string;
19
19
  model?: string;
20
- modelOptions?: any;
20
+ modelOptions?: ImageModelInputOptions;
21
21
  }) => ImageModel;
22
22
  }
23
23
  export declare function availableImageModels(): LoadableImageModel[];
@@ -1,4 +1,4 @@
1
- import { FileOutputType, ImageModel, } from "@aigne/core";
1
+ import { ImageModel, } 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";
@@ -57,10 +57,11 @@ export class AIGNEHubImageModel extends ImageModel {
57
57
  ...input,
58
58
  modelOptions: {
59
59
  ...this.options.modelOptions,
60
- model: input.model || (await this.credential).model,
60
+ ...input.modelOptions,
61
+ model: input.modelOptions?.model || (await this.credential).model,
61
62
  },
62
63
  // Shouldn't use `local` output type for remote AIGNE Hub call, client can not access the remote filesystem
63
- outputType: FileOutputType.file,
64
+ outputType: "file",
64
65
  }, {
65
66
  ...options,
66
67
  streaming: false,
@@ -1,4 +1,4 @@
1
- import { ChatModel, FileOutputType, } from "@aigne/core";
1
+ import { ChatModel, } 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";
@@ -61,7 +61,7 @@ export class AIGNEHubChatModel extends ChatModel {
61
61
  model: input.modelOptions?.model || (await this.credential).model,
62
62
  },
63
63
  // Shouldn't use `local` output type for remote AIGNE Hub call, client can not access the remote filesystem
64
- fileOutputType: FileOutputType.file,
64
+ outputFileType: "file",
65
65
  }, {
66
66
  ...options,
67
67
  fetchOptions: {
@@ -1,10 +1,10 @@
1
- import type { ChatModel, ImageModel, ModelOptions } from "@aigne/core";
1
+ import type { ChatModel, ChatModelInputOptions, ImageModel, ImageModelInputOptions } from "@aigne/core";
2
2
  export interface LoadableModel {
3
3
  name: string | string[];
4
4
  apiKeyEnvName?: string | string[];
5
5
  create: (options: {
6
6
  model?: string;
7
- modelOptions?: ModelOptions;
7
+ modelOptions?: ChatModelInputOptions;
8
8
  apiKey?: string;
9
9
  url?: string;
10
10
  }) => ChatModel;
@@ -17,7 +17,7 @@ export interface LoadableImageModel {
17
17
  apiKey?: string;
18
18
  url?: string;
19
19
  model?: string;
20
- modelOptions?: any;
20
+ modelOptions?: ImageModelInputOptions;
21
21
  }) => ImageModel;
22
22
  }
23
23
  export declare function availableImageModels(): LoadableImageModel[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/aigne-hub",
3
- "version": "0.10.0-beta.1",
3
+ "version": "0.10.0-beta.2",
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.13.5-beta",
43
- "@aigne/bedrock": "^0.10.5-beta",
44
- "@aigne/deepseek": "^0.7.46-beta.1",
45
- "@aigne/doubao": "^1.1.0-beta.1",
46
- "@aigne/core": "^1.61.0-beta",
47
- "@aigne/gemini": "^0.14.0-beta.1",
48
- "@aigne/ollama": "^0.7.46-beta.1",
49
- "@aigne/open-router": "^0.7.46-beta.1",
50
- "@aigne/openai": "^0.16.0-beta.1",
42
+ "@aigne/anthropic": "^0.13.5-beta.1",
43
+ "@aigne/bedrock": "^0.10.5-beta.1",
44
+ "@aigne/core": "^1.61.0-beta.1",
45
+ "@aigne/deepseek": "^0.7.46-beta.2",
46
+ "@aigne/doubao": "^1.1.0-beta.2",
47
+ "@aigne/ollama": "^0.7.46-beta.2",
48
+ "@aigne/open-router": "^0.7.46-beta.2",
49
+ "@aigne/gemini": "^0.14.0-beta.2",
50
+ "@aigne/openai": "^0.16.0-beta.2",
51
+ "@aigne/poe": "^1.0.26-beta.2",
52
+ "@aigne/transport": "^0.15.9-beta.2",
53
+ "@aigne/xai": "^0.7.46-beta.2",
51
54
  "@aigne/platform-helpers": "^0.6.3-beta",
52
- "@aigne/ideogram": "^0.4.0-beta",
53
- "@aigne/poe": "^1.0.26-beta.1",
54
- "@aigne/transport": "^0.15.9-beta.1",
55
- "@aigne/xai": "^0.7.46-beta.1"
55
+ "@aigne/ideogram": "^0.4.0-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.53-beta"
64
+ "@aigne/test-utils": "^0.5.53-beta.1"
65
65
  },
66
66
  "scripts": {
67
67
  "lint": "tsc --noEmit",