Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,25 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and

[中文版](CHANGELOG.zh.md) · [README](README.md) · [Contributing](CONTRIBUTING.md)

## [2.12.1] - 2026-11-27
## [2.13.0] - 2026-11-27

### Added

- **`bl finetune preset-datasets`**: New command listing the preset datasets that can be mixed into a fine-tuning job for a base model and training type (`--base-model`, `--training-type`, optional `--model-version`). Entries keep the server fields verbatim (`dataset_code`, `dataset_title`, `dataset_desc`); an empty result is a success.
- **Mixed training**: `bl finetune text create` accepts `--augmentation-types` (preset dataset codes, sent lowercased) and `--augmentation-ratio` (one ratio per type, `0.0`–`2.0`; the two flags must be given together). Passing types turns on data augmentation.
- **OSS-mounted datasets**: `--datasets` / `--validations` of `bl finetune text create` accept `oss://<bucket>/<object key>` entries that the service reads in place, skipping local validation, upload and the sample-count pre-check. `--oss-region` sets the bucket region (default `cn-beijing`) and is sent as given.
- **OpenAPI AccessKey browser guide**: `bl auth login --open-api` without `--access-key-id` / `--access-key-secret` opens the console AccessKey setup page (or prints the URL with `--no-browser`) and shows a paste-ready follow-up command; passing both key flags still validates and saves as before. `bl auth status` points to the same guide when OpenAPI credentials are missing.

### Changed

- **`bl finetune train-options` status**: the result carries a `status` that explains a null `training_options`: `configured`, `not_configured` (the model is confirmed in the trainable catalog and has no dynamic options) or `unverified` (no options were returned and the catalog lookup failed). A model id that is not in the catalog now fails with a usage error instead of returning null, and an unrecognized response shape is reported as an error.
- **`bl finetune train-options` unknown model (BREAKING)**: a model id that is not in the trainable catalog and has no dynamic options previously succeeded with `training_options: null`; it now exits with usage exit code `2` and empty stdout.
- **`bl finetune train-options` status**: successful results carry a `status` for a null `training_options`: `configured`, `not_configured` (confirmed in the catalog, no dynamic options), or `unverified` (catalog lookup failed).

### Fixed

- **Required hyper-parameters**: `bl finetune text create` fills an omitted `n_epochs`, `batch_size` or `max_length` from the model's parameter schema defaults; the create API rejects a job when one of them is missing.
- **Command output flush**: stdout/stderr are fully flushed before process exit, so piped or redirected output is no longer truncated when a reader is slow.
- **OpenAPI guide follow-up**: the paste-ready `bl auth login --open-api ...` command keeps the chosen `--console-site` and `--config`, and a slow system browser opener is reported as unconfirmed instead of as a hard failure.

## [2.12.0] - 2026-11-25

Expand Down
8 changes: 6 additions & 2 deletions CHANGELOG.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,25 @@

[English](CHANGELOG.md) · [README](README.zh.md) · [参与贡献](CONTRIBUTING.zh.md)

## [2.12.1] - 2026-11-27
## [2.13.0] - 2026-11-27

### 新增

- **`bl finetune preset-datasets`**:新增命令,查询指定基础模型与训练类型下可混入训练的预置数据集(`--base-model`、`--training-type`、可选 `--model-version`)。结果原样保留服务端字段(`dataset_code`、`dataset_title`、`dataset_desc`);结果为空属于成功。
- **混合训练**:`bl finetune text create` 新增 `--augmentation-types`(预置数据集编码,按小写下发)与 `--augmentation-ratio`(按位置对应每种数据集的混合倍率,范围 0.0~2.0,两者必须同时提供)。传入 `--augmentation-types` 即开启数据增强。
- **OSS 挂数据集**:`bl finetune text create` 的 `--datasets` / `--validations` 支持 `oss://<bucket>/<object key>` 条目,由服务端原地读取,不做本地校验、不上传,并跳过样本数预检。`--oss-region` 指定 Bucket 所在地域(默认 `cn-beijing`),原样下发。
- **OpenAPI AccessKey 浏览器引导**:`bl auth login --open-api` 在未提供 `--access-key-id` / `--access-key-secret` 时打开控制台 AccessKey 配置页(或配合 `--no-browser` 只打印地址),并给出可粘贴的后续命令;同时提供两个 key 参数时仍按原逻辑校验并保存。`bl auth status` 在缺少 OpenAPI 凭证时会指向同一引导入口。

### 变更

- **`bl finetune train-options` 的 status**:结果新增 `status` 字段,说明 `training_options` 为 null 的原因:`configured`(返回了选项)、`not_configured`(模型已在可训练目录中确认存在但没有动态选项)、`unverified`(未返回选项且目录查询失败)。模型 ID 不在目录中时改为报用法错误,不再返回 null;无法识别的响应结构也会报错。
- **`bl finetune train-options` 未知模型(BREAKING)**:目录中找不到且无动态选项的模型,原先会成功返回 `training_options: null`;现在以用法退出码 `2` 结束,stdout 为空。
- **`bl finetune train-options` 的 status**:成功结果新增 `status`,说明 `training_options` 为 null 的原因:`configured`、`not_configured`(已在目录中确认、无动态选项)、`unverified`(目录查询失败)。

### 修复

- **必填超参数**:`bl finetune text create` 未指定 `n_epochs`、`batch_size` 或 `max_length` 时,按模型参数配置中的默认值补齐;创建任务接口在缺少这三项时会拒绝任务。
- **命令输出刷盘**:进程退出前会完整刷完 stdout/stderr,管道或重定向读取较慢时不再截断输出。
- **OpenAPI 引导后续命令**:粘贴用的 `bl auth login --open-api ...` 会保留所选 `--console-site` 与 `--config`;系统打开浏览器过慢时改为报告未能确认,而不再误报为失败。

## [2.12.0] - 2026-11-25

Expand Down
2 changes: 1 addition & 1 deletion packages/bailian-kb-dsh/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bailian-kb-dsh",
"version": "2.12.1",
"version": "2.13.0",
"description": "Bailian knowledge-base tools for DeepSeek Harness: kb_search and kb_chat over the DashScope RAG API, plus the bl CLI management skill.",
"keywords": [
"alibaba-cloud",
Expand Down
2 changes: 1 addition & 1 deletion packages/bailian-memo-dsh/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bailian-memo-dsh",
"version": "2.12.1",
"version": "2.13.0",
"description": "Bailian personal memory for DeepSeek Harness: automatic recall, silent curation, and user-controlled remember/forget.",
"keywords": [
"alibaba-cloud",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bailian-cli",
"version": "2.12.1",
"version": "2.13.0",
"description": "CLI for Aliyun Model Studio (DashScope) AI Platform.",
"keywords": [
"agent",
Expand Down
2 changes: 1 addition & 1 deletion packages/commands/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bailian-cli-commands",
"version": "2.12.1",
"version": "2.13.0",
"description": "Command library for bailian-cli products (knowledge, memory, media, …). See https://www.npmjs.com/package/bailian-cli for usage.",
"homepage": "https://bailian.console.aliyun.com/cli",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bailian-cli-core",
"version": "2.12.1",
"version": "2.13.0",
"description": "Core SDK for bailian-cli. See https://www.npmjs.com/package/bailian-cli for usage.",
"homepage": "https://bailian.console.aliyun.com/cli",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/kscli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "knowledge-studio-cli",
"version": "2.12.1",
"version": "2.13.0",
"description": "Lightweight RAG CLI for Aliyun Model Studio — focused on knowledge-base retrieval.",
"keywords": [
"alibaba-cloud",
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bailian-cli-runtime",
"version": "2.12.1",
"version": "2.13.0",
"description": "Runtime framework for bailian-cli (createCli, registry, args, output, pipeline). See https://www.npmjs.com/package/bailian-cli for usage.",
"homepage": "https://bailian.console.aliyun.com/cli",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion skills/bailian-cli/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: bailian-cli
metadata:
version: "2.12.1"
version: "2.13.0"
requires:
bins: ["bl"]
description: >-
Expand Down
2 changes: 1 addition & 1 deletion skills/bailian-finetune/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: bailian-finetune
metadata:
version: "2.12.1"
version: "2.13.0"
requires:
bins: ["bl"]
description: >-
Expand Down
2 changes: 1 addition & 1 deletion skills/bailian-gen/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: bailian-gen
metadata:
version: "2.12.1"
version: "2.13.0"
requires:
bins: ["bl"]
description: >-
Expand Down
2 changes: 1 addition & 1 deletion skills/bailian-knowledge/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: bailian-knowledge
metadata:
version: "2.12.1"
version: "2.13.0"
requires:
bins: ["bl"]
description: >-
Expand Down
2 changes: 1 addition & 1 deletion skills/bailian-managed-agent/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: bailian-managed-agent
metadata:
version: "2.12.1"
version: "2.13.0"
requires:
bins: ["bl"]
description: >-
Expand Down
2 changes: 1 addition & 1 deletion skills/bailian-memory/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: bailian-memory
metadata:
version: "2.12.1"
version: "2.13.0"
requires:
bins: ["bl"]
description: >-
Expand Down
2 changes: 1 addition & 1 deletion skills/bailian-opd/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: bailian-opd
metadata:
version: "2.12.1"
version: "2.13.0"
requires:
bins: ["bl", "node"]
description: >-
Expand Down
2 changes: 1 addition & 1 deletion skills/bailian-protocol/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: bailian-protocol
metadata:
version: "2.12.1"
version: "2.13.0"
requires:
bins: ["bl"]
description: >-
Expand Down
2 changes: 1 addition & 1 deletion skills/bailian-sandbox/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: bailian-sandbox
metadata:
version: "2.12.1"
version: "2.13.0"
requires:
bins: ["bl"]
description: >-
Expand Down
2 changes: 1 addition & 1 deletion skills/bailian-web-search/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: bailian-web-search
metadata:
version: "2.12.1"
version: "2.13.0"
requires:
bins: ["bl"]
description: >-
Expand Down