Skip to content

Commit e94ff6c

Browse files
committed
feat(model/omni): name change input video representation_compact parameter
1 parent 9b2fb54 commit e94ff6c

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

‎dashscope/audio/qwen_omni/omni_realtime.py‎

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def update_session(
414414
transcription_params: TranscriptionParams = None,
415415
input_audio_config: AudioFormatConfig = None,
416416
output_audio_config: AudioFormatConfig = None,
417-
input_video_representation_compactness: int = None,
417+
input_video_representation_compact: str = None,
418418
**kwargs,
419419
) -> None:
420420
"""
@@ -461,11 +461,10 @@ def update_session(
461461
type (pcm/wav) and sample rate (8000/16000/24000/48000), as well
462462
as free extension parameters via ``extra_params``. When provided,
463463
the request emits the ``session.audio.output.format`` structure.
464-
input_video_representation_compactness: int
465-
input video representation compactness. When provided, the request
466-
emits ``session.video.input.representation_compactness``. No strict
467-
client-side validation is performed so newly supported values can
468-
be used without upgrading the SDK.
464+
input_video_representation_compact: str
465+
input video representation compact setting. When provided, the
466+
request emits ``session.video.input.representation_compact`` and
467+
passes the string value through without client-side validation.
469468
470469
Notes
471470
-----
@@ -516,12 +515,10 @@ def update_session(
516515
}
517516
if transcription_params is not None:
518517
self._apply_transcription_params(transcription_params)
519-
if input_video_representation_compactness is not None:
518+
if input_video_representation_compact is not None:
520519
self.config["video"] = {
521520
"input": {
522-
"representation_compactness": (
523-
input_video_representation_compactness
524-
),
521+
"representation_compact": input_video_representation_compact,
525522
},
526523
}
527524
self.config.update(kwargs)

0 commit comments

Comments
 (0)