@shop-os/modelkit 0.32.0 → 0.34.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/CHANGELOG.md +24 -0
- package/README.md +1 -1
- package/dist/catalog.cjs +61 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +4 -3
- package/dist/catalog.d.ts +4 -3
- package/dist/catalog.js +61 -1
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +599 -265
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +598 -265
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/catalog.d.cts
CHANGED
|
@@ -168,7 +168,7 @@ type Lifecycle = "active" | "deprecated" | "retired";
|
|
|
168
168
|
type Surface = "cowork" | "space_builder";
|
|
169
169
|
/** @deprecated use Surface[] */
|
|
170
170
|
type Exposure = Surface[];
|
|
171
|
-
type AdapterId = "ai-sdk-text" | "google-image" | "openai-image" | "google-genai" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "xai-video" | "alibaba" | "luma" | "fish" | "elevenlabs";
|
|
171
|
+
type AdapterId = "ai-sdk-text" | "google-image" | "openai-image" | "google-genai" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "xai-video" | "alibaba" | "luma" | "fish" | "elevenlabs" | "wavespeed";
|
|
172
172
|
/** Gemini image safety threshold, per category, sent only when the caller opts in. */
|
|
173
173
|
type ImageSafetySetting = {
|
|
174
174
|
category: string;
|
|
@@ -1111,7 +1111,7 @@ interface UsageEvent {
|
|
|
1111
1111
|
keySource?: KeySource;
|
|
1112
1112
|
raw?: unknown;
|
|
1113
1113
|
}
|
|
1114
|
-
type ProviderKeyName = "openai" | "anthropic" | "google" | "xai" | "perplexity" | "deepseek" | "moonshot" | "minimax" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "alibaba" | "luma" | "fish" | "elevenlabs" | "cloudflare";
|
|
1114
|
+
type ProviderKeyName = "openai" | "anthropic" | "google" | "xai" | "perplexity" | "deepseek" | "moonshot" | "minimax" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "alibaba" | "luma" | "fish" | "elevenlabs" | "wavespeed" | "cloudflare";
|
|
1115
1115
|
type ProviderKeys = Partial<Record<ProviderKeyName, string>> & {
|
|
1116
1116
|
/** Higgsfield needs the pair; both switch together. */
|
|
1117
1117
|
higgsfieldSecret?: string;
|
|
@@ -1261,7 +1261,7 @@ declare function isListed(row: CatalogModel): boolean;
|
|
|
1261
1261
|
*/
|
|
1262
1262
|
declare const MODELS: CatalogModel[];
|
|
1263
1263
|
|
|
1264
|
-
declare const ADAPTER_IDS: readonly ["ai-sdk-text", "google-image", "openai-image", "google-genai", "ark", "fal", "replicate", "prodia", "higgsfield", "xai-video", "luma", "alibaba", "fish", "elevenlabs"];
|
|
1264
|
+
declare const ADAPTER_IDS: readonly ["ai-sdk-text", "google-image", "openai-image", "google-genai", "ark", "fal", "replicate", "prodia", "higgsfield", "xai-video", "luma", "alibaba", "fish", "elevenlabs", "wavespeed"];
|
|
1265
1265
|
declare const SurfaceSchema: z.ZodEnum<{
|
|
1266
1266
|
cowork: "cowork";
|
|
1267
1267
|
space_builder: "space_builder";
|
|
@@ -1315,6 +1315,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
|
1315
1315
|
luma: "luma";
|
|
1316
1316
|
fish: "fish";
|
|
1317
1317
|
elevenlabs: "elevenlabs";
|
|
1318
|
+
wavespeed: "wavespeed";
|
|
1318
1319
|
}>;
|
|
1319
1320
|
providerModelId: z.ZodString;
|
|
1320
1321
|
lifecycle: z.ZodEnum<{
|
package/dist/catalog.d.ts
CHANGED
|
@@ -168,7 +168,7 @@ type Lifecycle = "active" | "deprecated" | "retired";
|
|
|
168
168
|
type Surface = "cowork" | "space_builder";
|
|
169
169
|
/** @deprecated use Surface[] */
|
|
170
170
|
type Exposure = Surface[];
|
|
171
|
-
type AdapterId = "ai-sdk-text" | "google-image" | "openai-image" | "google-genai" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "xai-video" | "alibaba" | "luma" | "fish" | "elevenlabs";
|
|
171
|
+
type AdapterId = "ai-sdk-text" | "google-image" | "openai-image" | "google-genai" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "xai-video" | "alibaba" | "luma" | "fish" | "elevenlabs" | "wavespeed";
|
|
172
172
|
/** Gemini image safety threshold, per category, sent only when the caller opts in. */
|
|
173
173
|
type ImageSafetySetting = {
|
|
174
174
|
category: string;
|
|
@@ -1111,7 +1111,7 @@ interface UsageEvent {
|
|
|
1111
1111
|
keySource?: KeySource;
|
|
1112
1112
|
raw?: unknown;
|
|
1113
1113
|
}
|
|
1114
|
-
type ProviderKeyName = "openai" | "anthropic" | "google" | "xai" | "perplexity" | "deepseek" | "moonshot" | "minimax" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "alibaba" | "luma" | "fish" | "elevenlabs" | "cloudflare";
|
|
1114
|
+
type ProviderKeyName = "openai" | "anthropic" | "google" | "xai" | "perplexity" | "deepseek" | "moonshot" | "minimax" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "alibaba" | "luma" | "fish" | "elevenlabs" | "wavespeed" | "cloudflare";
|
|
1115
1115
|
type ProviderKeys = Partial<Record<ProviderKeyName, string>> & {
|
|
1116
1116
|
/** Higgsfield needs the pair; both switch together. */
|
|
1117
1117
|
higgsfieldSecret?: string;
|
|
@@ -1261,7 +1261,7 @@ declare function isListed(row: CatalogModel): boolean;
|
|
|
1261
1261
|
*/
|
|
1262
1262
|
declare const MODELS: CatalogModel[];
|
|
1263
1263
|
|
|
1264
|
-
declare const ADAPTER_IDS: readonly ["ai-sdk-text", "google-image", "openai-image", "google-genai", "ark", "fal", "replicate", "prodia", "higgsfield", "xai-video", "luma", "alibaba", "fish", "elevenlabs"];
|
|
1264
|
+
declare const ADAPTER_IDS: readonly ["ai-sdk-text", "google-image", "openai-image", "google-genai", "ark", "fal", "replicate", "prodia", "higgsfield", "xai-video", "luma", "alibaba", "fish", "elevenlabs", "wavespeed"];
|
|
1265
1265
|
declare const SurfaceSchema: z.ZodEnum<{
|
|
1266
1266
|
cowork: "cowork";
|
|
1267
1267
|
space_builder: "space_builder";
|
|
@@ -1315,6 +1315,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
|
1315
1315
|
luma: "luma";
|
|
1316
1316
|
fish: "fish";
|
|
1317
1317
|
elevenlabs: "elevenlabs";
|
|
1318
|
+
wavespeed: "wavespeed";
|
|
1318
1319
|
}>;
|
|
1319
1320
|
providerModelId: z.ZodString;
|
|
1320
1321
|
lifecycle: z.ZodEnum<{
|
package/dist/catalog.js
CHANGED
|
@@ -5147,6 +5147,22 @@ var TEXT_MODELS = [
|
|
|
5147
5147
|
contextWindow: 1e6
|
|
5148
5148
|
}
|
|
5149
5149
|
}),
|
|
5150
|
+
text("claude-sonnet-5-5", "Claude Sonnet 5.5", "claude-sonnet-5-5", {
|
|
5151
|
+
exposure: [],
|
|
5152
|
+
// Sonnet 5.5 rejects a forced tool_choice, which is how Bedrock's SDK asks for JSON on Sonnet 5.
|
|
5153
|
+
providerOptions: { modelkit: { structuredOutputMode: "outputFormat" } },
|
|
5154
|
+
display: {
|
|
5155
|
+
chat: { providerOptions: ANTHROPIC_ADAPTIVE },
|
|
5156
|
+
provider: "anthropic",
|
|
5157
|
+
costTier: 3,
|
|
5158
|
+
description: "Anthropic Claude Sonnet 5.5 balanced model; text and image input, 1M-token context."
|
|
5159
|
+
},
|
|
5160
|
+
capabilities: {
|
|
5161
|
+
reasoning: true,
|
|
5162
|
+
vision: true,
|
|
5163
|
+
contextWindow: 1e6
|
|
5164
|
+
}
|
|
5165
|
+
}),
|
|
5150
5166
|
text("claude-opus-4-8", "Claude Opus 4.8", "claude-opus-4-8", {
|
|
5151
5167
|
exposure: ["cowork", "space_builder"],
|
|
5152
5168
|
aliases: ["claude-opus-4.8", "claude-opus-4", "claude-opus-4.0", "claude-opus-4-20250514"],
|
|
@@ -6454,6 +6470,7 @@ var GROK_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3"];
|
|
|
6454
6470
|
var H3_RATIOS2 = ["21:9", "16:9", "4:3", "1:1", "3:4", "9:16"];
|
|
6455
6471
|
var H3_REFERENCE_RATIOS = ["adaptive", ...H3_RATIOS2];
|
|
6456
6472
|
var WAN_RATIOS = ["adaptive", "16:9", "4:3", "1:1", "3:4", "9:16"];
|
|
6473
|
+
var MAGI_RATIOS = ["21:9", "16:9", "4:3", "1:1", "3:4", "9:16"];
|
|
6457
6474
|
var NEGATIVE_PROMPT = "blur, distort, and low quality";
|
|
6458
6475
|
var FRAMES_EXCLUDE_REFERENCES = { framesExcludeReferences: true };
|
|
6459
6476
|
var KLING_PROMPT2 = { referenceSyntax: "numbered", maxChars: 2500 };
|
|
@@ -7383,6 +7400,48 @@ var VIDEO_MODELS = [
|
|
|
7383
7400
|
},
|
|
7384
7401
|
capabilities: {}
|
|
7385
7402
|
},
|
|
7403
|
+
{
|
|
7404
|
+
// Sand AI MAGI-2 on WaveSpeed. One row for text-, image- (start/end frame) and
|
|
7405
|
+
// reference-to-video; the adapter picks the endpoint from the inputs. WaveSpeed bills
|
|
7406
|
+
// USD 0.08 per requested second, sound and references included.
|
|
7407
|
+
// https://wavespeed.ai/docs/docs-api/sand-ai/magi-2/reference-to-video
|
|
7408
|
+
id: "magi-2",
|
|
7409
|
+
aliases: ["magi2", "sand-magi-2"],
|
|
7410
|
+
label: "MAGI-2",
|
|
7411
|
+
type: "video",
|
|
7412
|
+
adapter: "wavespeed",
|
|
7413
|
+
providerModelId: "sand-ai/magi-2",
|
|
7414
|
+
lifecycle: "active",
|
|
7415
|
+
exposure: ["cowork", "space_builder"],
|
|
7416
|
+
constraints: {
|
|
7417
|
+
aspectRatios: [...MAGI_RATIOS],
|
|
7418
|
+
resolutions: ["1080p"],
|
|
7419
|
+
durations: { min: 4, max: 30 },
|
|
7420
|
+
preferDefaultDuration: true,
|
|
7421
|
+
references: {
|
|
7422
|
+
images: 10,
|
|
7423
|
+
videos: 5,
|
|
7424
|
+
audios: 5,
|
|
7425
|
+
videoSeconds: { min: 2, max: 30, total: 30 },
|
|
7426
|
+
audioSeconds: { min: 2, max: 30, total: 30 }
|
|
7427
|
+
},
|
|
7428
|
+
supports: ["seed", "lastFrame", "generateAudio"],
|
|
7429
|
+
prompt: { referenceSyntax: "descriptive", maxChars: 15e3 },
|
|
7430
|
+
audio: "optional"
|
|
7431
|
+
},
|
|
7432
|
+
defaults: {
|
|
7433
|
+
durationSeconds: 5,
|
|
7434
|
+
resolution: "1080p",
|
|
7435
|
+
generateAudio: true
|
|
7436
|
+
},
|
|
7437
|
+
usage: { ...VIDEO_USAGE3 },
|
|
7438
|
+
pricingKind: "video_per_second",
|
|
7439
|
+
display: {
|
|
7440
|
+
provider: "sand-ai",
|
|
7441
|
+
description: "Sand AI MAGI-2 video model for text-to-video, image-to-video (start/end frame), and reference-to-video from up to 10 images, 5 videos and 5 audio clips, with native audio; 4 to 30 seconds at 1080p."
|
|
7442
|
+
},
|
|
7443
|
+
capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
|
|
7444
|
+
},
|
|
7386
7445
|
...VIDEO_FAMILY_MODELS,
|
|
7387
7446
|
...VIDEO_AVATAR_MODELS,
|
|
7388
7447
|
...LUMA_VIDEO_MODELS
|
|
@@ -8621,7 +8680,8 @@ var ADAPTER_IDS = [
|
|
|
8621
8680
|
"luma",
|
|
8622
8681
|
"alibaba",
|
|
8623
8682
|
"fish",
|
|
8624
|
-
"elevenlabs"
|
|
8683
|
+
"elevenlabs",
|
|
8684
|
+
"wavespeed"
|
|
8625
8685
|
];
|
|
8626
8686
|
var ModelTypeSchema = z3.enum([
|
|
8627
8687
|
"text",
|