优化AI助手提示词,解决deepseek-v3返回```markdown开头的代码的BUG

This commit is contained in:
fofolee
2025-03-30 10:58:20 +08:00
parent 65936e7d0d
commit f9e0c29c08

View File

@@ -312,7 +312,7 @@ export default defineComponent({
const specificInstructions = languageSpecific[language] || "";
const lastInstructions =
"\n请直接给我MARKDOWN格式的代码任何情况下都不需要做解释和说明";
"\n请直接给我MARKDOWN格式的代码```脚本语言开头,以```结尾任何情况下都不需要做解释和说明";
return commonInstructions + specificInstructions + lastInstructions;
},