feat(volcengine-agent-plan): add Volcengine Ark Agent Plan - #7617
Open
liusencomic-cyber wants to merge 3 commits into
Open
liusencomic-cyber wants to merge 3 commits into
liusencomic-cyber wants to merge 3 commits into
Conversation
Contributor
Action items
|
- OpenAI-compatible provider at https://ark.cn-beijing.volces.com/api/plan/v3 - 13 models via base_model against existing lab entries; cost 0 (subscription) - Limits live-measured on the plan endpoint (2026-09-21): output caps from max_tokens rejection messages; context caps bisected where the docs disagree with the wire (doubao-seed-2.1-turbo ~229K, seed-evolving ~917K) - No /models route on this endpoint (404), so the catalog is hand-authored; sources and probe method documented in provider.toml
…ides identical to lab Bot review (anomalyco#7617) action items: - [high] env = ARK_API_KEY shared with pay-as-you-go volcengine would light up both providers at once; use ARK_AGENT_PLAN_API_KEY with the why-comment, matching volcengine-coding-plan's pattern. - [medium] glm-5.3 / glm-5.3-flash / deepseek-v4.1-flash restated the lab [limit] verbatim; drop the identical blocks (override-only files).
liusencomic-cyber
force-pushed
the
feat/volcengine-agent-plan
branch
from
September 21, 2026 06:58
c91c5b5 to
7658846
Compare
Contributor
Action items
|
Second bot-review pass: the remaining [limit] blocks still restated lab-identical keys. Each file now overrides only its measured delta (output caps from max_tokens rejections; context floors from prompt bisection); everything else inherits from the lab.
Contributor
|
No actionable findings. |
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
volcengine-agent-planas an OpenAI-compatible provider athttps://ark.cn-beijing.volces.com/api/plan/v3base_modelagainst existing lab entries (no new lab files needed)cost = 0throughout — Agent Plan is a subscription tier (Small/Medium/Large/Max)Follow-up to #5534, which added the
volcengine-coding-plansubscription provider. Same structure, different plan surface.Why a separate provider
Agent Plan is a subscription tier with its own base URL and its own key space. A plan key is rejected with 401 on the pay-as-you-go
/api/v3(verified 2026-09-21), and per Volcengine's warning on the coding plan, the two billing surfaces must stay distinct — this cannot be abaseURLoverride on the existingvolcengineentry.Model naming
Short console labels (
doubao-seed-2.1-turbo,glm-5.3), which this endpoint accepts; the pay-as-you-go/api/v3requires dated IDs and 404s on short labels. Same convention asvolcengine-coding-plan.Limits are live-measured, not copied from docs
The official plan docs disagree with the wire in several places, so every limit was probed against
POST /api/plan/v3/chat/completionson 2026-09-21:Output caps come from the exact
max_tokensrejection message ("expected a value <= N"):Context caps were bisected with oversized prompts until the request failed with "Total tokens of image and text exceed max message tokens":
(The >1M readings on minimax/kimi are the 1M window plus request overhead, consistent with 1_048_576 total.)
Roster & verification
ListArkAgentPlanModel, docs).bun validatepasses.Deliberately omitted
ark-code-latest— a console-controlled routing pointer with no stable lab model (same reasoning as feat(volcengine-coding-plan): add Volcengine Ark Coding Plan #5534). Happy to add it if maintainers prefer.Reasoning options
Not wire-probed on this endpoint (unlike #5534's n=4-6 per-level probing); each file mirrors the lab entry / coding-plan peer per the relay convention, and says so in a comment.
kimi-k2.7-codedeclaresreasoning_options = []matching its coding-plan peer.