@kreuzberg/liter-llm-node 1.4.0-rc.26 → 1.4.0-rc.27
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
// alef:hash:
|
|
2
|
+
// alef:hash:bceb888bcd835861a8bed9c7f699fb0085bc1c07e9e8a26778bc997f80b54b66
|
|
3
3
|
// To regenerate: alef generate
|
|
4
4
|
// To verify freshness: alef verify --exit-code
|
|
5
5
|
// Issues & docs: https://github.com/kreuzberg-dev/alef
|
|
@@ -484,6 +484,21 @@ export interface JsPageDimensions {
|
|
|
484
484
|
height: number;
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
+
/**
|
|
488
|
+
* Breakdown of tokens used in the prompt portion of a request.
|
|
489
|
+
*
|
|
490
|
+
* `cached_tokens` is included in `Usage::prompt_tokens` — it is *not* an
|
|
491
|
+
* additional charge on top of the prompt token count. When pricing supports
|
|
492
|
+
* a `cache_read_input_token_cost`, the cached portion is billed at the
|
|
493
|
+
* discounted rate and the remainder at the regular input rate.
|
|
494
|
+
*/
|
|
495
|
+
export interface JsPromptTokensDetails {
|
|
496
|
+
/** Cached tokens present in the prompt. Defaults to 0 when absent. */
|
|
497
|
+
cachedTokens: number;
|
|
498
|
+
/** Audio input tokens present in the prompt. Defaults to 0 when absent. */
|
|
499
|
+
audioTokens: number;
|
|
500
|
+
}
|
|
501
|
+
|
|
487
502
|
/** Controls how much reasoning effort the model should use. */
|
|
488
503
|
export declare enum JsReasoningEffort {
|
|
489
504
|
Low = "low",
|
|
@@ -671,6 +686,12 @@ export interface JsUsage {
|
|
|
671
686
|
completionTokens: number;
|
|
672
687
|
/** Total tokens used. Defaults to 0 when absent (some providers omit this). */
|
|
673
688
|
totalTokens: number;
|
|
689
|
+
/**
|
|
690
|
+
* Breakdown of tokens used in the prompt, including cached tokens served
|
|
691
|
+
* at the provider's discounted cache-read rate. Absent when the provider
|
|
692
|
+
* does not return prompt-token details.
|
|
693
|
+
*/
|
|
694
|
+
promptTokensDetails: JsPromptTokensDetails;
|
|
674
695
|
}
|
|
675
696
|
|
|
676
697
|
export declare enum JsUserContent {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED