@aigne/aigne-hub 0.5.2 → 0.6.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 +21 -0
- package/lib/cjs/blocklet-aigne-hub-model.d.ts +1 -1
- package/lib/cjs/blocklet-aigne-hub-model.js +1 -1
- package/lib/cjs/util/model.js +12 -0
- package/lib/dts/blocklet-aigne-hub-model.d.ts +1 -1
- package/lib/esm/blocklet-aigne-hub-model.d.ts +1 -1
- package/lib/esm/blocklet-aigne-hub-model.js +1 -1
- package/lib/esm/util/model.js +12 -0
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.1](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.6.0...aigne-hub-v0.6.1) (2025-08-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **model:** ensure Chat Model client is initialized before use ([#367](https://github.com/AIGNE-io/aigne-framework/issues/367)) ([7543ccb](https://github.com/AIGNE-io/aigne-framework/commit/7543ccb7e1cf5395c4f4e1f51659982b58f5daa1))
|
|
9
|
+
|
|
10
|
+
## [0.6.0](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.5.2...aigne-hub-v0.6.0) (2025-08-14)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **model:** add poe chat model support ([#365](https://github.com/AIGNE-io/aigne-framework/issues/365)) ([b2cce67](https://github.com/AIGNE-io/aigne-framework/commit/b2cce67bdab1c6dec273929bcdd79e1d15410119))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Dependencies
|
|
19
|
+
|
|
20
|
+
* The following workspace dependencies were updated
|
|
21
|
+
* dependencies
|
|
22
|
+
* @aigne/poe bumped to 1.0.0
|
|
23
|
+
|
|
3
24
|
## [0.5.2](https://github.com/AIGNE-io/aigne-framework/compare/aigne-hub-v0.5.1...aigne-hub-v0.5.2) (2025-08-14)
|
|
4
25
|
|
|
5
26
|
|
package/lib/cjs/util/model.js
CHANGED
|
@@ -11,11 +11,13 @@ exports.loadModel = loadModel;
|
|
|
11
11
|
const anthropic_1 = require("@aigne/anthropic");
|
|
12
12
|
const bedrock_1 = require("@aigne/bedrock");
|
|
13
13
|
const deepseek_1 = require("@aigne/deepseek");
|
|
14
|
+
const doubao_1 = require("@aigne/doubao");
|
|
14
15
|
const gemini_1 = require("@aigne/gemini");
|
|
15
16
|
const ollama_1 = require("@aigne/ollama");
|
|
16
17
|
const open_router_1 = require("@aigne/open-router");
|
|
17
18
|
const openai_1 = require("@aigne/openai");
|
|
18
19
|
const index_js_1 = require("@aigne/platform-helpers/nodejs/index.js");
|
|
20
|
+
const poe_1 = require("@aigne/poe");
|
|
19
21
|
const xai_1 = require("@aigne/xai");
|
|
20
22
|
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
21
23
|
const chalk_1 = __importDefault(require("chalk"));
|
|
@@ -82,6 +84,16 @@ function availableModels() {
|
|
|
82
84
|
apiKeyEnvName: "XAI_API_KEY",
|
|
83
85
|
create: (params) => new xai_1.XAIChatModel({ ...params, clientOptions }),
|
|
84
86
|
},
|
|
87
|
+
{
|
|
88
|
+
name: doubao_1.DoubaoChatModel.name,
|
|
89
|
+
apiKeyEnvName: "DOUBAO_API_KEY",
|
|
90
|
+
create: (params) => new doubao_1.DoubaoChatModel({ ...params, clientOptions }),
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: poe_1.PoeChatModel.name,
|
|
94
|
+
apiKeyEnvName: "POE_API_KEY",
|
|
95
|
+
create: (params) => new poe_1.PoeChatModel({ ...params, clientOptions }),
|
|
96
|
+
},
|
|
85
97
|
{
|
|
86
98
|
name: cli_aigne_hub_model_js_1.AIGNEHubChatModel.name,
|
|
87
99
|
apiKeyEnvName: "AIGNE_HUB_API_KEY",
|
package/lib/esm/util/model.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { AnthropicChatModel } from "@aigne/anthropic";
|
|
2
2
|
import { BedrockChatModel } from "@aigne/bedrock";
|
|
3
3
|
import { DeepSeekChatModel } from "@aigne/deepseek";
|
|
4
|
+
import { DoubaoChatModel } from "@aigne/doubao";
|
|
4
5
|
import { GeminiChatModel } from "@aigne/gemini";
|
|
5
6
|
import { OllamaChatModel } from "@aigne/ollama";
|
|
6
7
|
import { OpenRouterChatModel } from "@aigne/open-router";
|
|
7
8
|
import { OpenAIChatModel } from "@aigne/openai";
|
|
8
9
|
import { nodejs } from "@aigne/platform-helpers/nodejs/index.js";
|
|
10
|
+
import { PoeChatModel } from "@aigne/poe";
|
|
9
11
|
import { XAIChatModel } from "@aigne/xai";
|
|
10
12
|
import { NodeHttpHandler, streamCollector } from "@smithy/node-http-handler";
|
|
11
13
|
import chalk from "chalk";
|
|
@@ -72,6 +74,16 @@ export function availableModels() {
|
|
|
72
74
|
apiKeyEnvName: "XAI_API_KEY",
|
|
73
75
|
create: (params) => new XAIChatModel({ ...params, clientOptions }),
|
|
74
76
|
},
|
|
77
|
+
{
|
|
78
|
+
name: DoubaoChatModel.name,
|
|
79
|
+
apiKeyEnvName: "DOUBAO_API_KEY",
|
|
80
|
+
create: (params) => new DoubaoChatModel({ ...params, clientOptions }),
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: PoeChatModel.name,
|
|
84
|
+
apiKeyEnvName: "POE_API_KEY",
|
|
85
|
+
create: (params) => new PoeChatModel({ ...params, clientOptions }),
|
|
86
|
+
},
|
|
75
87
|
{
|
|
76
88
|
name: AIGNEHubChatModel.name,
|
|
77
89
|
apiKeyEnvName: "AIGNE_HUB_API_KEY",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/aigne-hub",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "AIGNE Hub SDK for integrating with Hub AI models",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -55,12 +55,14 @@
|
|
|
55
55
|
"@aigne/bedrock": "^0.9.2",
|
|
56
56
|
"@aigne/core": "^1.50.0",
|
|
57
57
|
"@aigne/default-memory": "^1.1.2",
|
|
58
|
-
"@aigne/
|
|
58
|
+
"@aigne/doubao": "^1.0.14",
|
|
59
59
|
"@aigne/gemini": "^0.9.2",
|
|
60
|
+
"@aigne/deepseek": "^0.7.20",
|
|
60
61
|
"@aigne/ollama": "^0.7.20",
|
|
61
62
|
"@aigne/open-router": "^0.7.20",
|
|
62
63
|
"@aigne/openai": "^0.11.2",
|
|
63
64
|
"@aigne/platform-helpers": "^0.6.2",
|
|
65
|
+
"@aigne/poe": "^1.0.0",
|
|
64
66
|
"@aigne/transport": "^0.14.0",
|
|
65
67
|
"@aigne/xai": "^0.7.20"
|
|
66
68
|
},
|