ac4af582301a4e8a29245dbba767eba31334ddf9
2
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
c81065ca72 |
providers: System One for a custom provider and Ark's pay as you go
A user on Discord (#feedback) found no System One endpoint under a custom provider's More endpoints (OpenAI Responses), no System One choice in its Model settings, and on the Volcengine Ark page neither an endpoint nor any model a routing group could ask as its classifier. System One is asked at POST …/systemone under a provider's Decide base; a model is offered as a group's classifier only when its provider has one. Two causes: - A custom provider kept a Decide URL only when its API was "System One base URL". With a Responses or chat URL there was no field for it, and Save sent "" for one the provider didn't have yet. More endpoints now has "System One URL" for any API, saved as typed. - Ark's pay as you go answers System One on the same key at ark.<region>.volces.com/api/v1, but a provider asked at …/api/v3 (the preset's or a custom one, chat completions or Responses) had no Decide unless the user knew to type it. normalize now sets it (arkSystemOne); a URL the user gave is kept. The Coding and Agent Plans answer System One 404, so they get none, and decideKeys leaves out a key whose plan has none (a Coding Plan key beside a pay-as-you-go one). Ark's one decision model is offered whatever chat models are picked, as Bailian's is (OfferedDeciders). Run on mote at this head's tree (65aacb8f8, on |
||
|
|
f2f75ee4ae |
provider: Volcengine Ark's System One API, in beta, as a decider (axelburks on Discord)
Ark answers System One at https://ark.cn-beijing.volces.com/api/v1/systemone (and /api/v3/systemone) only with the beta header ark-beta-systemone-api: true; without it the reply is a bare 404. The new volcengine-decision preset asks it with an Ark API key, and magpie sets the header (DecideHeaders) on Ark's own host only, ark.<region>.volces.com, in both the gateway's /v1/systemone and the provider's Test. Its decision model, doubao-seed-2-1-lite-260915 (ArkDecision), is kept apart from Ark's chat list as Bailian's is (vendorDecision), since no /models names it. Learnt from the real API on 11-01 with the owner's Ark key (read from magpie's config, never printed): only doubao-seed-2-1-lite-260915 answers; doubao-seed-2-1-pro-260628, doubao-seed-2-0-lite-260428 and deepseek-v4-1-flash are refused 400 "does not support the SystemOne API". The Coding and Agent Plans' paths (/api/coding/v3, /api/plan/v3, their v1s) answer an empty 404 even with the header, so it bills as pay as you go. An image in the request was left unread (a red square came back 0.48, input tokens as for no image), so images are off. The tests' replies are the real response bytes. Run: - Real: a magpie built from this tree on mote, in a sandbox HOME: `magpie provider add volcengine-decision <key>` and `provider test` (decide ok, 413 ms), then `magpie serve` on a free port and POST /v1/systemone through it: a real 200 with Ark's choice. - gofmt -l internal/: clean. go vet darwin, linux, windows of internal/provider and internal/gateway: ok. - mote-run go test -count=1 -timeout 45m ./internal/provider/ ./internal/gateway/ ./internal/gui/ ./internal/cli/ at base |