@ornncompute/cli 1.0.427 → 1.0.428
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 +1 -1
- package/vendor/capabilities/cli.js +23 -16
package/package.json
CHANGED
|
@@ -287,9 +287,8 @@ var createListing = z2.strictObject({
|
|
|
287
287
|
upstream_credential: z2.string().nullable().optional(),
|
|
288
288
|
...rates
|
|
289
289
|
});
|
|
290
|
-
var
|
|
291
|
-
|
|
292
|
-
});
|
|
290
|
+
var listingChanges = createListing.partial();
|
|
291
|
+
var providerListingStatusHelp = "Set active to false to disable your listing. Only Ornn staff can publish it.";
|
|
293
292
|
var requests = z2.strictObject({
|
|
294
293
|
request_id: z2.uuid().optional(),
|
|
295
294
|
public_model_id: text.optional(),
|
|
@@ -527,21 +526,29 @@ var inferenceCapabilities = [
|
|
|
527
526
|
usage: "--body JSON",
|
|
528
527
|
write: true,
|
|
529
528
|
execute: (ctx, { body: body2 }) => staff ? createStaffInferenceListing(ctx.fetch, body2) : createProviderInferenceListing(ctx.fetch, body2)
|
|
530
|
-
}),
|
|
531
|
-
operation({
|
|
532
|
-
command: [...staff ? [] : ["provider"], "listings", "update"],
|
|
533
|
-
staff,
|
|
534
|
-
description: "Update an inference listing. Send only changed fields. Set a nullable field to null to clear it.",
|
|
535
|
-
input: listingId.extend({
|
|
536
|
-
body: staff ? updateListing.extend({
|
|
537
|
-
public_model_id: text.optional()
|
|
538
|
-
}) : updateListing
|
|
539
|
-
}),
|
|
540
|
-
usage: "--listing-id UUID --body JSON",
|
|
541
|
-
write: true,
|
|
542
|
-
execute: (ctx, { listing_id, body: body2 }) => staff ? updateStaffInferenceListing(ctx.fetch, listing_id, body2) : updateProviderInferenceListing(ctx.fetch, listing_id, body2)
|
|
543
529
|
})
|
|
544
530
|
]),
|
|
531
|
+
operation({
|
|
532
|
+
command: ["provider", "listings", "update"],
|
|
533
|
+
description: `Update your inference listing. Send only changed fields and use null to clear nullable fields. ${providerListingStatusHelp}`,
|
|
534
|
+
input: listingId.extend({
|
|
535
|
+
body: listingChanges.omit({ public_model_id: true }).extend({
|
|
536
|
+
active: z2.literal(false, { error: providerListingStatusHelp }).optional()
|
|
537
|
+
})
|
|
538
|
+
}),
|
|
539
|
+
usage: "--listing-id UUID --body JSON",
|
|
540
|
+
write: true,
|
|
541
|
+
execute: (ctx, { listing_id, body: body2 }) => updateProviderInferenceListing(ctx.fetch, listing_id, body2)
|
|
542
|
+
}),
|
|
543
|
+
operation({
|
|
544
|
+
command: ["listings", "update"],
|
|
545
|
+
staff: true,
|
|
546
|
+
description: "Update an inference listing. Send only changed fields. Set a nullable field to null to clear it.",
|
|
547
|
+
input: listingId.extend({ body: listingChanges.extend({ active: z2.boolean().optional() }) }),
|
|
548
|
+
usage: "--listing-id UUID --body JSON",
|
|
549
|
+
write: true,
|
|
550
|
+
execute: (ctx, { listing_id, body: body2 }) => updateStaffInferenceListing(ctx.fetch, listing_id, body2)
|
|
551
|
+
}),
|
|
545
552
|
operation({
|
|
546
553
|
command: ["fees", "show"],
|
|
547
554
|
staff: true,
|