bailian-cli 1.1.2 → 1.2.0
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.md +12 -1
- package/README_CN.md +19 -11
- package/dist/bailian.mjs +139 -126
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -32,7 +32,9 @@ Equip your AI Agent out-of-the-box with these capabilities, composable across co
|
|
|
32
32
|
- **Image & video understanding** — Qwen-VL: long-form video analysis, chart/document parsing, visual reasoning, multilingual OCR
|
|
33
33
|
- **Knowledge base & memory** — Multimodal RAG retrieval and cross-session memory for personalized, coherent dialogue
|
|
34
34
|
- **App calls** — Invoke agents and workflows already published on Aliyun Model Studio
|
|
35
|
+
- **MCP integration** — Orchestrate Bailian MCP servers: list services, inspect tools, and invoke any tool directly from the terminal
|
|
35
36
|
- **Web search** — Real-time internet retrieval for up-to-date, accurate answers
|
|
37
|
+
- **Model recommendation** — Describe your scenario and get best-fit model suggestions; supports scoped search, model comparison, and alternative discovery
|
|
36
38
|
- **Console capabilities** — Browse Bailian apps (`app list`) and check free-tier quota (`usage free`)
|
|
37
39
|
- **Local file auto-upload** — Every URL parameter accepts a local path; uploaded to free temp storage with 48-hour validity
|
|
38
40
|
|
|
@@ -79,7 +81,10 @@ npx skills add modelstudioai/skills --all -g
|
|
|
79
81
|
## Quick Start
|
|
80
82
|
|
|
81
83
|
```bash
|
|
82
|
-
# Authenticate
|
|
84
|
+
# Authenticate, recommended
|
|
85
|
+
bl auth login --console
|
|
86
|
+
|
|
87
|
+
# Or authenticate with an API key
|
|
83
88
|
bl auth login --api-key sk-xxxxx
|
|
84
89
|
|
|
85
90
|
# Chat with Qwen
|
|
@@ -94,6 +99,12 @@ bl image generate --prompt "A cat in a spacesuit" --out-dir ./images/
|
|
|
94
99
|
# Generate a video from local image
|
|
95
100
|
bl video generate --image ./cat.png --prompt "Make the cat move" --download cat.mp4
|
|
96
101
|
|
|
102
|
+
# Model recommendation — find the best model for your use case
|
|
103
|
+
bl advisor recommend --message "I need a visual-understanding chatbot"
|
|
104
|
+
|
|
105
|
+
# Compare specific models
|
|
106
|
+
bl advisor recommend --message "qwen-max vs deepseek-v3 for code generation"
|
|
107
|
+
|
|
97
108
|
# Browser login (required for console capability commands)
|
|
98
109
|
bl auth login --console
|
|
99
110
|
|
package/README_CN.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
[](https://www.typescriptlang.org)
|
|
10
10
|
[](LICENSE)
|
|
11
11
|
|
|
12
|
-
[阿里云百炼 CLI 官方主页](https://bailian.console.aliyun.com/cli) · [English](https://github.com/modelstudioai/cli/blob/main/README.md) · [API 文档](https://help.aliyun.com/zh/model-studio/) · [获取 API Key](https://bailian.console.aliyun.com/
|
|
12
|
+
[阿里云百炼 CLI 官方主页](https://bailian.console.aliyun.com/cli?source_channel=cli_github&) · [English](https://github.com/modelstudioai/cli/blob/main/README.md) · [API 文档](https://help.aliyun.com/zh/model-studio/) · [获取 API Key](https://bailian.console.aliyun.com/cli?source_channel=key_github&)
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
@@ -32,7 +32,9 @@ _专为 AI Agent 打造,每个命令均可作为结构化工具调用。_
|
|
|
32
32
|
- **图像与视频理解** — Qwen-VL:长视频解析、复杂图表与文档识别、视觉推理、多语种 OCR
|
|
33
33
|
- **知识库与记忆库** — 多模态 RAG 检索 + 跨会话记忆,提供个性化连贯对话体验
|
|
34
34
|
- **应用调用** — 调用已发布在阿里云百炼平台上的智能体与工作流应用
|
|
35
|
+
- **MCP 集成** — 统一调度百炼 MCP 服务:列出服务、查看工具、直接在终端调用任意工具
|
|
35
36
|
- **联网搜索** — 实时互联网信息检索,提升回答准确性及时效性
|
|
37
|
+
- **模型推荐** — 描述你的场景,智能推荐最适合的模型;支持限定范围搜索、模型对比和替代发现
|
|
36
38
|
- **控制台能力** — 浏览百炼应用(`app list`),查询模型免费额度(`usage free`)
|
|
37
39
|
- **本地文件自动上传** — 所有 URL 参数同时支持本地路径,免费临时存储 48 小时
|
|
38
40
|
|
|
@@ -92,6 +94,12 @@ bl image generate --prompt "一只穿太空服的猫在火星上" --out-dir ./im
|
|
|
92
94
|
# 图生视频(本地文件自动上传)
|
|
93
95
|
bl video generate --image ./cat.png --prompt "让画面中的猫动起来" --download cat.mp4
|
|
94
96
|
|
|
97
|
+
# 模型推荐 — 根据场景推荐最适合的模型
|
|
98
|
+
bl advisor recommend --message "我要做一个能理解图片的客服机器人"
|
|
99
|
+
|
|
100
|
+
# 对比特定模型
|
|
101
|
+
bl advisor recommend --message "qwen-max 和 deepseek-v3 哪个更适合做代码生成"
|
|
102
|
+
|
|
95
103
|
# 浏览器登录(控制台能力相关命令需要)
|
|
96
104
|
bl auth login --console
|
|
97
105
|
|
|
@@ -100,13 +108,13 @@ bl app list
|
|
|
100
108
|
bl usage free --model qwen3-max
|
|
101
109
|
```
|
|
102
110
|
|
|
103
|
-
> 更多案例与使用场景:[阿里云百炼 CLI 官方主页](https://bailian.console.aliyun.com/cli)
|
|
111
|
+
> 更多案例与使用场景:[阿里云百炼 CLI 官方主页](https://bailian.console.aliyun.com/cli?source_channel=cli_github&)
|
|
104
112
|
|
|
105
113
|
## 认证方式
|
|
106
114
|
|
|
107
115
|
### DashScope API Key
|
|
108
116
|
|
|
109
|
-
大部分命令均需要 API Key。前往 [DashScope 控制台](https://bailian.console.aliyun.com/
|
|
117
|
+
大部分命令均需要 API Key。前往 [DashScope 控制台](https://bailian.console.aliyun.com/cli?source_channel=key_github&) 获取。
|
|
110
118
|
|
|
111
119
|
```bash
|
|
112
120
|
# 方式一:环境变量
|
|
@@ -158,14 +166,14 @@ bl update
|
|
|
158
166
|
|
|
159
167
|
## 相关链接
|
|
160
168
|
|
|
161
|
-
| 资源 | 地址
|
|
162
|
-
| :---------------------- |
|
|
163
|
-
| 阿里云百炼 CLI 官方主页 | https://bailian.console.aliyun.com/cli
|
|
164
|
-
| DashScope API 文档 | https://help.aliyun.com/zh/model-studio/
|
|
165
|
-
| 通义千问模型列表 | https://help.aliyun.com/zh/model-studio/getting-started/models
|
|
166
|
-
| 阿里云百炼控制台 | https://bailian.console.aliyun.com/
|
|
167
|
-
| 获取 API Key | https://bailian.console.aliyun.com/
|
|
168
|
-
| 获取 AccessKey | https://ram.console.aliyun.com/manage/ak
|
|
169
|
+
| 资源 | 地址 |
|
|
170
|
+
| :---------------------- | :---------------------------------------------------------------- |
|
|
171
|
+
| 阿里云百炼 CLI 官方主页 | https://bailian.console.aliyun.com/cli?source_channel=cli_github& |
|
|
172
|
+
| DashScope API 文档 | https://help.aliyun.com/zh/model-studio/ |
|
|
173
|
+
| 通义千问模型列表 | https://help.aliyun.com/zh/model-studio/getting-started/models |
|
|
174
|
+
| 阿里云百炼控制台 | https://bailian.console.aliyun.com/ |
|
|
175
|
+
| 获取 API Key | https://bailian.console.aliyun.com/cli?source_channel=key_github& |
|
|
176
|
+
| 获取 AccessKey | https://ram.console.aliyun.com/manage/ak |
|
|
169
177
|
|
|
170
178
|
## 更新日志
|
|
171
179
|
|