update voxcpm instuction

This commit is contained in:
jhqxxx
2026-04-08 19:18:44 +08:00
parent adf31dc16f
commit 34cd60d9ce
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -244,8 +244,8 @@ impl GenerateModel for VoxCPMGenerate {
let mut target_text = extract_user_text(&mes)?; let mut target_text = extract_user_text(&mes)?;
if let Some(instruction) = control_instruction if let Some(instruction) = control_instruction
&& self.model_name.contains("2") && self.model_name.contains("2")
&& prompt_text.is_none() // && prompt_text.is_none()
&& prompt_wav_path.is_none() // && prompt_wav_path.is_none()
{ {
target_text = format!("({instruction}){target_text}"); target_text = format!("({instruction}){target_text}");
} }
+2 -2
View File
@@ -23,12 +23,12 @@ fn voxcpm2_use_message_generate() -> Result<()> {
"content": [ "content": [
{ {
"type": "text", "type": "text",
"text": "老板儿,来碗担担面,多放海椒,再加个煎蛋哈" "text": "哎呀姐姐,好久没看到你了,来来来坐坐坐,我给你摆个龙门阵。你莫看我这两天闲得很,上个月我可是搞了个大事情。"
} }
] ]
} }
], ],
"metadata": {"control_instruction": "萝莉音"} "metadata": {"control_instruction": "四川话,男生"}
} }
"#; "#;
let mes: ChatCompletionParameters = serde_json::from_str(message)?; let mes: ChatCompletionParameters = serde_json::from_str(message)?;