Case Study: One Failing Model Should Not Disable an Entire Channel
When one model fails, state should be persisted at channel-plus-model scope, not disable healthy models.
SalpX API News covers AI model gateways, Claude and GPT integration practice, and developer tooling such as WorkBuddy.
When one model fails, state should be persisted at channel-plus-model scope, not disable healthy models.
A task model without a fixed price may fall back to token pre-authorization; mixing USD and CNY also corrupts reports.
Classify 400, 401, 403, 404, 413, 429 and 5xx before fixing, slowing down, funding or waiting.
A token is not a character count; English approximations do not transfer mechanically to Chinese, and history/tools consume budget.
Use the API root as base_url; do not duplicate /v1 or put a resource path in it.
The first request should validate auth, path, model, response and usage before tools or long history.
The window includes input, history, tools and output; max_tokens is an output budget, not extra space.
An accepted model name does not prove that the request reached the intended model.
The danger is a mismatch between units, pre-authorization and retries.
Before topping up, verify credit units, refunds, keys, records and incident handling.
An unusual price must be decomposed into model, I/O, limits, data and refund checks.
The difference is ownership, compatibility, observability and operations.
The SalpX gateway is OpenAI-SDK compatible. Point base_url at https://www.salpx.com/v1 and you are done.