{formatType === 'custom'
? getCustomFormatExample()
: formatType === 'multilingualthinking'
? fileFormat === 'json'
? JSON.stringify(
{
reasoning_language: 'English',
developer: '系统提示词(选填)',
user: '人类指令', // 映射到 question 字段
analysis: '模型的思维链内容', // 映射到 cot 字段
final: '模型回答', // 映射到 answer 字段
messages: [
{
content: t('export.sampleSystem', '系统提示词(选填)'),
role: 'system',
thinking: null
},
{
content: t('export.sampleUserMessage', '人类指令'),
role: 'user',
thinking: null
},
{
content: t('export.sampleAssistantMessage', '模型回答'),
role: 'assistant',
thinking: t('export.sampleThinking', '模型的思维链内容')
}
]
},
null,
2
)
: '{"reasoning_language": "English","developer": "系统提示词(选填)", "user": "人类指令", "analysis": "模型的思维链内容", "final": "模型回答", "messages": [{"role": "user", "content": "人类指令", "thinking": "null"}, {"role": "assistant", "content": "模型回答", "thinking": "模型的思维链内容"}]}'
: formatType === 'alpaca'
? fileFormat === 'json'
? JSON.stringify(
[
{
instruction: t('export.sampleInstruction', '人类指令(必填)'), // 映射到 question 字段
input: t('export.sampleInputOptional', '人类输入(选填)'),
output: t('export.sampleOutput', '模型回答(必填)'), // 映射到 cot+answer 字段
system: t('export.sampleSystem', '系统提示词(选填)')
}
],
null,
2
)
: '{"instruction": "人类指令(必填)", "input": "人类输入(选填)", "output": "模型回答(必填)", "system": "系统提示词(选填)"}\n{"instruction": "第二个指令", "input": "", "output": "第二个回答", "system": "系统提示词"}'
: fileFormat === 'json'
? JSON.stringify(
[
{
messages: [
{
role: 'system',
content: t('export.sampleSystem', '系统提示词(选填)')
},
{
role: 'user',
content: t('export.sampleUserMessage', '人类指令') // 映射到 question 字段
},
{
role: 'assistant',
content: t('export.sampleAssistantMessage', '模型回答') // 映射到 cot+answer 字段
}
]
}
],
null,
2
)
: '{"messages": [{"role": "system", "content": "系统提示词(选填)"}, {"role": "user", "content": "人类指令"}, {"role": "assistant", "content": "模型回答"}]}\n{"messages": [{"role": "user", "content": "第二个问题"}, {"role": "assistant", "content": "第二个回答"}]}'}
)}