@runlot/api 0.1.0-rc.190 → 0.1.0-rc.191
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/dist/schema.d.ts +29 -1
- package/dist/schema.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/schema.d.ts
CHANGED
|
@@ -12577,6 +12577,13 @@ export interface components {
|
|
|
12577
12577
|
* @description The price of cached input. Absent means the model has no cache discount and cached tokens are billed at the full input price
|
|
12578
12578
|
*/
|
|
12579
12579
|
cachedInPerMTok?: number;
|
|
12580
|
+
/**
|
|
12581
|
+
* Format: int64
|
|
12582
|
+
* @description The price of input written to the provider's prompt cache. Absent means a write is billed at the input price
|
|
12583
|
+
*/
|
|
12584
|
+
cacheWritePerMTok?: number;
|
|
12585
|
+
/** @description Every `cache.ttl` that `env.ai.run` accepts for this model. Absent means the model takes no `cache` option */
|
|
12586
|
+
cacheTTLs?: string[];
|
|
12580
12587
|
/**
|
|
12581
12588
|
* @description When true, this is the provider's **list price**, passed straight through with no
|
|
12582
12589
|
* margin added.
|
|
@@ -20171,6 +20178,8 @@ export interface operations {
|
|
|
20171
20178
|
/** @enum {string} */
|
|
20172
20179
|
role: "system" | "user" | "assistant";
|
|
20173
20180
|
content: string;
|
|
20181
|
+
/** @description End a cached prefix after this message. User messages only, on a model whose catalog row lists `cacheTTLs`. */
|
|
20182
|
+
cacheBreakpoint?: boolean;
|
|
20174
20183
|
}[];
|
|
20175
20184
|
/** @description capped at 4,096 by the lane */
|
|
20176
20185
|
maxTokens?: number;
|
|
@@ -20187,6 +20196,17 @@ export interface operations {
|
|
|
20187
20196
|
name?: string;
|
|
20188
20197
|
schema?: Record<string, never>;
|
|
20189
20198
|
};
|
|
20199
|
+
/** @description `env.ai.run`'s explicit prompt cache. Only on a model whose catalog row lists `cacheTTLs`. */
|
|
20200
|
+
cache?: {
|
|
20201
|
+
/** @enum {string} */
|
|
20202
|
+
mode?: "implicit" | "explicit";
|
|
20203
|
+
/** @description one of the model's `cacheTTLs` */
|
|
20204
|
+
ttl?: string;
|
|
20205
|
+
/** @description the provider's prompt cache key — calls that share it are routed together */
|
|
20206
|
+
key?: string;
|
|
20207
|
+
/** @description end a cached prefix after the system prompt */
|
|
20208
|
+
system?: boolean;
|
|
20209
|
+
};
|
|
20190
20210
|
};
|
|
20191
20211
|
};
|
|
20192
20212
|
};
|
|
@@ -20207,8 +20227,16 @@ export interface operations {
|
|
|
20207
20227
|
inputTokens?: number;
|
|
20208
20228
|
/** Format: int64 */
|
|
20209
20229
|
outputTokens?: number;
|
|
20210
|
-
/**
|
|
20230
|
+
/**
|
|
20231
|
+
* Format: int64
|
|
20232
|
+
* @description the part of inputTokens read from the prompt cache
|
|
20233
|
+
*/
|
|
20211
20234
|
cachedInputTokens?: number;
|
|
20235
|
+
/**
|
|
20236
|
+
* Format: int64
|
|
20237
|
+
* @description the part of inputTokens written to the prompt cache
|
|
20238
|
+
*/
|
|
20239
|
+
cacheWriteInputTokens?: number;
|
|
20212
20240
|
};
|
|
20213
20241
|
};
|
|
20214
20242
|
};
|