diff --git a/src/backend/src/services/ai/AIInterfaceService.js b/src/backend/src/services/ai/AIInterfaceService.js index cd6d760b4..673f90e30 100644 --- a/src/backend/src/services/ai/AIInterfaceService.js +++ b/src/backend/src/services/ai/AIInterfaceService.js @@ -191,6 +191,7 @@ class AIInterfaceService extends BaseService { frame_images: { type: 'json', optional: true }, metadata: { type: 'json', optional: true }, input_reference: { type: 'file', optional: true }, + no_extra_params: { type: 'flag', optional: true }, }, result_choices: [ { diff --git a/src/backend/src/services/ai/video/TogetherVideoGenerationService.js b/src/backend/src/services/ai/video/TogetherVideoGenerationService.js index 25434d18d..3476dcd0c 100644 --- a/src/backend/src/services/ai/video/TogetherVideoGenerationService.js +++ b/src/backend/src/services/ai/video/TogetherVideoGenerationService.js @@ -69,6 +69,7 @@ class TogetherVideoGenerationService extends BaseService { prompt, model: requestedModel, seconds, + no_extra_params, duration, width, height, @@ -102,7 +103,12 @@ class TogetherVideoGenerationService extends BaseService { }, DEFAULT_TEST_VIDEO_URL); } - const normalizedSeconds = this.#coercePositiveInteger(seconds ?? duration) ?? DEFAULT_DURATION_SECONDS; + let normalizedSeconds = this.#coercePositiveInteger(seconds ?? duration); + + if ( ! no_extra_params ) + { + normalizedSeconds ??= DEFAULT_DURATION_SECONDS; + } const actor = Context.get('actor'); if ( ! actor ) {