dsh-xdpool 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -0
- package/README.md +34 -17
- package/assets/account-credits.png +0 -0
- package/assets/account-pool.png +0 -0
- package/assets/aggregate-channels.png +0 -0
- package/assets/automation-panel.png +0 -0
- package/assets/dashboard.png +0 -0
- package/assets/login-channels.png +0 -0
- package/assets/model-picker.png +0 -0
- package/lib/bin.js +9 -1
- package/lib/client.js +346 -30
- package/lib/index.d.ts +30 -0
- package/lib/index.js +517 -157
- package/package.json +1 -1
- package/screenshots.json +2 -1
- package/vendor/channel-pack/pack.js +15 -1
- package/assets/region-tabs.png +0 -0
package/lib/index.d.ts
CHANGED
|
@@ -3398,6 +3398,21 @@ type ChannelLaneEvent = {
|
|
|
3398
3398
|
} | {
|
|
3399
3399
|
kind: 'done';
|
|
3400
3400
|
finishReason: string;
|
|
3401
|
+
} |
|
|
3402
|
+
/**
|
|
3403
|
+
* The turn ended in a failure the host reported — issue #195.
|
|
3404
|
+
*
|
|
3405
|
+
* Without this, `mapFinishReason` folded `kind:'error'` into `'stop'`, the
|
|
3406
|
+
* gateway answered `finish_reason:"stop"` with empty content, and the host read
|
|
3407
|
+
* that as `EMPTY_RESPONSE` — a *retryable* code. A genuine upstream failure
|
|
3408
|
+
* therefore looked like a flaky model: the client retried until backoff ran
|
|
3409
|
+
* out and the user never saw the reason. `message` carries the host's own text
|
|
3410
|
+
* (the status included) so it can reach the client verbatim.
|
|
3411
|
+
*/
|
|
3412
|
+
{
|
|
3413
|
+
kind: 'failed';
|
|
3414
|
+
message: string;
|
|
3415
|
+
status: number | undefined;
|
|
3401
3416
|
};
|
|
3402
3417
|
interface ChannelLane {
|
|
3403
3418
|
rows: () => Promise<readonly ChannelLaneRow[]>;
|
|
@@ -4807,6 +4822,21 @@ export interface Config {
|
|
|
4807
4822
|
* (the aggregate switch does not govern it — it is not an aggregate provider).
|
|
4808
4823
|
*/
|
|
4809
4824
|
freeLane?: boolean;
|
|
4825
|
+
/**
|
|
4826
|
+
* Doubao model ids the user switched OFF on the card — issue #196.
|
|
4827
|
+
*
|
|
4828
|
+
* A DISABLE list, not an allow list, and the direction is the fix. The card
|
|
4829
|
+
* keeps its ticks in the browser's localStorage, which this process cannot
|
|
4830
|
+
* read, so `DoubaoHostAdapter.listModels` published the whole live roster
|
|
4831
|
+
* while the card showed "4/16". The card mirrors the result here.
|
|
4832
|
+
*
|
|
4833
|
+
* An empty list means "nothing switched off" — which is also what every
|
|
4834
|
+
* install starts as, because a settings array nobody has written yet reads as
|
|
4835
|
+
* `[]`. Storing the complement instead would make a fresh install publish an
|
|
4836
|
+
* empty group until the card was opened once: exactly the trap #122 documented
|
|
4837
|
+
* for `enabledModelIds`, and it is avoided by keeping the polarity.
|
|
4838
|
+
*/
|
|
4839
|
+
doubaoDisabledModels?: string[];
|
|
4810
4840
|
}
|
|
4811
4841
|
/** One region's saved model selection. */
|
|
4812
4842
|
export interface ModelSelectionConfig {
|