@sogni-ai/sogni-client 5.64.0 → 5.65.1
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/AGENTS.md +8 -0
- package/CHANGELOG.md +20 -0
- package/README.md +9 -0
- package/dist/ApiClient/WebSocketClient/BrowserWebSocketClient/ChannelCoordinator.d.ts +9 -0
- package/dist/ApiClient/WebSocketClient/BrowserWebSocketClient/ChannelCoordinator.js +45 -3
- package/dist/ApiClient/WebSocketClient/BrowserWebSocketClient/ChannelCoordinator.js.map +1 -1
- package/dist/Chat/_hostedToolsManifest.generated.js +7 -5
- package/dist/Chat/_hostedToolsManifest.generated.js.map +1 -1
- package/dist/Chat/index.js +6 -3
- package/dist/Chat/index.js.map +1 -1
- package/dist/Chat/modelRouting.d.ts +2 -0
- package/dist/Chat/modelRouting.js +3 -1
- package/dist/Chat/modelRouting.js.map +1 -1
- package/dist/Projects/createJobRequestMessage.js +7 -3
- package/dist/Projects/createJobRequestMessage.js.map +1 -1
- package/dist/lib/validation.js +6 -0
- package/dist/lib/validation.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist-esm/ApiClient/WebSocketClient/BrowserWebSocketClient/ChannelCoordinator.js +45 -3
- package/dist-esm/ApiClient/WebSocketClient/BrowserWebSocketClient/ChannelCoordinator.js.map +1 -1
- package/dist-esm/Chat/_hostedToolsManifest.generated.js +7 -5
- package/dist-esm/Chat/_hostedToolsManifest.generated.js.map +1 -1
- package/dist-esm/Chat/index.js +6 -3
- package/dist-esm/Chat/index.js.map +1 -1
- package/dist-esm/Chat/modelRouting.js +3 -1
- package/dist-esm/Chat/modelRouting.js.map +1 -1
- package/dist-esm/Projects/createJobRequestMessage.js +7 -3
- package/dist-esm/Projects/createJobRequestMessage.js.map +1 -1
- package/dist-esm/lib/validation.js +6 -0
- package/dist-esm/lib/validation.js.map +1 -1
- package/dist-esm/version.js +1 -1
- package/llms-full.txt +3 -1
- package/llms.txt +5 -0
- package/package.json +2 -2
- package/src/ApiClient/WebSocketClient/BrowserWebSocketClient/ChannelCoordinator.ts +44 -3
- package/src/Chat/_hostedToolsManifest.generated.ts +7 -5
- package/src/Chat/index.ts +6 -3
- package/src/Chat/modelRouting.ts +5 -0
- package/src/Projects/createJobRequestMessage.ts +4 -0
- package/src/lib/validation.ts +5 -0
- package/src/version.ts +1 -1
package/src/Chat/modelRouting.ts
CHANGED
|
@@ -102,6 +102,8 @@ export const PREFERRED_MODEL_IDS = {
|
|
|
102
102
|
chromaFlash: 'chroma-v.46-flash_fp8',
|
|
103
103
|
zTurbo: 'z_image_turbo_bf16',
|
|
104
104
|
krea2Turbo: 'krea2_turbo_fp8_scaled',
|
|
105
|
+
mossImage: 'moss_image_sft_int8_convrot',
|
|
106
|
+
mossImage8Step: 'moss_image_sft_dmd8_int8_convrot',
|
|
105
107
|
flux3ImageKlein: 'flux3_image_klein_sd_int8_convrot',
|
|
106
108
|
krea2IdentityEdit: 'krea2_identity_edit_v1_2',
|
|
107
109
|
darkBeastKrea2IdentityEdit: 'dark_beast_krea2_identity_edit_v1_2',
|
|
@@ -266,6 +268,9 @@ const IMAGE_MODEL_SELECTORS: Record<string, string> = {
|
|
|
266
268
|
'z-turbo': 'z_image_turbo_bf16',
|
|
267
269
|
'krea-2-turbo': 'krea2_turbo_fp8_scaled',
|
|
268
270
|
'krea2-turbo': 'krea2_turbo_fp8_scaled',
|
|
271
|
+
'moss-image': PREFERRED_MODEL_IDS.image.mossImage,
|
|
272
|
+
'moss-image-sft': PREFERRED_MODEL_IDS.image.mossImage,
|
|
273
|
+
'moss-image-8step': PREFERRED_MODEL_IDS.image.mossImage8Step,
|
|
269
274
|
...FLUX3_IMAGE_KLEIN_SELECTORS,
|
|
270
275
|
'z-image': 'z_image_bf16',
|
|
271
276
|
'chroma-v46-flash': 'chroma-v.46-flash_fp8',
|
|
@@ -1372,6 +1372,10 @@ function applyImageParams(
|
|
|
1372
1372
|
params: ImageProjectParams,
|
|
1373
1373
|
options: ImageModelOptions
|
|
1374
1374
|
) {
|
|
1375
|
+
if (['moss_image_sft_int8_convrot', 'moss_image_sft_dmd8_int8_convrot'].includes(params.modelId) &&
|
|
1376
|
+
(params.startingImage || params.contextImages?.length)) {
|
|
1377
|
+
throw new Error('MOSS-Image SFT generates from text and does not accept guide or reference images.');
|
|
1378
|
+
}
|
|
1375
1379
|
const keyFrame: Record<string, any> = {
|
|
1376
1380
|
...inputKeyframe,
|
|
1377
1381
|
sizePreset: params.sizePreset
|
package/src/lib/validation.ts
CHANGED
|
@@ -120,6 +120,9 @@ interface ImageSizeValidationOptions {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
function getCustomImageSizeBounds(modelId?: string): { min: number; max: number } {
|
|
123
|
+
if (['moss_image_sft_int8_convrot', 'moss_image_sft_dmd8_int8_convrot'].includes(modelId || '')) {
|
|
124
|
+
return { min: 512, max: 2048 };
|
|
125
|
+
}
|
|
123
126
|
if (modelId === 'rtx_vsr_pro') {
|
|
124
127
|
return { min: 512, max: RTX_VSR_MAX_EDGE };
|
|
125
128
|
}
|
|
@@ -222,6 +225,7 @@ export function isComfyModel(modelId: string): boolean {
|
|
|
222
225
|
'z_image_',
|
|
223
226
|
'dark_beast_z_image_',
|
|
224
227
|
'krea2_',
|
|
228
|
+
'moss_image_',
|
|
225
229
|
'dark_beast_krea2_',
|
|
226
230
|
'qwen_image_',
|
|
227
231
|
'flux3_',
|
|
@@ -245,6 +249,7 @@ export function isComfyModel(modelId: string): boolean {
|
|
|
245
249
|
* - Default: 3 images
|
|
246
250
|
*/
|
|
247
251
|
export function getMaxContextImages(modelId: string): number {
|
|
252
|
+
if (['moss_image_sft_int8_convrot', 'moss_image_sft_dmd8_int8_convrot'].includes(modelId || '')) return 0;
|
|
248
253
|
if (isGptImageModel(modelId)) {
|
|
249
254
|
return 16;
|
|
250
255
|
}
|
package/src/version.ts
CHANGED