@shop-os/modelkit 0.1.9 → 0.1.11
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 +41 -3
- package/dist/catalog.cjs +92 -126
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -12
- package/dist/catalog.d.ts +12 -12
- package/dist/catalog.js +92 -126
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +93 -127
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +93 -127
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -39,7 +39,7 @@ interface UpscaleOptions {
|
|
|
39
39
|
faceEnhancementStrength?: number;
|
|
40
40
|
}
|
|
41
41
|
type ModelType = "text" | "image" | "video" | "audio" | "upscale" | "bg-remove";
|
|
42
|
-
type Lifecycle = "active" | "
|
|
42
|
+
type Lifecycle = "active" | "deprecated" | "retired";
|
|
43
43
|
type AdapterId = "ai-sdk-text" | "google-image" | "openai-image" | "google-genai" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "xai-video";
|
|
44
44
|
/** Gemini image safety threshold, per category, sent only when the caller opts in. */
|
|
45
45
|
type ImageSafetySetting = {
|
|
@@ -226,13 +226,18 @@ interface CatalogDisplay {
|
|
|
226
226
|
* after the ordered ones. Set it to surface a new model at the top.
|
|
227
227
|
*/
|
|
228
228
|
sortOrder?: number;
|
|
229
|
+
/**
|
|
230
|
+
* Chat-surface stream tuning for text rows. Display data only: the kit never
|
|
231
|
+
* merges it into a call (row `providerOptions` is merged into every consumer's
|
|
232
|
+
* calls, which is why this lives here instead).
|
|
233
|
+
*/
|
|
234
|
+
chat?: {
|
|
235
|
+
providerOptions?: ProviderOptions;
|
|
236
|
+
temperature?: number;
|
|
237
|
+
};
|
|
229
238
|
}
|
|
230
239
|
/** Capability flags a UI keys off. Absent means false / unknown. */
|
|
231
240
|
interface CatalogCapabilities {
|
|
232
|
-
/** Image rows: generates from a prompt alone. */
|
|
233
|
-
imageGenerate?: boolean;
|
|
234
|
-
/** Image rows: edits or conditions on reference images. */
|
|
235
|
-
imageEdit?: boolean;
|
|
236
241
|
/** Video rows: takes an existing video as the thing to edit or extend. */
|
|
237
242
|
acceptsSourceVideo?: boolean;
|
|
238
243
|
/** Video rows: first/last frames and reference images are mutually exclusive inputs. */
|
|
@@ -240,8 +245,6 @@ interface CatalogCapabilities {
|
|
|
240
245
|
/** Text rows. `reasoning`: the model streams reasoning the UI should surface. */
|
|
241
246
|
reasoning?: boolean;
|
|
242
247
|
vision?: boolean;
|
|
243
|
-
tools?: boolean;
|
|
244
|
-
structuredOutput?: boolean;
|
|
245
248
|
contextWindow?: number;
|
|
246
249
|
}
|
|
247
250
|
interface CatalogModel {
|
|
@@ -261,10 +264,8 @@ interface CatalogModel {
|
|
|
261
264
|
*/
|
|
262
265
|
exposure: "catalog" | "internal";
|
|
263
266
|
constraints: ModelConstraints;
|
|
264
|
-
defaults: Partial<Omit<ImageRequest, "model" | "prompt"> & Omit<VideoRequest, "model" | "prompt"> & Omit<AudioRequest, "model" | "prompt"
|
|
265
|
-
|
|
266
|
-
}>;
|
|
267
|
-
/** Provider options merged under the caller's; text rows carry their reasoning / thinking tuning here. */
|
|
267
|
+
defaults: Partial<Omit<ImageRequest, "model" | "prompt"> & Omit<VideoRequest, "model" | "prompt"> & Omit<AudioRequest, "model" | "prompt">>;
|
|
268
|
+
/** Provider options merged under the caller's on every call. Chat-only tuning belongs in display.chat. */
|
|
268
269
|
providerOptions?: ProviderOptions;
|
|
269
270
|
/**
|
|
270
271
|
* `slug` and `providerLabel` keep an app's historic usage-event names for a
|
|
@@ -273,7 +274,6 @@ interface CatalogModel {
|
|
|
273
274
|
*/
|
|
274
275
|
usage: {
|
|
275
276
|
unit: UsageUnit;
|
|
276
|
-
modality: UsageModality;
|
|
277
277
|
slug?: string;
|
|
278
278
|
providerLabel?: string;
|
|
279
279
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ interface UpscaleOptions {
|
|
|
39
39
|
faceEnhancementStrength?: number;
|
|
40
40
|
}
|
|
41
41
|
type ModelType = "text" | "image" | "video" | "audio" | "upscale" | "bg-remove";
|
|
42
|
-
type Lifecycle = "active" | "
|
|
42
|
+
type Lifecycle = "active" | "deprecated" | "retired";
|
|
43
43
|
type AdapterId = "ai-sdk-text" | "google-image" | "openai-image" | "google-genai" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "xai-video";
|
|
44
44
|
/** Gemini image safety threshold, per category, sent only when the caller opts in. */
|
|
45
45
|
type ImageSafetySetting = {
|
|
@@ -226,13 +226,18 @@ interface CatalogDisplay {
|
|
|
226
226
|
* after the ordered ones. Set it to surface a new model at the top.
|
|
227
227
|
*/
|
|
228
228
|
sortOrder?: number;
|
|
229
|
+
/**
|
|
230
|
+
* Chat-surface stream tuning for text rows. Display data only: the kit never
|
|
231
|
+
* merges it into a call (row `providerOptions` is merged into every consumer's
|
|
232
|
+
* calls, which is why this lives here instead).
|
|
233
|
+
*/
|
|
234
|
+
chat?: {
|
|
235
|
+
providerOptions?: ProviderOptions;
|
|
236
|
+
temperature?: number;
|
|
237
|
+
};
|
|
229
238
|
}
|
|
230
239
|
/** Capability flags a UI keys off. Absent means false / unknown. */
|
|
231
240
|
interface CatalogCapabilities {
|
|
232
|
-
/** Image rows: generates from a prompt alone. */
|
|
233
|
-
imageGenerate?: boolean;
|
|
234
|
-
/** Image rows: edits or conditions on reference images. */
|
|
235
|
-
imageEdit?: boolean;
|
|
236
241
|
/** Video rows: takes an existing video as the thing to edit or extend. */
|
|
237
242
|
acceptsSourceVideo?: boolean;
|
|
238
243
|
/** Video rows: first/last frames and reference images are mutually exclusive inputs. */
|
|
@@ -240,8 +245,6 @@ interface CatalogCapabilities {
|
|
|
240
245
|
/** Text rows. `reasoning`: the model streams reasoning the UI should surface. */
|
|
241
246
|
reasoning?: boolean;
|
|
242
247
|
vision?: boolean;
|
|
243
|
-
tools?: boolean;
|
|
244
|
-
structuredOutput?: boolean;
|
|
245
248
|
contextWindow?: number;
|
|
246
249
|
}
|
|
247
250
|
interface CatalogModel {
|
|
@@ -261,10 +264,8 @@ interface CatalogModel {
|
|
|
261
264
|
*/
|
|
262
265
|
exposure: "catalog" | "internal";
|
|
263
266
|
constraints: ModelConstraints;
|
|
264
|
-
defaults: Partial<Omit<ImageRequest, "model" | "prompt"> & Omit<VideoRequest, "model" | "prompt"> & Omit<AudioRequest, "model" | "prompt"
|
|
265
|
-
|
|
266
|
-
}>;
|
|
267
|
-
/** Provider options merged under the caller's; text rows carry their reasoning / thinking tuning here. */
|
|
267
|
+
defaults: Partial<Omit<ImageRequest, "model" | "prompt"> & Omit<VideoRequest, "model" | "prompt"> & Omit<AudioRequest, "model" | "prompt">>;
|
|
268
|
+
/** Provider options merged under the caller's on every call. Chat-only tuning belongs in display.chat. */
|
|
268
269
|
providerOptions?: ProviderOptions;
|
|
269
270
|
/**
|
|
270
271
|
* `slug` and `providerLabel` keep an app's historic usage-event names for a
|
|
@@ -273,7 +274,6 @@ interface CatalogModel {
|
|
|
273
274
|
*/
|
|
274
275
|
usage: {
|
|
275
276
|
unit: UsageUnit;
|
|
276
|
-
modality: UsageModality;
|
|
277
277
|
slug?: string;
|
|
278
278
|
providerLabel?: string;
|
|
279
279
|
};
|