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

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.10.0-beta.3](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.10.0-beta.2...aigne-hub-v0.10.0-beta.3) (2025-09-23)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * add prefer input file type option for image model ([#536](https://github.com/AIGNE-io/aigne-framework/issues/536)) ([3cba8a5](https://github.com/AIGNE-io/aigne-framework/commit/3cba8a5562233a1567b49b6dd5c446c0760f5c4c))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @aigne/anthropic bumped to 0.13.5-beta.2
16
+ * @aigne/bedrock bumped to 0.10.5-beta.2
17
+ * @aigne/core bumped to 1.61.0-beta.2
18
+ * @aigne/deepseek bumped to 0.7.46-beta.3
19
+ * @aigne/doubao bumped to 1.1.0-beta.3
20
+ * @aigne/gemini bumped to 0.14.0-beta.3
21
+ * @aigne/ideogram bumped to 0.4.0-beta.2
22
+ * @aigne/ollama bumped to 0.7.46-beta.3
23
+ * @aigne/open-router bumped to 0.7.46-beta.3
24
+ * @aigne/openai bumped to 0.16.0-beta.3
25
+ * @aigne/poe bumped to 1.0.26-beta.3
26
+ * @aigne/transport bumped to 0.15.9-beta.3
27
+ * @aigne/xai bumped to 0.7.46-beta.3
28
+ * devDependencies
29
+ * @aigne/test-utils bumped to 0.5.53-beta.2
30
+
31
+ ## [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)
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * 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))
37
+
38
+
39
+ ### Dependencies
40
+
41
+ * The following workspace dependencies were updated
42
+ * dependencies
43
+ * @aigne/anthropic bumped to 0.13.5-beta.1
44
+ * @aigne/bedrock bumped to 0.10.5-beta.1
45
+ * @aigne/core bumped to 1.61.0-beta.1
46
+ * @aigne/deepseek bumped to 0.7.46-beta.2
47
+ * @aigne/doubao bumped to 1.1.0-beta.2
48
+ * @aigne/gemini bumped to 0.14.0-beta.2
49
+ * @aigne/ideogram bumped to 0.4.0-beta.1
50
+ * @aigne/ollama bumped to 0.7.46-beta.2
51
+ * @aigne/open-router bumped to 0.7.46-beta.2
52
+ * @aigne/openai bumped to 0.16.0-beta.2
53
+ * @aigne/poe bumped to 1.0.26-beta.2
54
+ * @aigne/transport bumped to 0.15.9-beta.2
55
+ * @aigne/xai bumped to 0.7.46-beta.2
56
+ * devDependencies
57
+ * @aigne/test-utils bumped to 0.5.53-beta.1
58
+
3
59
  ## [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
60
 
5
61
 
@@ -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
+ outputFileType: "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,4 +1,4 @@
1
- import type { ChatModelOptions } from "@aigne/core";
1
+ import type { ChatModelOptions, ImageModelOptions } from "@aigne/core";
2
2
  import type { OpenAIChatModelOptions } from "@aigne/openai";
3
3
  import { z } from "zod";
4
4
  export declare const aigneHubModelOptionsSchema: z.ZodObject<{
@@ -62,8 +62,10 @@ export interface AIGNEHubChatModelOptions extends ChatModelOptions {
62
62
  clientId?: string;
63
63
  };
64
64
  }
65
- export type AIGNEHubImageModelOptions = Omit<AIGNEHubChatModelOptions, "modelOptions"> & {
66
- modelOptions?: {
67
- [key: string]: any;
65
+ export interface AIGNEHubImageModelOptions extends ImageModelOptions {
66
+ baseURL?: string;
67
+ apiKey?: string;
68
+ clientOptions?: OpenAIChatModelOptions["clientOptions"] & {
69
+ clientId?: string;
68
70
  };
69
- };
71
+ }
@@ -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 type { ChatModelOptions } from "@aigne/core";
1
+ import type { ChatModelOptions, ImageModelOptions } from "@aigne/core";
2
2
  import type { OpenAIChatModelOptions } from "@aigne/openai";
3
3
  import { z } from "zod";
4
4
  export declare const aigneHubModelOptionsSchema: z.ZodObject<{
@@ -62,8 +62,10 @@ export interface AIGNEHubChatModelOptions extends ChatModelOptions {
62
62
  clientId?: string;
63
63
  };
64
64
  }
65
- export type AIGNEHubImageModelOptions = Omit<AIGNEHubChatModelOptions, "modelOptions"> & {
66
- modelOptions?: {
67
- [key: string]: any;
65
+ export interface AIGNEHubImageModelOptions extends ImageModelOptions {
66
+ baseURL?: string;
67
+ apiKey?: string;
68
+ clientOptions?: OpenAIChatModelOptions["clientOptions"] & {
69
+ clientId?: string;
68
70
  };
69
- };
71
+ }
@@ -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
+ outputFileType: "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[];
@@ -1,4 +1,4 @@
1
- import type { ChatModelOptions } from "@aigne/core";
1
+ import type { ChatModelOptions, ImageModelOptions } from "@aigne/core";
2
2
  import type { OpenAIChatModelOptions } from "@aigne/openai";
3
3
  import { z } from "zod";
4
4
  export declare const aigneHubModelOptionsSchema: z.ZodObject<{
@@ -62,8 +62,10 @@ export interface AIGNEHubChatModelOptions extends ChatModelOptions {
62
62
  clientId?: string;
63
63
  };
64
64
  }
65
- export type AIGNEHubImageModelOptions = Omit<AIGNEHubChatModelOptions, "modelOptions"> & {
66
- modelOptions?: {
67
- [key: string]: any;
65
+ export interface AIGNEHubImageModelOptions extends ImageModelOptions {
66
+ baseURL?: string;
67
+ apiKey?: string;
68
+ clientOptions?: OpenAIChatModelOptions["clientOptions"] & {
69
+ clientId?: string;
68
70
  };
69
- };
71
+ }
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.3",
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.2",
43
+ "@aigne/core": "^1.61.0-beta.2",
44
+ "@aigne/bedrock": "^0.10.5-beta.2",
45
+ "@aigne/doubao": "^1.1.0-beta.3",
46
+ "@aigne/deepseek": "^0.7.46-beta.3",
47
+ "@aigne/gemini": "^0.14.0-beta.3",
48
+ "@aigne/ideogram": "^0.4.0-beta.2",
49
+ "@aigne/ollama": "^0.7.46-beta.3",
50
+ "@aigne/open-router": "^0.7.46-beta.3",
51
+ "@aigne/openai": "^0.16.0-beta.3",
51
52
  "@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"
53
+ "@aigne/poe": "^1.0.26-beta.3",
54
+ "@aigne/transport": "^0.15.9-beta.3",
55
+ "@aigne/xai": "^0.7.46-beta.3"
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.2"
65
65
  },
66
66
  "scripts": {
67
67
  "lint": "tsc --noEmit",