\n \n {formatType === 'custom'\n ? getCustomFormatExample()\n : formatType === 'alpaca'\n ? fileFormat === 'json'\n ? JSON.stringify(\n [\n {\n instruction: '人类指令(必填)', // 映射到 question 字段\n input: '人类输入(选填)',\n output: '模型回答(必填)', // 映射到 cot+answer 字段\n system: '系统提示词(选填)'\n }\n ],\n null,\n 2\n )\n : '{\"instruction\": \"人类指令(必填)\", \"input\": \"人类输入(选填)\", \"output\": \"模型回答(必填)\", \"system\": \"系统提示词(选填)\"}\\n{\"instruction\": \"第二个指令\", \"input\": \"\", \"output\": \"第二个回答\", \"system\": \"系统提示词\"}'\n : fileFormat === 'json'\n ? JSON.stringify(\n [\n {\n messages: [\n {\n role: 'system',\n content: '系统提示词(选填)'\n },\n {\n role: 'user',\n content: '人类指令' // 映射到 question 字段\n },\n {\n role: 'assistant',\n content: '模型回答' // 映射到 cot+answer 字段\n }\n ]\n }\n ],\n null,\n 2\n )\n : '{\"messages\": [{\"role\": \"system\", \"content\": \"系统提示词(选填)\"}, {\"role\": \"user\", \"content\": \"人类指令\"}, {\"role\": \"assistant\", \"content\": \"模型回答\"}]}\\n{\"messages\": [{\"role\": \"user\", \"content\": \"第二个问题\"}, {\"role\": \"assistant\", \"content\": \"第二个回答\"}]}'}\n \n \n )}\n