Skip to content

feat: add Volcano Engine providers and coding plan support#1093

Open
Maaannnn wants to merge 9 commits intoRightNow-AI:mainfrom
Maaannnn:feat/volcano
Open

feat: add Volcano Engine providers and coding plan support#1093
Maaannnn wants to merge 9 commits intoRightNow-AI:mainfrom
Maaannnn:feat/volcano

Conversation

@Maaannnn
Copy link
Copy Markdown

Summary

This resubmits Volcano Engine support for OpenFang and folds in the follow-up requested on #873.

Behavior Changes

  • add volcengine and volcengine_coding to provider discovery, setup flows, and API key validation
  • add Volcano Engine and Coding Plan models to the runtime catalog
  • use provider-prefixed Coding Plan model IDs plus provider-aware lookup/pricing so shared model names do not collide across providers
  • standardize the display name to Volcano Engine
  • stop labeling volcengine_coding zero-price placeholders as free in the init wizard

Review Follow-up

  • addresses the duplicate-ID ambiguity raised on Feat/volcano #873 by namespacing Coding Plan catalog entries as volcengine_coding/... and using provider-aware model/pricing resolution in the catalog, metering, and kernel paths
  • keeps ark-code-latest as the default Coding Plan model for setup flows
  • treats the Coding Plan zero-price placeholders as see provider pricing in the CLI instead of claiming they are free

Tests

  • cargo test -p openfang-runtime model_catalog -- --nocapture
  • cargo test -p openfang-kernel metering -- --nocapture
  • cargo test -p openfang-cli render_as_free -- --nocapture
  • cargo test -p openfang-cli volcengine_coding_zero_cost_models_do_not_render_as_free -- --nocapture
  • cargo test -p openfang-cli provider -- --nocapture (compiled successfully; 0 tests matched the filter)

Not Run

  • cargo test --workspace
  • cargo clippy --workspace --all-targets -- -D warnings
  • live API verification against Volcengine

gaoyiman and others added 8 commits March 20, 2026 16:46
添加火山引擎(Doubao)和火山引擎编码计划作为新的AI提供商支持,包括:
- 在多个文件中添加VOLCENGINE_API_KEY环境变量配置
- 添加volcengine和volcengine_coding提供商信息
- 更新模型目录添加火山引擎相关模型
更新模型目录中的火山引擎编码计划模型,增加新模型并调整现有模型的参数
将火山引擎相关配置移至列表更靠前的位置,并确保其配置完整
…vider

Updated the display name for the Volcano Engine provider across multiple files to remove the "(Doubao)" suffix for consistency.
…ific lookups

- Updated `find_model` and `pricing` methods in `ModelCatalog` to support provider-prefixed IDs, preventing cross-provider pricing errors.
- Introduced `estimate_cost_with_catalog_for_provider` in `MeteringEngine` for accurate cost estimation based on provider.
- Adjusted various references in `OpenFangKernel` to utilize new provider-aware methods for model lookups and cost estimation.

All tests passing. 8 files changed, 50 insertions.
@Maaannnn
Copy link
Copy Markdown
Author

@jaberjaber23 Resubmitted with the duplicate-ID follow-up and targeted test evidence in the PR body. Could you please take another look when you have time? Thank you.

# Conflicts:
#	crates/openfang-cli/src/main.rs
#	crates/openfang-runtime/src/mcp.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant