1 Commits
Author SHA1 Message Date
c4e8e88782 fix(providers): 支持火山 Agent Plan / Coding Plan,并修正 temperature 参数序列化 (#1069)
* fix(llm): 保留温度参数的简短十进制表示

* feat(asr): 接入火山 Agent Plan 语音识别

* feat(providers): 添加火山套餐服务与模型控制台入口

* docs(volcengine): 保留原有结构并补充套餐配置

* chore(asr): 明确套餐鉴权注释并清理未用导入

* fix(core): require API keys for Ark plan endpoints

Apply the official-endpoint API key requirement to Agent Plan and
Coding Plan across configured state, validation, and LLM construction.
Reuse the Core policy in both credential adapters and preserve optional
keys for custom endpoints and the dedicated plan request addresses.

Add regression coverage for missing, empty, whitespace-only and nonempty
keys, endpoint normalization, and all three LLM builder protocols.

This fix addresses a finding from a user-initiated AI red/blue review
of PR #1069. Implementation assistance: Codex.

Validation on macOS:
- Core: 962 tests passed, 1 ignored; new regressions failed before the fix.
- Linux Host: 57 tests passed (run on macOS, not native Linux validation).
- Tauri: cargo check --locked passed.
- git diff --check passed. Workspace and Tauri format checks report only
  unchanged baseline differences, verified against the parent commit.
- GUI/manual platform acceptance and live plan API calls were not run.

Co-authored-by: Codex <noreply@openai.com>

* test(core): consolidate provider regression coverage

Share the HTTP test setup for omitted custom-provider temperature and
Ark's default 0.3 representation. Keep both request assertions and the
polished response check.

Reduce the Ark builder matrix from 48 to 24 cases: exercise every key
state once per endpoint and keep successful construction for all three
protocols. Production behavior is unchanged.

Validation: focused regressions and the full Core suite pass (961 passed,
1 ignored). Changed files pass rustfmt; workspace formatting still reports
only existing differences outside this change. git diff --check passes.
Matt Standards and Spec reviews reported no findings for this increment.

Implementation assistance: Codex.

Co-authored-by: Codex <noreply@openai.com>

* fix(core): require keys for Ark Messages endpoints

---------

Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Chris233 <h-chris233@outlook.com>
2026-09-13 02:49:42 +08:00