car-runtime 0.44.0 → 0.45.0
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/index.d.ts +14 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -753,12 +753,25 @@ export class CarRuntime {
|
|
|
753
753
|
* Unified registry (local + remote). Returns JSON array of
|
|
754
754
|
* `{ id, name, provider, capabilities, param_count, size_mb,
|
|
755
755
|
* context_length, available, is_local, max_output_tokens,
|
|
756
|
-
* public_benchmarks }`. `max_output_tokens` is the registry-declared
|
|
756
|
+
* public_benchmarks, cost }`. `max_output_tokens` is the registry-declared
|
|
757
757
|
* per-model output ceiling (`null` when the entry omits it; callers
|
|
758
758
|
* then fall back to a fraction of `context_length`).
|
|
759
759
|
* `public_benchmarks` is `[{ name, score, harness?, source_url?,
|
|
760
760
|
* measured_at? }]` with score on a 0.0–1.0 scale; ships empty in
|
|
761
761
|
* the built-in catalog and is populated via curated registry data.
|
|
762
|
+
* `cost` is the model's declared prices — `{ input_per_mtok,
|
|
763
|
+
* output_per_mtok, cache_read_input_per_mtok, cache_write_input_per_mtok,
|
|
764
|
+
* pricing_tiers, size_mb, ram_mb }` — in USD per 1M tokens, with
|
|
765
|
+
* `pricing_tiers` as `[{ min_prompt_tokens, ...prices }]` prompt-size
|
|
766
|
+
* overrides (highest threshold not above the prompt wins). Every price is
|
|
767
|
+
* nullable and `null` means **unpriced, not free**: a local model declares
|
|
768
|
+
* no prices, and a caller that reads that as `0` publishes a fabricated
|
|
769
|
+
* cost. The managed `parslee/…` alias rows carry the same prices as the
|
|
770
|
+
* upstream row they front, and this response carries no upstream
|
|
771
|
+
* identifier for them. That holds for this catalog view; `models.search`
|
|
772
|
+
* additionally exposes a `family` field which does name the upstream
|
|
773
|
+
* model family. Older daemons omit
|
|
774
|
+
* `cost` entirely; it deserializes to all-`null` rather than failing.
|
|
762
775
|
*/
|
|
763
776
|
listModelsUnified(): string;
|
|
764
777
|
|