@ornncompute/cli 1.0.438 → 1.0.440
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/package.json
CHANGED
|
@@ -67,14 +67,15 @@ var inferenceRoutingHeaders = {
|
|
|
67
67
|
listing_id: "X-Ornn-Listing-Id",
|
|
68
68
|
max_input_usd_per_million_tokens: "X-Ornn-Max-Input-USD-Per-Million-Tokens",
|
|
69
69
|
max_cached_input_usd_per_million_tokens: "X-Ornn-Max-Cached-Input-USD-Per-Million-Tokens",
|
|
70
|
-
max_output_usd_per_million_tokens: "X-Ornn-Max-Output-USD-Per-Million-Tokens"
|
|
70
|
+
max_output_usd_per_million_tokens: "X-Ornn-Max-Output-USD-Per-Million-Tokens",
|
|
71
|
+
require_zero_data_retention: "X-Ornn-Require-Zero-Data-Retention"
|
|
71
72
|
};
|
|
72
73
|
function postInference(fetcher, path6, body2, routing = {}, signal) {
|
|
73
74
|
const headers = { "Content-Type": "application/json" };
|
|
74
75
|
for (const key of Object.keys(inferenceRoutingHeaders)) {
|
|
75
76
|
const value = routing[key];
|
|
76
77
|
if (value !== void 0)
|
|
77
|
-
headers[inferenceRoutingHeaders[key]] = value;
|
|
78
|
+
headers[inferenceRoutingHeaders[key]] = String(value);
|
|
78
79
|
}
|
|
79
80
|
return fetcher(path6, {
|
|
80
81
|
method: "POST",
|
|
@@ -269,9 +270,10 @@ var generationRouting = {
|
|
|
269
270
|
listing_id: z2.uuid().optional().describe("Pin an exact offer. Omit to choose by lowest input price, then lowest output price."),
|
|
270
271
|
max_input_usd_per_million_tokens: priceCeiling,
|
|
271
272
|
max_cached_input_usd_per_million_tokens: priceCeiling.describe("Inclusive cached-input ceiling. An offer without a cached rate uses its ordinary input rate."),
|
|
272
|
-
max_output_usd_per_million_tokens: priceCeiling
|
|
273
|
+
max_output_usd_per_million_tokens: priceCeiling,
|
|
274
|
+
require_zero_data_retention: z2.boolean().optional().describe("Only use offers whose provider declares zero data retention.")
|
|
273
275
|
};
|
|
274
|
-
var generationUsage = "--body JSON [--listing-id UUID] [--max-input-usd-per-million-tokens RATE] [--max-cached-input-usd-per-million-tokens RATE] [--max-output-usd-per-million-tokens RATE]";
|
|
276
|
+
var generationUsage = "--body JSON [--listing-id UUID] [--max-input-usd-per-million-tokens RATE] [--max-cached-input-usd-per-million-tokens RATE] [--max-output-usd-per-million-tokens RATE] [--require-zero-data-retention]";
|
|
275
277
|
var page = z2.strictObject({ after: text.optional(), limit });
|
|
276
278
|
var rates = {
|
|
277
279
|
provider_input_usd_per_million_tokens: z2.string().nullable().optional(),
|