From 34cd60d9cebb7572c9d6f2e27eab1a9c66e174a5 Mon Sep 17 00:00:00 2001 From: jhqxxx <18280426169@163.com> Date: Wed, 8 Apr 2026 19:18:44 +0800 Subject: [PATCH] update voxcpm instuction --- src/models/voxcpm/generate.rs | 4 ++-- tests/test_voxcpm2.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/models/voxcpm/generate.rs b/src/models/voxcpm/generate.rs index 759fc1d..86dd9f7 100644 --- a/src/models/voxcpm/generate.rs +++ b/src/models/voxcpm/generate.rs @@ -244,8 +244,8 @@ impl GenerateModel for VoxCPMGenerate { let mut target_text = extract_user_text(&mes)?; if let Some(instruction) = control_instruction && self.model_name.contains("2") - && prompt_text.is_none() - && prompt_wav_path.is_none() + // && prompt_text.is_none() + // && prompt_wav_path.is_none() { target_text = format!("({instruction}){target_text}"); } diff --git a/tests/test_voxcpm2.rs b/tests/test_voxcpm2.rs index 2981db9..8c054ab 100644 --- a/tests/test_voxcpm2.rs +++ b/tests/test_voxcpm2.rs @@ -23,12 +23,12 @@ fn voxcpm2_use_message_generate() -> Result<()> { "content": [ { "type": "text", - "text": "老板儿,来碗担担面,多放海椒,再加个煎蛋哈" + "text": "哎呀姐姐,好久没看到你了,来来来坐坐坐,我给你摆个龙门阵。你莫看我这两天闲得很,上个月我可是搞了个大事情。" } ] } ], - "metadata": {"control_instruction": "萝莉音"} + "metadata": {"control_instruction": "四川话,男生"} } "#; let mes: ChatCompletionParameters = serde_json::from_str(message)?;