[Bugfix] Use MiniCPM-o speech template in long audio test (#5623)
Signed-off-by: lishunyang12 <lishunyang03@gmail.com> Co-authored-by: lishunyang12 <lishunyang03@gmail.com>
This commit is contained in:
1 parent
273fc8eb1d
commit
499d930fe5
1 file changed
+9
@@ -150,7 +150,16 @@ def test_text_to_audio_long_output_001(omni_server, openai_client) -> None:
|
|||||||
request_config = {
|
request_config = {
|
||||||
"model": omni_server.model,
|
"model": omni_server.model,
|
||||||
"messages": messages,
|
"messages": messages,
|
||||||
|
"modalities": ["text", "audio"],
|
||||||
"stream": True,
|
"stream": True,
|
||||||
|
# Delimit the assistant answer with the TTS template so the Talker
|
||||||
|
# does not spend its codec-token budget speaking hidden reasoning.
|
||||||
|
"extra_body": {
|
||||||
|
"chat_template_kwargs": {
|
||||||
|
"use_tts_template": True,
|
||||||
|
"enable_thinking": False,
|
||||||
|
}
|
||||||
|
},
|
||||||
"key_words": {"audio": ["Beijing"]},
|
"key_words": {"audio": ["Beijing"]},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user