feat: add alibaba bailian coding plan provider#514
Open
zdianjiang wants to merge 1 commit intoRightNow-AI:mainfrom
Open
feat: add alibaba bailian coding plan provider#514zdianjiang wants to merge 1 commit intoRightNow-AI:mainfrom
zdianjiang wants to merge 1 commit intoRightNow-AI:mainfrom
Conversation
Signed-off-by: zdianjiang <zdianjiang@gmail.com>
|
直接改配置文件也能用: [default_model] |
|
apikeyenv的名字不要用openai 的标准名;自己随便定一个,如: ALI_CODE_PLAN_KEY ,然后写到 .env 文件内就可以了 |
Author
这个怕是好多人不会 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Alibaba Bailian (百炼) Coding Plan as a new LLM provider with both OpenAI-compatible and Anthropic-compatible endpoints.
Bailian Coding Plan is Alibaba's coding-optimized API service that provides access to multiple models (Kimi K2.5, Qwen3.5, GLM-5, MiniMax, etc.) through a unified endpoint with special DashScope headers.
Changes
Testing
Security
API Key
Environment variable:
BAILIAN_API_KEYProviders
bailian_coding_openaihttps://coding.dashscope.aliyuncs.com/v1bailian_coding_anthropichttps://coding.dashscope.aliyuncs.com/apps/anthropicUsage
OpenAI Protocol:
Anthropic Protocol:
Note
Bailian Coding Plan uses a subscription-based pricing model (not per-token pricing) and is only available for authorized coding agents. API keys start with
sk-sp-.For international users, use the -intl endpoints by setting base_url explicitly: