@shi-yangyang/dsh-token-dashboard 0.1.0 → 0.2.1
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/README.en.md +12 -9
- package/README.md +12 -9
- package/THIRD_PARTY_NOTICES.md +25 -0
- package/client/client.js +18840 -1852
- package/lib/shared/builtin-prices.d.ts +10 -1
- package/lib/shared/builtin-prices.generated.d.ts +1 -1
- package/lib/shared/builtin-prices.generated.js +479 -95
- package/lib/shared/builtin-prices.js +25 -1
- package/lib/shared/pricing.d.ts +2 -0
- package/lib/shared/pricing.js +14 -1
- package/package.json +11 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* rate in the dashboard.
|
|
8
8
|
*/
|
|
9
9
|
import type { ModelPrice } from './pricing.js';
|
|
10
|
-
export declare const BUILTIN_PRICE_UPDATED = "2026-
|
|
10
|
+
export declare const BUILTIN_PRICE_UPDATED = "2026-11-09";
|
|
11
11
|
export declare const BUILTIN_PRICE_SOURCE = "DeepSeek official + OpenRouter snapshot";
|
|
12
12
|
export interface BuiltinPriceEntry {
|
|
13
13
|
id: string;
|
|
@@ -21,6 +21,15 @@ export declare const BUILTIN_PRICES: readonly BuiltinPriceEntry[];
|
|
|
21
21
|
* date stamp, and the canonical alias.
|
|
22
22
|
*/
|
|
23
23
|
export declare function modelKeyCandidates(model: string): string[];
|
|
24
|
+
/** One row for the Rates page: every built-in family and OpenRouter id. */
|
|
25
|
+
export interface BuiltinPriceRow {
|
|
26
|
+
key: string;
|
|
27
|
+
provider: string;
|
|
28
|
+
model: string;
|
|
29
|
+
price: ModelPrice;
|
|
30
|
+
}
|
|
31
|
+
/** All built-in prices, including the hand-maintained DeepSeek families. */
|
|
32
|
+
export declare function builtinPriceRows(): BuiltinPriceRow[];
|
|
24
33
|
/** Resolve a built-in list price by model id, ignoring provider/date variants. */
|
|
25
34
|
export declare function builtinPriceFor(model: string): ModelPrice | undefined;
|
|
26
35
|
/** Prefer standard entries over batch and free variants when both match. */
|