@iflow-ai/iflow-cli-sdk 0.2.0 → 0.2.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/README_CN.md +12 -0
- package/dist/index.d.ts +15 -0
- package/package.json +1 -1
package/README_CN.md
CHANGED
|
@@ -392,6 +392,18 @@ await client.connect();
|
|
|
392
392
|
const models = await client.config.get("models");
|
|
393
393
|
console.log("可用模型:", models);
|
|
394
394
|
|
|
395
|
+
// 查看模型能力
|
|
396
|
+
models.forEach((model) => {
|
|
397
|
+
console.log(`${model.name}:`);
|
|
398
|
+
const caps = model.capabilities;
|
|
399
|
+
if (caps) {
|
|
400
|
+
if (caps.thinking) console.log(" - 支持深度思考");
|
|
401
|
+
if (caps.image) console.log(" - 支持图像理解");
|
|
402
|
+
if (caps.audio) console.log(" - 支持音频理解");
|
|
403
|
+
if (caps.video) console.log(" - 支持视频理解");
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
|
|
395
407
|
const currentModel = await client.config.get("model");
|
|
396
408
|
console.log("当前模型:", currentModel);
|
|
397
409
|
|
package/dist/index.d.ts
CHANGED
|
@@ -551,6 +551,19 @@ export interface Modes {
|
|
|
551
551
|
currentModeId: string;
|
|
552
552
|
availableModes: ModeInfo[];
|
|
553
553
|
}
|
|
554
|
+
/**
|
|
555
|
+
* 模型能力描述接口
|
|
556
|
+
*/
|
|
557
|
+
export interface ModelCapabilities {
|
|
558
|
+
/** 是否支持深度思考/推理模式(如 Chain of Thought) */
|
|
559
|
+
thinking?: boolean;
|
|
560
|
+
/** 是否支持图像输入/理解 */
|
|
561
|
+
image?: boolean;
|
|
562
|
+
/** 是否支持音频输入/理解 */
|
|
563
|
+
audio?: boolean;
|
|
564
|
+
/** 是否支持视频输入/理解 */
|
|
565
|
+
video?: boolean;
|
|
566
|
+
}
|
|
554
567
|
/**
|
|
555
568
|
* 模型信息接口
|
|
556
569
|
*/
|
|
@@ -558,6 +571,8 @@ export interface ModelInfo {
|
|
|
558
571
|
id: string;
|
|
559
572
|
name: string;
|
|
560
573
|
description: string;
|
|
574
|
+
/** 模型支持的能力集合 */
|
|
575
|
+
capabilities?: ModelCapabilities;
|
|
561
576
|
}
|
|
562
577
|
/**
|
|
563
578
|
* 模型集合接口
|